Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
awwpotato committed Jan 31, 2025
1 parent d660381 commit dc013fe
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 63 deletions.
51 changes: 1 addition & 50 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 22 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,33 @@
nixpkgs,
rust-overlay,
}:
nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed (
system:
let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
{
devShells.default = pkgs.mkShell {
let
inherit (nixpkgs.lib) genAttrs systems;
forEachSystem =
f:
genAttrs systems.flakeExposed (
system:
f (
import nixpkgs {
overlays = [ (import rust-overlay) ];
inherit system;
}
)
);
in
{
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustfmt
clippy
rust-analyzer
];
};
packages.default = pkgs.rustPlatform.buildRustPackage {
});
packages = forEachSystem (pkgs: {
default = pkgs.rustPlatform.buildRustPackage {
pname = "hensight";
version = "0.0.1";
src = ./.;
Expand All @@ -39,6 +48,6 @@
nativeBuildInputs = [ pkgs.pkg-config ];
PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
};
}
);
});
};
}

0 comments on commit dc013fe

Please sign in to comment.