2022-03-07 22:24:22 +00:00
|
|
|
{
|
2022-03-16 13:40:56 +00:00
|
|
|
haskell,
|
2022-03-07 22:24:22 +00:00
|
|
|
expect,
|
2022-03-16 13:40:56 +00:00
|
|
|
haskellPackages,
|
2022-03-09 12:15:28 +00:00
|
|
|
installShellFiles,
|
2022-03-16 13:40:56 +00:00
|
|
|
}: let
|
|
|
|
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
|
|
|
|
overrides = {
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
testTarget = "unit-tests";
|
|
|
|
buildTools = [installShellFiles];
|
|
|
|
postInstall = ''
|
2022-10-15 13:28:37 +00:00
|
|
|
ln -s nom "$out/bin/nom-build"
|
|
|
|
ln -s nom "$out/bin/nom-shell"
|
2022-03-16 13:40:56 +00:00
|
|
|
chmod a+x $out/bin/nom-build
|
|
|
|
installShellCompletion --zsh --name _nom-build completions/completion.zsh
|
|
|
|
'';
|
2022-10-22 00:48:24 +00:00
|
|
|
mainProgram = "nom";
|
2020-10-09 20:43:10 +00:00
|
|
|
};
|
2022-03-16 13:40:56 +00:00
|
|
|
in
|
|
|
|
justStaticExecutables
|
|
|
|
(overrideCabal overrides
|
|
|
|
(haskellPackages.callPackage ./generated-package.nix {}))
|