Skip to content

Commit

Permalink
Added overlays to the flake\nIt seems to be needed for the package …
Browse files Browse the repository at this point in the history
…to be accessable in NixOS
  • Loading branch information
dvaerum committed Nov 21, 2024
1 parent d13241d commit 0ca7c55
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
15 changes: 8 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@
let
pkgs = import nixpkgs { inherit system; };
naersk-lib = pkgs.callPackage naersk { };
in
{
packages.default = naersk-lib.buildPackage {
buildInputs = with pkgs; [ gnupg ssh-copy-id ];
src = ./.;
};

in {
packages.default = pkgs.callPackage ./package.nix { inherit naersk-lib; };
devShell = with pkgs; mkShell {
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
}
);
) // {
overlays.default = final: prev: {
gpg-ssh = final.callPackage ./package.nix { naersk-lib = (final.callPackage naersk { }); };
};
};
}
8 changes: 8 additions & 0 deletions package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{ naersk-lib
, gnupg
, ssh-copy-id
}:
naersk-lib.buildPackage {
buildInputs = [ gnupg ssh-copy-id ];
src = ./.;
}

0 comments on commit 0ca7c55

Please sign in to comment.