diff options
author | Kirill Boltaev <aske@fmap.me> | 2016-09-19 20:00:42 +0300 |
---|---|---|
committer | Kirill Boltaev <aske@fmap.me> | 2016-09-26 02:36:49 +0300 |
commit | e61663a23310a7f7cdb5e87a4ca332948da39177 (patch) | |
tree | a2721ff7b833ace5026d8dcaba1310b29320382a /pkgs/development/ocaml-modules/ocamlnat | |
parent | 8967a3f7981ad0d029a0057a4493701398893ad2 (diff) | |
download | nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar.gz nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar.bz2 nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar.lz nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar.xz nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.tar.zst nixpkgs-e61663a23310a7f7cdb5e87a4ca332948da39177.zip |
treewide: move to ocaml-ng system
Diffstat (limited to 'pkgs/development/ocaml-modules/ocamlnat')
-rw-r--r-- | pkgs/development/ocaml-modules/ocamlnat/default.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/ocaml-modules/ocamlnat/default.nix b/pkgs/development/ocaml-modules/ocamlnat/default.nix index 1aeb43b8cf4..29ee6535624 100644 --- a/pkgs/development/ocaml-modules/ocamlnat/default.nix +++ b/pkgs/development/ocaml-modules/ocamlnat/default.nix @@ -1,10 +1,14 @@ -{stdenv, fetchurl, ocaml, findlib, ounit}: +{stdenv, lib, fetchurl, ocaml, findlib, ounit}: -stdenv.mkDerivation { - name = "ocamlnat-0.1.1"; +# https://github.com/bmeurer/ocamlnat/issues/3 +assert lib.versionOlder ocaml.version "4"; + +stdenv.mkDerivation rec { + name = "ocamlnat-${version}"; + version = "0.1.1"; src = fetchurl { - url = http://benediktmeurer.de/files/source/ocamlnat-0.1.1.tar.bz2; + url = "http://benediktmeurer.de/files/source/${name}.tar.bz2"; sha256 = "0dyvy0j6f47laxhnadvm71z1py9hz9zd49hamf6bij99cggb2ij1"; }; |