update pakcage

This commit is contained in:
Sense T 2023-12-29 14:53:04 +08:00
parent d6a75d2851
commit b248c1b35d
2 changed files with 9 additions and 7 deletions

View File

@ -1,11 +1,7 @@
({pkgs}: import ( (import (
fetchTarball { fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz"; url = "https://github.com/edolstra/flake-compat/archive/99f1c2157fba4bfe6211a321fd0ee43199025dbf.tar.gz";
sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2"; } sha256 = "0x2jn3vrawwv9xp15674wjz9pixwjyj3j771izayl962zziivbx2"; }
) { ) {
src = ./.; src = ./.;
buildInputs = with pkgs;[
pkg-config
openssl
];
}).defaultNix }).defaultNix

View File

@ -32,7 +32,13 @@
naersk-lib = pkgs.callPackage naersk { }; naersk-lib = pkgs.callPackage naersk { };
in in
{ {
defaultPackage = naersk-lib.buildPackage ./.; defaultPackage = naersk-lib.buildPackage {
src = ./.;
buildInputs = with pkgs; [
pkg-config
openssl
];
};
devShell = with pkgs; mkShell { devShell = with pkgs; mkShell {
buildInputs = [ buildInputs = [
cargo cargo