ocaml-uuseg: 0.8.0 -> 0.9.0
This commit also refactors the expression.
This commit is contained in:
parent
8ac2c1fead
commit
ca9ab3bfe1
@ -1,18 +1,16 @@
|
|||||||
{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, opam, uucp, uutf, cmdliner }:
|
{ stdenv, buildOcaml, fetchurl, ocaml, findlib, ocamlbuild, opam, uucp, uutf, cmdliner }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) getVersion versionAtLeast;
|
|
||||||
|
|
||||||
pname = "uuseg";
|
pname = "uuseg";
|
||||||
version = "0.8.0";
|
|
||||||
webpage = "http://erratique.ch/software/${pname}";
|
webpage = "http://erratique.ch/software/${pname}";
|
||||||
in
|
in
|
||||||
|
|
||||||
assert versionAtLeast (getVersion ocaml) "4.01";
|
buildOcaml rec {
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
minimumSupportedOcamlVersion = "4.01";
|
||||||
|
|
||||||
name = "ocaml-${pname}-${version}";
|
name = pname;
|
||||||
|
version = "0.9.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "${webpage}/releases/${pname}-${version}.tbz";
|
url = "${webpage}/releases/${pname}-${version}.tbz";
|
||||||
@ -34,7 +32,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
opam-installer --script --prefix=$out ${pname}.install | sh
|
opam-installer --script --prefix=$out ${pname}.install | sh
|
||||||
ln -s $out/lib/${pname} $out/lib/ocaml/${getVersion ocaml}/site-lib/${pname}
|
ln -s $out/lib/${pname} $out/lib/ocaml/${ocaml.version}/site-lib/${pname}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user