summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-05-25 00:28:09 +0200
committertv <tv@krebsco.de>2016-05-25 00:28:09 +0200
commit2b71d7f72865215717a2c604cb391f87af73c0a9 (patch)
tree0829a20f6c6e013eabc8d099a37c65dc1a4ae448 /krebs/5pkgs
parent0d8a0ed71d370455f192efea903e96b01ab86e25 (diff)
writeNixFromCabal: deprecate
Diffstat (limited to 'krebs/5pkgs')
-rw-r--r--krebs/5pkgs/builders.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/krebs/5pkgs/builders.nix b/krebs/5pkgs/builders.nix
index 8506801bb..39b91d144 100644
--- a/krebs/5pkgs/builders.nix
+++ b/krebs/5pkgs/builders.nix
@@ -106,7 +106,12 @@ rec {
'';
};
- writeNixFromCabal = name: path: pkgs.runCommand name {} ''
- ${pkgs.cabal2nix}/bin/cabal2nix ${path} > $out
- '';
+ writeNixFromCabal =
+ trace (toString [
+ "The function `writeNixFromCabal` has been deprecated in favour of"
+ "`writeHaskellBin'."
+ ])
+ (name: path: pkgs.runCommand name {} ''
+ ${pkgs.cabal2nix}/bin/cabal2nix ${path} > $out
+ '');
}