add nix pkg

This commit is contained in:
notohh 2024-06-01 11:56:23 -04:00
parent 4c0085d923
commit 1cb0be1725
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -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 = ./.;