callCabal2nix: Passthru deriver

This commit is contained in:
Will Fancher 2018-08-02 09:48:06 -04:00
parent dae9cf6106
commit 08b766921d

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 // {