treewide: rename name to pname&version

This commit is contained in:
Felix Buehler 2022-02-06 23:35:27 +01:00
parent 5e4ac423de
commit 12f343da4c
21 changed files with 28 additions and 27 deletions

View file

@ -13,8 +13,8 @@ let param =
in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-functory-${param.version}";
pname = "ocaml${ocaml.version}-functory";
inherit (param) version;
src = fetchurl {
url = "https://www.lri.fr/~filliatr/functory/download/functory-${param.version}.tar.gz";

View file

@ -5,7 +5,7 @@
stdenv.mkDerivation rec {
version = "2.3";
name = "ocaml${ocaml.version}-inotify-${version}";
pname = "ocaml${ocaml.version}-inotify";
src = fetchFromGitHub {
owner = "whitequark";

View file

@ -1,9 +1,8 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, uutf }:
let version = "1.0.1"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-jsonm-${version}";
stdenv.mkDerivation rec {
pname = "ocaml${ocaml.version}-jsonm";
version = "1.0.1";
src = fetchurl {
url = "https://erratique.ch/software/jsonm/releases/jsonm-${version}.tbz";

View file

@ -7,7 +7,7 @@ else
stdenv.mkDerivation rec {
version = "1.6";
name = "ocaml${ocaml.version}-lablgtk-extras-${version}";
pname = "ocaml${ocaml.version}-lablgtk-extras";
src = fetchFromGitLab {
domain = "framagit.org";
owner = "zoggy";

View file

@ -49,7 +49,7 @@ in
stdenv.mkDerivation rec {
inherit (param) version src;
name = "ocaml${ocaml.version}-labltk-${version}";
pname = "ocaml${ocaml.version}-labltk";
buildInputs = [ ocaml findlib tcl tk makeWrapper ];

View file

@ -2,9 +2,9 @@
stdenv.mkDerivation rec {
version = "1.0.1";
name = "ocaml${ocaml.version}-lwt_react-${version}";
pname = "ocaml${ocaml.version}-lwt_react";
src = fetchzip {
url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-1.0.1.tar.gz";
url = "https://github.com/ocsigen/lwt/releases/download/3.0.0/lwt_react-${version}.tar.gz";
sha256 = "1bbz7brvdskf4angzn3q2s2s6qdnx7x8m8syayysh23gwv4c7v31";
};

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchFromGitHub, perl, ocaml, findlib, camlidl, gmp, mpfr }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-mlgmpidl-${version}";
pname = "ocaml${ocaml.version}-mlgmpidl";
version = "1.2.12";
src = fetchFromGitHub {
owner = "nberth";

View file

@ -16,7 +16,8 @@ let param =
in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-mtime-${param.version}";
pname = "ocaml${ocaml.version}-mtime";
inherit (param) version;
src = fetchurl {
url = "https://erratique.ch/software/mtime/releases/mtime-${param.version}.tbz";

View file

@ -20,7 +20,7 @@ then throw "nocrypto is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-nocrypto-${version}";
pname = "ocaml${ocaml.version}-nocrypto";
version = "0.5.4";
src = fetchurl {

View file

@ -12,7 +12,7 @@ let withLwt = lwt != null; in
stdenv.mkDerivation rec {
version = "0.2.2";
name = "ocaml${ocaml.version}-notty-${version}";
pname = "ocaml${ocaml.version}-notty";
src = fetchurl {
url = "https://github.com/pqwy/notty/releases/download/v${version}/notty-${version}.tbz";

View file

@ -2,7 +2,7 @@
stdenv.mkDerivation rec {
version = "1.1";
name = "ocaml${ocaml.version}-num-${version}";
pname = "ocaml${ocaml.version}-num";
src = fetchFromGitHub {
owner = "ocaml";
repo = "num";

View file

@ -7,7 +7,7 @@ then throw "ocamlnet is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocamlnet-${version}";
pname = "ocaml${ocaml.version}-ocamlnet";
version = "4.1.9";
src = fetchurl {

View file

@ -5,7 +5,7 @@ then throw "ocp-ocamlres is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-ocp-ocamlres-${version}";
pname = "ocaml${ocaml.version}-ocp-ocamlres";
version = "0.4";
src = fetchFromGitHub {
owner = "OCamlPro";

View file

@ -13,8 +13,8 @@ let param =
}; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-pprint-${param.version}";
inherit (param) version;
pname = "ocaml${ocaml.version}-pprint";
src = fetchurl {
url = "http://gallium.inria.fr/~fpottier/pprint/pprint-${param.version}.tar.gz";

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-process-${version}";
pname = "ocaml${ocaml.version}-process";
version = "0.2.1";
src = fetchFromGitHub {

View file

@ -4,7 +4,7 @@
stdenv.mkDerivation rec {
version = "0.8.5";
name = "ocaml${ocaml.version}-ptime-${version}";
pname = "ocaml${ocaml.version}-ptime";
src = fetchurl {
url = "https://erratique.ch/software/ptime/releases/ptime-${version}.tbz";

View file

@ -23,7 +23,8 @@ let param =
in
stdenv.mkDerivation ({
name = "ocaml${ocaml.version}-rope-${param.version}";
pname = "ocaml${ocaml.version}-rope";
inherit (param) version;
src = fetchurl {
inherit (param) url sha256;

View file

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, ocaml, findlib, ocamlbuild, topkg, result }:
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-rresult-${version}";
pname = "ocaml${ocaml.version}-rresult";
version = "0.6.0";
src = fetchurl {
url = "https://erratique.ch/software/rresult/releases/rresult-${version}.tbz";

View file

@ -7,7 +7,7 @@ then throw "sosa is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-sosa-${version}";
pname = "ocaml${ocaml.version}-sosa";
version = "0.3.0";
src = fetchFromGitHub {

View file

@ -27,7 +27,7 @@ let
in
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-topkg-${version}";
pname = "ocaml${ocaml.version}-topkg";
inherit (param) version;
src = fetchurl {

View file

@ -5,7 +5,7 @@ then throw "wasm is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
name = "ocaml${ocaml.version}-wasm-${version}";
pname = "ocaml${ocaml.version}-wasm";
version = "1.1.1";
src = fetchFromGitHub {