Skip to content

Commit f153775

Browse files
authored
Merge pull request #425 from madjar/patch-1
Make sure we don't use the pinned nixpkgs if another one is provided
2 parents 888aebe + de594d3 commit f153775

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

project.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ let
77
nixpkgs = import sources.nixpkgs {};
88
in {
99
pkgs ? nixpkgs,
10+
pkgsForBins ? null,
1011
neuronFlags ? [],
1112
disableHsLuaTests ? false,
1213
withHoogle ? false,
@@ -35,7 +36,7 @@ let
3536
cp $src/src-bash/neuron-search $out/bin/neuron-search
3637
chmod +x $out/bin/neuron-search
3738
wrapProgram $out/bin/neuron-search --prefix 'PATH' ':' ${
38-
with nixpkgs;
39+
with (if pkgsForBins != null then pkgsForBins else pkgs);
3940
lib.makeBinPath [ fzf ripgrep gawk bat findutils envsubst ]
4041
}
4142
PATH=$PATH:$out/bin

static.nix

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ let
66
in
77
(import ./project.nix {
88
inherit pkgs;
9+
# We have to use original nixpkgs for fzf, etc. otherwise this will give
10+
# error: missing bootstrap url for platform x86_64-unknown-linux-musl
11+
pkgsForBins = import sources.nixpkgs {};
912
disableHsLuaTests = true;
1013
neuronFlags = [
1114
"--ghc-option=-optl=-static"

0 commit comments

Comments
 (0)