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,
|
2023-03-30 22:05:00 +00:00
|
|
|
lib
|
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 = ''
|
2022-10-21 18:38:19 +00:00
|
|
|
ln -s nom "$out/bin/nom-build"
|
|
|
|
ln -s nom "$out/bin/nom-shell"
|
2022-03-30 09:31:56 +00:00
|
|
|
chmod a+x $out/bin/nom-build
|
|
|
|
installShellCompletion --zsh --name _nom-build completions/completion.zsh
|
|
|
|
'';
|
2022-10-30 15:09:59 +00:00
|
|
|
mainProgram = "nom";
|
2020-10-11 12:50:04 +00:00
|
|
|
};
|
2023-03-30 22:05:00 +00:00
|
|
|
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;
|
|
|
|
});
|
2022-03-30 09:31:56 +00:00
|
|
|
in
|
2023-03-30 22:05:00 +00:00
|
|
|
lib.pipe
|
|
|
|
nom-pkg-with-scope
|
|
|
|
[
|
|
|
|
(overrideCabal overrides)
|
|
|
|
justStaticExecutables
|
|
|
|
]
|