autodocodec/nix/overlay.nix
Tom Sydney Kerckhove 9b57c76cd8 trying a thing
2021-10-20 17:59:50 +02:00

30 lines
814 B
Nix

final:
previous:
with final.haskell.lib;
{
yamlparseApplicativePackages =
let
yamlparseApplicativePkg = name:
doBenchmark (buildStrictly (final.haskellPackages.callCabal2nixWithOptions name (final.gitignoreSource (../. + "/${name}")) "--no-hpack" { }));
in
final.lib.genAttrs [
"yamlparse-applicative"
"yamlparse-applicative-demo"
]
yamlparseApplicativePkg;
yamlparseApplicativeRelease =
final.symlinkJoin {
name = "yamlparse-applicative-release";
paths = final.lib.attrValues final.yamlparseApplicativePackages;
};
haskellPackages = previous.haskellPackages.override (
old: {
overrides = final.lib.composeExtensions (old.overrides or (_: _: { })) (
self: super: final.yamlparseApplicativePackages
);
}
);
}