autodocodec/nix/overlay.nix

30 lines
814 B
Nix
Raw Normal View History

2021-10-20 18:59:50 +03:00
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
);
}
);
}