mirror of
https://github.com/NorfairKing/autodocodec.git
synced 2024-11-30 03:22:52 +03:00
31 lines
756 B
Nix
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
|
|
);
|
|
}
|
|
);
|
|
}
|