Skip to content

Commit

Permalink
Try #3
Browse files Browse the repository at this point in the history
Realized I was trying to fix the devShell which was already working when it was the build command failing
  • Loading branch information
Sable-20 authored Apr 11, 2024
1 parent 003b7f0 commit 7520352
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@
naersk-lib = pkgs.callPackage naersk { };
in
{
defaultPackage = naersk-lib.buildPackage ./.;
defaultPackage = with pkgs; naersk-lib.buildPackage {
src = ./.;
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy openssl ];
RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
devShell = with pkgs; mkShell {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy openssl openssl.dev ];
buildInputs = [ cargo rustc rustfmt pre-commit rustPackages.clippy openssl ];
# PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig";
RUST_SRC_PATH = rustPlatform.rustLibSrc;
shellHook = ''
Expand Down

0 comments on commit 7520352

Please sign in to comment.