diff --git a/default.nix b/default.nix index 649d35a..1db400a 100644 --- a/default.nix +++ b/default.nix @@ -1,11 +1,7 @@ -({pkgs}: import ( +(import ( fetchTarball { url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz"; sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2"; } ) { - src = ./.; - buildInputs = with pkgs;[ - pkg-config - openssl - ]; + src = ./.; }).defaultNix diff --git a/flake.nix b/flake.nix index 030c1bd..19ab244 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,13 @@ naersk-lib = pkgs.callPackage naersk { }; in { - defaultPackage = naersk-lib.buildPackage ./.; + defaultPackage = naersk-lib.buildPackage { + src = ./.; + buildInputs = with pkgs; [ + pkg-config + openssl + ]; + }; devShell = with pkgs; mkShell { buildInputs = [ cargo