writeNixFromCabal: deprecate

This commit is contained in:
tv 2016-05-25 00:28:09 +02:00
parent 0d8a0ed71d
commit 2b71d7f728

View File

@ -106,7 +106,12 @@ rec {
'';
};
writeNixFromCabal = name: path: pkgs.runCommand name {} ''
writeNixFromCabal =
trace (toString [
"The function `writeNixFromCabal` has been deprecated in favour of"
"`writeHaskellBin'."
])
(name: path: pkgs.runCommand name {} ''
${pkgs.cabal2nix}/bin/cabal2nix ${path} > $out
'';
'');
}