From 75203525fa8d040dc8b69252980929a84169cb62 Mon Sep 17 00:00:00 2001 From: TheOkayDev <72171476+Sable-20@users.noreply.github.com> Date: Thu, 11 Apr 2024 13:39:42 -0400 Subject: [PATCH] Try #3 Realized I was trying to fix the devShell which was already working when it was the build command failing --- flake.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 722ff22..80a0929 100644 --- a/flake.nix +++ b/flake.nix @@ -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 = ''