Merge pull request #44356 from ElvishJerricco/callcabal2nix-passthru-deriver

callCabal2nix: Passthru deriver
This commit is contained in:
Bas van Dijk 2018-08-11 10:34:06 +02:00 committed by GitHub
commit e9b7e73120
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,6 +159,13 @@ let
# Generated from ${src}
${orig.preConfigure or ""}
'';
passthru = orig.passthru or {} // {
# When using callCabal2nix or callHackage, it is often useful
# to debug a failure by inspecting the Nix expression
# generated by cabal2nix. This can be accessed via this
# cabal2nixDeriver field.
cabal2nixDeriver = src;
};
});
in package-set { inherit pkgs stdenv callPackage; } self // {