add nix pkg
This commit is contained in:
parent
4c0085d923
commit
1cb0be1725
1 changed files with 20 additions and 0 deletions
20
flake.nix
20
flake.nix
|
@ -20,6 +20,26 @@
|
||||||
overlays = [fenix.overlays.default];
|
overlays = [fenix.overlays.default];
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
|
packages = eachSystem (system: let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
inherit ((builtins.fromTOML (builtins.readFile ./Cargo.toml)).package) version;
|
||||||
|
in {
|
||||||
|
default = pkgsFor.${system}.rustPlatform.buildRustPackage {
|
||||||
|
pname = "passgen";
|
||||||
|
version = "${version}";
|
||||||
|
|
||||||
|
src = self;
|
||||||
|
|
||||||
|
cargoLock = {
|
||||||
|
lockFile = ./Cargo.lock;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = with pkgs; [pkg-config];
|
||||||
|
buildInputs = with pkgs; [openssl];
|
||||||
|
|
||||||
|
doCheck = false;
|
||||||
|
};
|
||||||
|
});
|
||||||
checks = eachSystem (system: {
|
checks = eachSystem (system: {
|
||||||
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
pre-commit-check = pre-commit-hooks.lib.${system}.run {
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
|
Loading…
Reference in a new issue