Skip to content

Commit

Permalink
flake: libraries should be in buildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ozwaldorf committed Apr 23, 2024
1 parent 2363b28 commit acfe167
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,26 @@
strictDeps = true;
pname = "lightning";
version = "0.1.0";
nativeBuildInputs =
nativeBuildInputs = with pkgs; [
pkg-config
gcc
perl
cmake
clang
protobuf
mold-wrapped
(pkgs.writeShellScriptBin "git" ''
# hack to fix `git rev-parse HEAD` when building in sandbox
[[ $NIX_ENFORCE_PURITY -eq 1 ]] && echo ${gitRev} && exit
"${git}/bin/git" "$@"
'')
];
buildInputs =
with pkgs;
[
pkg-config
gcc
perl
cmake
clang
libclang
fontconfig
freetype
protobuf
protobufc
openssl_3
(rocksdb.override { enableShared = true; })
Expand All @@ -112,13 +120,6 @@
bzip2
lz4
onnxruntime
mold-wrapped

(pkgs.writeShellScriptBin "git" ''
# hack to fix `git rev-parse HEAD` when building in sandbox
[[ $NIX_ENFORCE_PURITY -eq 1 ]] && echo ${gitRev} && exit
"${git}/bin/git" "$@"
'')
]
++ lib.optionals pkgs.stdenv.isDarwin [
# MacOS specific packages
Expand Down

0 comments on commit acfe167

Please sign in to comment.