mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 07:05:13 +00:00
32 lines
800 B
Nix
32 lines
800 B
Nix
{
|
|
haskell,
|
|
expect,
|
|
haskellPackages,
|
|
installShellFiles,
|
|
lib
|
|
}: let
|
|
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
|
|
overrides = {
|
|
passthru.updateScript = ./update.sh;
|
|
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
|
|
'';
|
|
mainProgram = "nom";
|
|
};
|
|
nom-pkg = haskellPackages.callPackage ./generated-package.nix { };
|
|
nom-pkg-with-scope = nom-pkg.overrideScope (hfinal: hprev: {
|
|
hermes-json = hfinal.hermes-json_0_2_0_1;
|
|
});
|
|
in
|
|
lib.pipe
|
|
nom-pkg-with-scope
|
|
[
|
|
(overrideCabal overrides)
|
|
justStaticExecutables
|
|
]
|