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 13:41:18 +01:00
committed by Jörg Thalheim
parent cff9e6429a
commit 46420bbaa3
4616 changed files with 5674 additions and 6081 deletions
@@ -6,7 +6,7 @@ in stdenv.mkDerivation rec {
ver_maj = "2.32";
ver_min = "0";
version = "${ver_maj}.${ver_min}";
name = "gnome-python-desktop-${version}";
pname = "gnome-python-desktop";
src = fetchurl {
url = "mirror://gnome/sources/gnome-python-desktop/${ver_maj}/gnome-python-desktop-${version}.tar.bz2";
@@ -20,7 +20,7 @@ in stdenv.mkDerivation rec {
# gnome-python-desktop expects that .pth file is already installed by PyGTK
# in the same directory. This is not the case for Nix.
postInstall = ''
echo "gtk-2.0" > $out/${python2.sitePackages}/${name}.pth
echo "gtk-2.0" > $out/${python2.sitePackages}/${pname}-${version}.pth
'';
meta = with stdenv.lib; {
@@ -5,11 +5,11 @@
with stdenv.lib;
stdenv.mkDerivation rec {
name = "gtksourceview-${version}";
pname = "gtksourceview";
version = "2.10.5";
src = fetchurl {
url = "mirror://gnome/sources/gtksourceview/2.10/${name}.tar.bz2";
url = "mirror://gnome/sources/gtksourceview/2.10/${pname}-${version}.tar.bz2";
sha256 = "c585773743b1df8a04b1be7f7d90eecdf22681490d6810be54c81a7ae152191e";
};
@@ -3,7 +3,7 @@
stdenv.mkDerivation rec {
rev = "9ae8768";
version = "5.4";
name = "mail-notification-${version}";
pname = "mail-notification";
src = fetchFromGitHub {
inherit rev;
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, dbus-glib, glib, ORBit2, libxml2, polkit, python2, intltool }:
stdenv.mkDerivation rec {
name = "gconf-${version}";
pname = "gconf";
version = "3.2.6";
src = fetchurl {
@@ -3,10 +3,10 @@
stdenv.mkDerivation rec {
version = "4.10.0";
name = "gtkhtml-${version}";
pname = "gtkhtml";
src = fetchurl {
url = "mirror://gnome/sources/gtkhtml/4.10/${name}.tar.xz";
url = "mirror://gnome/sources/gtkhtml/4.10/${pname}-${version}.tar.xz";
sha256 = "1hq6asgb5n9q3ryx2vngr4jyi8lg65lzpnlgrgcwayiczcj68fya";
};