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
@@ -26,7 +26,7 @@ let param = {
in
stdenv.mkDerivation rec {
name = "camlp4-${version}";
pname = "camlp4";
inherit (param) version;
src = fetchzip {
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, fetchpatch, m4, ncurses, ocaml, writeText }:
stdenv.mkDerivation rec {
name = "ocaml-findlib-${version}";
pname = "ocaml-findlib";
version = "1.8.1";
src = fetchurl {
@@ -3,7 +3,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-${version}";
pname = "js_of_ocaml";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -4,7 +4,7 @@
stdenv.mkDerivation rec {
version = "3.2.1";
name = "js_of_ocaml-camlp4-${version}";
pname = "js_of_ocaml-camlp4";
src = fetchFromGitHub {
owner = "ocsigen";
@@ -7,7 +7,7 @@ then throw "js_of_ocaml-compiler is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "js_of_ocaml-compiler-${version}";
pname = "js_of_ocaml-compiler";
version = "3.3.0";
src = fetchFromGitHub {
@@ -4,7 +4,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-lwt-${version}";
pname = "js_of_ocaml-lwt";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -3,7 +3,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-ocamlbuild-${version}";
pname = "js_of_ocaml-ocamlbuild";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -4,7 +4,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-ppx-${version}";
pname = "js_of_ocaml-ppx";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -3,7 +3,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-ppx_deriving_json-${version}";
pname = "js_of_ocaml-ppx_deriving_json";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -4,7 +4,7 @@
}:
stdenv.mkDerivation rec {
name = "js_of_ocaml-tyxml-${version}";
pname = "js_of_ocaml-tyxml";
inherit (js_of_ocaml-compiler) version src installPhase meta;
@@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "0.4.10";
name = "ocaml-oasis-${version}";
pname = "ocaml-oasis";
# You must manually update the url, not just the version. OCamlforge keys off
# the number after download.php, not the filename.
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, ocamlPackages }:
stdenv.mkDerivation rec {
name = "obelisk-${version}";
pname = "obelisk";
version = "0.4.0";
src = fetchFromGitHub {
owner = "lelio-brun";
@@ -1,7 +1,7 @@
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ounit }:
stdenv.mkDerivation rec {
name = "ocamlmod-${version}";
pname = "ocamlmod";
version = "0.0.9";
src = fetchurl {
@@ -3,7 +3,6 @@
stdenv.mkDerivation rec
{
pname = "ocsigen-i18n";
name = "${pname}-${version}";
version = "3.4.0";
buildInputs = with ocamlPackages; [ ocaml findlib ];
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "omake-${version}";
pname = "omake";
version = "0.10.3";
src = fetchurl {
url = "http://download.camlcity.org/download/${name}.tar.gz";
url = "http://download.camlcity.org/download/${pname}-${version}.tar.gz";
sha256 = "07bdg1h5i7qnlv9xq81ad5hfypl10hxm771h4rjyl5cn8plhfcgz";
};
@@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "0.3.2";
name = "opaline-${version}";
pname = "opaline";
src = fetchFromGitHub {
owner = "jaapb";
+1 -1
View File
@@ -44,7 +44,7 @@ let
};
};
in stdenv.mkDerivation rec {
name = "opam-${version}";
pname = "opam";
version = "1.2.2";
buildInputs = [ unzip curl ncurses ocaml makeWrapper ];
@@ -60,7 +60,7 @@ let
};
};
in stdenv.mkDerivation rec {
name = "opam-${version}";
pname = "opam";
version = "2.0.5";
buildInputs = [ unzip curl ncurses ocaml makeWrapper getconf ] ++ lib.optional stdenv.isLinux bubblewrap;
@@ -8,7 +8,7 @@ else
stdenv.mkDerivation rec {
version = "2.3.0";
name = "utop-${version}";
pname = "utop";
src = fetchurl {
url = "https://github.com/diml/utop/archive/${version}.tar.gz";