2022-03-10 19:12:11 +00:00
|
|
|
{
|
2022-03-30 09:31:56 +00:00
|
|
|
haskell,
|
2022-03-10 19:12:11 +00:00
|
|
|
expect,
|
2022-03-30 09:31:56 +00:00
|
|
|
haskellPackages,
|
2022-03-10 19:12:11 +00:00
|
|
|
installShellFiles,
|
2022-03-30 09:31:56 +00:00
|
|
|
}: let
|
|
|
|
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
|
|
|
|
overrides = {
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
testTarget = "unit-tests";
|
|
|
|
buildTools = [installShellFiles];
|
|
|
|
postInstall = ''
|
|
|
|
substitute "exe-sh/nom-build" "$out/bin/nom-build" \
|
|
|
|
--replace 'unbuffer' '${expect}/bin/unbuffer' \
|
|
|
|
--replace 'nom' "$out/bin/nom"
|
|
|
|
chmod a+x $out/bin/nom-build
|
|
|
|
installShellCompletion --zsh --name _nom-build completions/completion.zsh
|
|
|
|
'';
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
2022-03-30 09:31:56 +00:00
|
|
|
in
|
|
|
|
justStaticExecutables
|
|
|
|
(overrideCabal overrides
|
|
|
|
(haskellPackages.callPackage ./generated-package.nix {}))
|