1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 23:52:33 +00:00

hackagePackages.neuron: Fix build

This commit is contained in:
Malte Brandy 2020-05-07 19:43:28 +02:00 committed by Peter Simons
parent 730024fcaa
commit a61cf82b6d
3 changed files with 24 additions and 4 deletions

View file

@ -1515,4 +1515,8 @@ self: super: {
};
};
# hasnt bumped upper bounds
# upstream: https://github.com/obsidiansystems/which/pull/6
which = doJailbreak super.which;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super

View file

@ -2733,7 +2733,6 @@ broken-packages:
- aeson-diff-generic
- aeson-filthy
- aeson-flowtyped
- aeson-gadt-th
- aeson-injector
- aeson-iproute
- aeson-native
@ -7801,7 +7800,6 @@ broken-packages:
- neural
- neural-network-blashs
- neural-network-hmatrix
- neuron
- newhope
- newports
- newsletter
@ -8895,7 +8893,6 @@ broken-packages:
- rhine
- rhine-gloss
- rhythm-game-tutorial
- rib
- ribbit
- RichConditional
- ridley
@ -10608,7 +10605,6 @@ broken-packages:
- wheb-mongo
- wheb-redis
- wheb-strapped
- which
- while-lang-parser
- whim
- whiskers

View file

@ -730,4 +730,24 @@ self: super: builtins.intersectAttrs super {
# Tests access homeless-shelter.
hie-bios = dontCheck super.hie-bios;
# Compiling the readme throws errors and has no purpose in nixpkgs
aeson-gadt-th =
disableCabalFlag (doJailbreak (super.aeson-gadt-th)) "build-readme";
neuron = overrideCabal (super.neuron) (drv: {
# neuron expects the neuron-search script to be in PATH at built-time.
buildTools = [ pkgs.makeWrapper ];
preConfigure = ''
mkdir -p $out/bin
cp src-bash/neuron-search $out/bin/neuron-search
chmod +x $out/bin/neuron-search
wrapProgram $out/bin/neuron-search --prefix 'PATH' ':' ${
with pkgs;
lib.makeBinPath [ fzf ripgrep gawk bat findutils envsubst ]
}
PATH=$PATH:$out/bin
'';
});
}