ocamlPackages.type_conv: remove at 108.08.00, 109.60.01, 113.00.02
This commit is contained in:
committed by
Vincent Laporte
parent
5d49ba2928
commit
1ddbc47dc7
@@ -1,31 +0,0 @@
|
||||
{ lib, stdenv, fetchurl, ocaml, findlib, camlp4 }:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "3.12"
|
||||
|| lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "type_conv-108.08.00 is not available for OCaml ${ocaml.version}" else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml-type_conv";
|
||||
version = "108.08.00";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://ocaml.janestreet.com/ocaml-core/${version}/individual/type_conv-${version}.tar.gz";
|
||||
sha256 = "08ysikwwp69zvc147lzzg79nwlrzrk738rj0ggcfadi8h5il42sl";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ];
|
||||
buildInputs = [ camlp4 ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://ocaml.janestreet.com/";
|
||||
description = "Support library for OCaml preprocessor type conversions";
|
||||
license = licenses.asl20;
|
||||
branch = "108";
|
||||
platforms = ocaml.meta.platforms or [ ];
|
||||
maintainers = with maintainers; [ maggesi ];
|
||||
};
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
{ stdenv, lib, fetchFromGitHub, ocaml, findlib, camlp4 }:
|
||||
|
||||
if !lib.versionAtLeast ocaml.version "4.00"
|
||||
|| lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "type_conv-109.60.01 is not available for OCaml ${ocaml.version}" else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml-type_conv";
|
||||
version = "109.60.01";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "janestreet";
|
||||
repo = "type_conv";
|
||||
rev = version;
|
||||
sha256 = "sha256-8Oz/fPL3+RghyxQp5u6seSEdf0BgfP6XNcsMYty0rNs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ];
|
||||
buildInputs = [ camlp4 ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
homepage = "http://forge.ocamlcore.org/projects/type-conv/";
|
||||
description = "Support library for OCaml preprocessor type conversions";
|
||||
license = lib.licenses.lgpl21;
|
||||
platforms = ocaml.meta.platforms or [ ];
|
||||
maintainers = with lib.maintainers; [ maggesi ];
|
||||
};
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
{ lib, fetchFromGitHub, buildOcaml, camlp4}:
|
||||
|
||||
buildOcaml rec {
|
||||
minimumSupportedOcamlVersion = "4.02";
|
||||
|
||||
pname = "type_conv";
|
||||
version = "113.00.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "janestreet";
|
||||
repo = "type_conv";
|
||||
rev = version;
|
||||
sha256 = "sha256-HzH0hnceCQ2kDRATjl+tfKk3XSBDsGnPzVUGYpDQUmU=";
|
||||
};
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
buildInputs = [ camlp4 ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/janestreet/type_conv/";
|
||||
description = "Support library for preprocessor type conversions";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ maggesi ericbmerritt ];
|
||||
};
|
||||
}
|
||||
@@ -1138,18 +1138,6 @@ let
|
||||
inherit (pkgs.python3Packages) pytorch;
|
||||
};
|
||||
|
||||
type_conv_108_08_00 = callPackage ../development/ocaml-modules/type_conv/108.08.00.nix { };
|
||||
type_conv_109_60_01 = callPackage ../development/ocaml-modules/type_conv/109.60.01.nix { };
|
||||
type_conv_112_01_01 = callPackage ../development/ocaml-modules/type_conv/112.01.01.nix { };
|
||||
type_conv =
|
||||
if lib.versionOlder "4.02" ocaml.version
|
||||
then type_conv_112_01_01
|
||||
else if lib.versionOlder "4.00" ocaml.version
|
||||
then type_conv_109_60_01
|
||||
else if lib.versionOlder "3.12" ocaml.version
|
||||
then type_conv_108_08_00
|
||||
else null;
|
||||
|
||||
ocaml-protoc = callPackage ../development/ocaml-modules/ocaml-protoc { };
|
||||
|
||||
ocaml_extlib = ocaml_extlib-1-7-8;
|
||||
|
||||
Reference in New Issue
Block a user