From 4531cf76e4d5452ba1397c5d6a6ab811996d20fc Mon Sep 17 00:00:00 2001 From: Andrew Bruce Date: Thu, 25 Apr 2024 13:44:35 +0100 Subject: [PATCH] fetchHex: remove pname prefix Projects like mix2nix and my own project, deps_nix, are collecting a growing number of workarounds for packages that depend on the working directory of a build to have the same name as the package. See for example: https://github.com/ydlr/mix2nix/commit/da2ebc2c63b18c4967e176468e2717f4a07d6bf0 This change makes the pname of Hex packages equal the package name, so that such workarounds aren't necessary. --- pkgs/development/beam-modules/fetch-hex.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/beam-modules/fetch-hex.nix b/pkgs/development/beam-modules/fetch-hex.nix index 2d1fa623745a..a8241892ee0c 100644 --- a/pkgs/development/beam-modules/fetch-hex.nix +++ b/pkgs/development/beam-modules/fetch-hex.nix @@ -7,7 +7,7 @@ }: stdenv.mkDerivation ({ - pname = "hex-source-${pkg}"; + pname = pkg; inherit version; dontBuild = true; dontConfigure = true;