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

@@ -2,7 +2,7 @@
, autoreconfHook, zlib }:
stdenv.mkDerivation rec {
name = "advancecomp-${version}";
pname = "advancecomp";
version = "2.1";
src = fetchFromGitHub {

View File

@@ -3,7 +3,7 @@
# ?TODO: there's also python lib in there
stdenv.mkDerivation rec {
name = "brotli-${version}";
pname = "brotli";
version = "1.0.7";
src = fetchFromGitHub {

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchurl, openmp ? null }:
stdenv.mkDerivation rec {
name = "bsc-${version}";
pname = "bsc";
version = "3.1.0";
src = fetchurl {

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, bzip2 }:
stdenv.mkDerivation rec {
name = "bsdiff-${version}";
pname = "bsdiff";
version = "4.3";
src = fetchurl {
url = "https://www.daemonology.net/bsdiff/${name}.tar.gz";
url = "https://www.daemonology.net/bsdiff/${pname}-${version}.tar.gz";
sha256 = "0j2zm3z271x5aw63mwhr3vymzn45p2vvrlrpm9cz2nywna41b0hq";
};

View File

@@ -3,14 +3,14 @@
}:
stdenv.mkDerivation rec {
name = "bzip2-${version}";
pname = "bzip2";
version = "1.0.6.0.1";
/* We use versions patched to use autotools style properly,
saving lots of trouble. */
src = fetchurl {
urls = map
(prefix: prefix + "/people/sbrabec/bzip2/tarballs/${name}.tar.gz")
(prefix: prefix + "/people/sbrabec/bzip2/tarballs/${pname}-${version}.tar.gz")
[
"http://ftp.uni-kl.de/pub/linux/suse"
"ftp://ftp.hs.uni-hamburg.de/pub/mirrors/suse"

View File

@@ -12,7 +12,7 @@ let
++ [ bzip2 xz lzip ]);
in pythonPackages.buildPythonApplication rec {
name = "dtrx-${version}";
pname = "dtrx";
version = "7.1";
src = fetchurl {

View File

@@ -1,11 +1,11 @@
{ stdenv, fetchurl, xz }:
stdenv.mkDerivation rec {
name = "gzip-${version}";
pname = "gzip";
version = "1.10";
src = fetchurl {
url = "mirror://gnu/gzip/${name}.tar.xz";
url = "mirror://gnu/gzip/${pname}-${version}.tar.xz";
sha256 = "1h6p374d3j8d4cdfydzls021xa2yby8myc0h8d6m8bc7k6ncq9c4";
};

View File

@@ -2,10 +2,10 @@
stdenv.mkDerivation rec {
version = "0.631";
name = "lrzip-${version}";
pname = "lrzip";
src = fetchurl {
url = "http://ck.kolivas.org/apps/lrzip/${name}.tar.bz2";
url = "http://ck.kolivas.org/apps/lrzip/${pname}-${version}.tar.bz2";
sha256 = "0mb449vmmwpkalq732jdyginvql57nxyd31sszb108yps1lf448d";
};

View File

@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
name = "lzfse-${version}";
pname = "lzfse";
version = "2017-03-08";
src = fetchFromGitHub {

View File

@@ -1,13 +1,13 @@
{ stdenv, fetchurl, texinfo }:
stdenv.mkDerivation rec {
name = "lzip-${version}";
pname = "lzip";
version = "1.21";
nativeBuildInputs = [ texinfo ];
src = fetchurl {
url = "mirror://savannah/lzip/${name}.tar.gz";
url = "mirror://savannah/lzip/${pname}-${version}.tar.gz";
sha256 = "12qdcw5k1cx77brv9yxi1h4dzwibhfmdpigrj43nfk8nscwm12z4";
};

View File

@@ -1,7 +1,6 @@
{ stdenv, fetchurl, python3, runtimeShell }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "mozlz4a";
version = "2018-08-23";
# or fetchFromGitHub(owner,repo,rev) or fetchgit(rev)

View File

@@ -3,7 +3,6 @@
stdenv.mkDerivation rec {
pname = "pbzx";
version = "1.0.2";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "NiklasRosenstein";
repo = "pbzx";

View File

@@ -1,10 +1,10 @@
{ stdenv, fetchurl, ucl, zlib, perl }:
stdenv.mkDerivation rec {
name = "upx-${version}";
pname = "upx";
version = "3.95";
src = fetchurl {
url = "https://github.com/upx/upx/releases/download/v${version}/${name}-src.tar.xz";
url = "https://github.com/upx/upx/releases/download/v${version}/${pname}-${version}-src.tar.xz";
sha256 = "14jmgy7hvx4zqra20w8260wrcxmjf2h6ba2yrw7pcp18im35a3rv";
};

View File

@@ -2,10 +2,10 @@
stdenv.mkDerivation rec {
version = "1.6.1";
name = "xar-${version}";
pname = "xar";
src = fetchurl {
url = "https://github.com/downloads/mackyle/xar/${name}.tar.gz";
url = "https://github.com/downloads/mackyle/xar/${pname}-${version}.tar.gz";
sha256 = "0ghmsbs6xwg1092v7pjcibmk5wkyifwxw6ygp08gfz25d2chhipf";
};

View File

@@ -9,7 +9,7 @@ let
then "--with-${name}"
else "--without-${name}";
in stdenv.mkDerivation rec {
name = "xdelta-${version}";
pname = "xdelta";
version = "3.0.11";
src = fetchFromGitHub {

View File

@@ -9,7 +9,7 @@ let
then "--with-${name}"
else "--without-${name}";
in stdenv.mkDerivation rec {
name = "xdelta-${version}";
pname = "xdelta";
version = "3.1.0";
src = fetchFromGitHub {

View File

@@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, fetchpatch, cmake }:
stdenv.mkDerivation rec {
name = "zopfli-${version}";
pname = "zopfli";
version = "1.0.2";
src = fetchFromGitHub {
owner = "google";
repo = "zopfli";
rev = name;
name = "${name}-src";
rev = "${pname}-${version}";
name = "${pname}-${version}-src";
sha256 = "1l551hx2p4qi0w9lk96qklbv6ll68gxbah07fhqx1ly28rv5wy9y";
};