autodocodec/nix/overlay.nix
Tom Sydney Kerckhove 9ff0e23eb9 Trying to set up CI
2021-10-24 19:21:59 +02:00

31 lines
756 B
Nix

final:
previous:
with final.haskell.lib;
{
autodocodecPackages =
let
autodocodecPkg = name:
doBenchmark (buildStrictly (final.haskellPackages.callCabal2nixWithOptions name (final.gitignoreSource (../. + "/${name}")) "--no-hpack" { }));
in
final.lib.genAttrs [
"autodocodec"
"autodocodec-aeson"
"autodocodec-yaml"
]
autodocodecPkg;
autodocodecRelease =
final.symlinkJoin {
name = "autodocodec-release";
paths = final.lib.attrValues final.autodocodecPackages;
};
haskellPackages = previous.haskellPackages.override (
old: {
overrides = final.lib.composeExtensions (old.overrides or (_: _: { })) (
self: super: final.autodocodecPackages
);
}
);
}