ocaml-ng.ocamlPackages_4_01_0.csv: remove at 1.5
This commit is contained in:
@@ -1,38 +0,0 @@
|
||||
{ lib, stdenv, fetchzip, ocaml, findlib, ocamlbuild }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ocaml${ocaml.version}-csv";
|
||||
version = "1.5";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/Chris00/ocaml-csv/releases/download/${version}/csv-${version}.tar.gz";
|
||||
sha256 = "1ca7jgg58j24pccs5fshis726s06fdcjshnwza5kwxpjgdbvc63g";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ ocaml findlib ocamlbuild ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
configurePhase = "ocaml setup.ml -configure --prefix $out --enable-tests";
|
||||
|
||||
buildPhase = "ocaml setup.ml -build";
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "ocaml setup.ml -test";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
ocaml setup.ml -install
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pure OCaml library to read and write CSV files";
|
||||
homepage = "https://github.com/Chris00/ocaml-csv";
|
||||
license = licenses.lgpl21;
|
||||
maintainers = [ maintainers.vbgl ];
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
||||
@@ -265,10 +265,7 @@ let
|
||||
|
||||
cstruct-unix = callPackage ../development/ocaml-modules/cstruct/unix.nix {};
|
||||
|
||||
csv =
|
||||
if lib.versionAtLeast ocaml.version "4.2"
|
||||
then callPackage ../development/ocaml-modules/csv { }
|
||||
else callPackage ../development/ocaml-modules/csv/1.5.nix { };
|
||||
csv = callPackage ../development/ocaml-modules/csv { };
|
||||
|
||||
csv-lwt = callPackage ../development/ocaml-modules/csv/lwt.nix { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user