From 4a8797d8276aa1bd9c09d1f591eef1bd04adf2ec Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 29 Aug 2015 23:29:17 +0200 Subject: [PATCH] haskell-generic-builder: stop pre-pending "haskell-" to package names A derivation of the Hackage package "foo" is called "haskell-foo" if it is a library, but only "foo" if it is an executable (without a library). This distinction used to be fine when Haskell packages where visible to operations like "nix-env -qa" or "nix-env -i", but after our switch to Haskell NG it has no more purpose. Consequently, this patch removes the name prefix from all Haskell packages -- every Haskell package is now called exactly like it's called on Hackage. Closes https://github.com/NixOS/nixpkgs/pull/9538. --- pkgs/development/haskell-modules/generic-builder.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index f76719a3117c..c04d8fdb409a 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -130,7 +130,7 @@ in assert allPkgconfigDepends != [] -> pkgconfig != null; stdenv.mkDerivation ({ - name = "${optionalString (hasActiveLibrary && pname != "ghcjs") "haskell-"}${pname}-${version}"; + name = "${pname}-${version}"; pos = builtins.unsafeGetAttrPos "pname" args;