Skip to content

Commit

Permalink
Update flake.nix
Browse files Browse the repository at this point in the history
  • Loading branch information
kings177 authored Mar 10, 2024
1 parent fe4da40 commit 531d29b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
nix-filter.url = "github:numtide/nix-filter";
};

outputs = { self, nixpkgs, flake-utils, nix-cargo-integration, nix-filter }:
outputs = { self, nixpkgs, flake-utils, nix-cargo-integration, nix-filter, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ nix-cargo-integration.overlay ];
};

filteredSrc = nix-filter.lib.filterSource {
src = nix-filter.lib.filterSource {
src = ./.;
filter = name: type: builtins.elem (baseNameOf name) [
"src" "Cargo.lock" "Cargo.toml" "rust-toolchain.toml"
] || (type == "directory" && builtins.elem (baseNameOf name) [
"src"
]);
"src", "Cargo.lock", "Cargo.toml", "rust-toolchain.toml"
] || (type == "directory" && builtins.elem (baseNameOf name) ["src"]);
};

in {
defaultPackage = pkgs.nci.buildPackage {
packages.hvm = pkgs.nci.buildPackage {
name = "hvm";
src = filteredSrc;
src = src;
cargoToml = "Cargo.toml";
buildInputs = with pkgs; [ openssl pkg-config ];
};

defaultPackage = self.packages.${system}.hvm;
}
);
}

0 comments on commit 531d29b

Please sign in to comment.