Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #53703 from vbgl/ocaml-ocp-indent-1.7.0

ocamlPackages.ocp-indent: 1.6.1 -> 1.7.0

authored by

Vladyslav M and committed by
GitHub
805e2bbc 3956a842

+21 -20
+13 -3
pkgs/development/ocaml-modules/cmdliner/default.nix
··· 6 7 assert stdenv.lib.versionAtLeast ocaml.version "4.01.0"; 8 9 stdenv.mkDerivation rec { 10 - name = "ocaml-${pname}-${version}"; 11 - version = "1.0.3"; 12 13 src = fetchurl { 14 url = "http://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; 15 - sha256 = "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"; 16 }; 17 18 nativeBuildInputs = [ ocamlbuild topkg ];
··· 6 7 assert stdenv.lib.versionAtLeast ocaml.version "4.01.0"; 8 9 + let param = 10 + if stdenv.lib.versionAtLeast ocaml.version "4.03" then { 11 + version = "1.0.3"; 12 + sha256 = "0g3w4hvc1cx9x2yp5aqn6m2rl8lf9x1dn754hfq8m1sc1102lxna"; 13 + } else { 14 + version = "1.0.2"; 15 + sha256 = "18jqphjiifljlh9jg8zpl6310p3iwyaqphdkmf89acyaix0s4kj1"; 16 + } 17 + ; in 18 + 19 stdenv.mkDerivation rec { 20 + name = "ocaml${ocaml.version}-${pname}-${version}"; 21 + inherit (param) version; 22 23 src = fetchurl { 24 url = "http://erratique.ch/software/${pname}/releases/${pname}-${version}.tbz"; 25 + inherit (param) sha256; 26 }; 27 28 nativeBuildInputs = [ ocamlbuild topkg ];
+8 -17
pkgs/development/tools/ocaml/ocp-indent/default.nix
··· 1 - { stdenv, fetchzip, ocaml, findlib, dune, ocp-build, cmdliner }: 2 3 - let inherit (stdenv.lib) getVersion versionAtLeast; in 4 - 5 - assert versionAtLeast (getVersion ocaml) "3.12.1"; 6 - assert versionAtLeast (getVersion cmdliner) "1.0.0"; 7 - assert versionAtLeast (getVersion ocp-build) "1.99.6-beta"; 8 - 9 - stdenv.mkDerivation rec { 10 - 11 - name = "ocaml${ocaml.version}-ocp-indent-${version}"; 12 - version = "1.6.1"; 13 14 src = fetchzip { 15 url = "https://github.com/OCamlPro/ocp-indent/archive/${version}.tar.gz"; 16 - sha256 = "0rcaa11mjqka032g94wgw9llqpflyk3ywr3lr6jyxbh1rjvnipnw"; 17 }; 18 19 - nativeBuildInputs = [ ocp-build ]; 20 - buildInputs = [ ocaml findlib cmdliner ]; 21 22 - inherit (dune) installPhase; 23 24 - meta = with stdenv.lib; { 25 homepage = http://typerex.ocamlpro.com/ocp-indent.html; 26 description = "A customizable tool to indent OCaml code"; 27 license = licenses.gpl3; 28 - platforms = ocaml.meta.platforms or []; 29 maintainers = [ maintainers.jirkamarsik ]; 30 }; 31 }
··· 1 + { lib, fetchzip, buildDunePackage, cmdliner }: 2 3 + buildDunePackage rec { 4 + version = "1.7.0"; 5 + pname = "ocp-indent"; 6 7 src = fetchzip { 8 url = "https://github.com/OCamlPro/ocp-indent/archive/${version}.tar.gz"; 9 + sha256 = "006x3fsd61vxnxj4chlakyk3b2s10pb0bdl46g0ghf3j8h33x7hc"; 10 }; 11 12 + minimumOCamlVersion = "4.02"; 13 14 + buildInputs = [ cmdliner ]; 15 16 + meta = with lib; { 17 homepage = http://typerex.ocamlpro.com/ocp-indent.html; 18 description = "A customizable tool to indent OCaml code"; 19 license = licenses.gpl3; 20 maintainers = [ maintainers.jirkamarsik ]; 21 }; 22 }