From b248c1b35d7b7a11211dba4d7f36190e8993bc7a Mon Sep 17 00:00:00 2001 From: Sense T Date: Fri, 29 Dec 2023 14:53:04 +0800 Subject: [PATCH] update pakcage --- default.nix | 8 ++------ flake.nix | 8 +++++++- 2 files changed, 9 insertions(+), 7 deletions(-) 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