ocamlPackages.camlzip: 1.10 → 1.11
This commit is contained in:
parent
e288403397
commit
9cc7f80dea
1 changed files with 14 additions and 7 deletions
|
@ -1,17 +1,24 @@
|
|||
{lib, stdenv, fetchurl, zlib, ocaml, findlib}:
|
||||
|
||||
let
|
||||
param =
|
||||
if lib.versionAtLeast ocaml.version "4.02"
|
||||
then {
|
||||
version = "1.10";
|
||||
url = "https://github.com/xavierleroy/camlzip/archive/rel110.tar.gz";
|
||||
sha256 = "X0YcczaQ3lFeJEiTIgjSSZ1zi32KFMtmZsP0FFpyfbI=";
|
||||
common = {
|
||||
patches = [];
|
||||
postPatchInit = ''
|
||||
cp META-zip META-camlzip
|
||||
echo 'directory="../zip"' >> META-camlzip
|
||||
'';
|
||||
};
|
||||
param =
|
||||
if lib.versionAtLeast ocaml.version "4.07"
|
||||
then common // {
|
||||
version = "1.11";
|
||||
url = "https://github.com/xavierleroy/camlzip/archive/rel111.tar.gz";
|
||||
sha256 = "sha256-/7vF3j4cE9wOWScjdtIy0u3pGzJ1UQY9R/3bdPHV7Tc=";
|
||||
} else if lib.versionAtLeast ocaml.version "4.02"
|
||||
then common // {
|
||||
version = "1.10";
|
||||
url = "https://github.com/xavierleroy/camlzip/archive/rel110.tar.gz";
|
||||
sha256 = "X0YcczaQ3lFeJEiTIgjSSZ1zi32KFMtmZsP0FFpyfbI=";
|
||||
} else {
|
||||
version = "1.05";
|
||||
download_id = "1037";
|
||||
|
@ -25,7 +32,7 @@ let
|
|||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "camlzip";
|
||||
pname = "ocaml${ocaml.version}-camlzip";
|
||||
version = param.version;
|
||||
|
||||
src = fetchurl {
|
||||
|
|
Loading…
Reference in a new issue