mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
4414a2d948
* Small improvements in error reporting. * Significant performance improvements.
32 lines
754 B
Nix
32 lines
754 B
Nix
{
|
||
haskell,
|
||
haskellPackages,
|
||
installShellFiles,
|
||
lib,
|
||
}: let
|
||
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
|
||
|
||
overrides = {
|
||
passthru.updateScript = ./update.sh;
|
||
|
||
# nom has unit-tests and golden-tests
|
||
# golden-tests call nix and thus can’t be run in a nix build.
|
||
testTarget = "unit-tests";
|
||
|
||
buildTools = [installShellFiles];
|
||
postInstall = ''
|
||
ln -s nom "$out/bin/nom-build"
|
||
ln -s nom "$out/bin/nom-shell"
|
||
chmod a+x $out/bin/nom-build
|
||
installShellCompletion --zsh --name _nom-build completions/completion.zsh
|
||
'';
|
||
};
|
||
raw-pkg = haskellPackages.callPackage ./generated-package.nix {};
|
||
in
|
||
lib.pipe
|
||
raw-pkg
|
||
[
|
||
(overrideCabal overrides)
|
||
justStaticExecutables
|
||
]
|