treewide: name -> pname (easy cases) (#66585)

treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
This commit is contained in:
volth
2019-08-15 12:41:18 +00:00
committed by Jörg Thalheim
parent cff9e6429a
commit 46420bbaa3
4616 changed files with 5674 additions and 6081 deletions

View File

@@ -4,10 +4,9 @@ buildPythonPackage rec {
pname = "pygobject";
version = "2.28.6";
format = "other";
name = pname + "-" + version;
src = fetchurl {
url = "mirror://gnome/sources/pygobject/2.28/${name}.tar.xz";
url = "mirror://gnome/sources/pygobject/2.28/${pname}-${version}.tar.xz";
sha256 = "1f5dfxjnil2glfwxnqr14d2cjfbkghsbsn8n04js2c2icr7iv2pv";
};
@@ -31,7 +30,7 @@ buildPythonPackage rec {
# used to select a specific version, in our setup it should have no
# effect, but we leave it in case somebody expects and calls it.
postInstall = ''
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${name}.pth}
mv $out/lib/${python.libPrefix}/site-packages/{pygtk.pth,${pname}-${version}.pth}
# Prevent wrapping of codegen files as these are meant to be
# executed by the python program