diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-05 18:17:54 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-12-15 17:46:30 +0000 |
commit | 8a5d33ed527e16d458f323331e935ac74517f361 (patch) | |
tree | a9b73d6f74c55c9ea64adb58a35d32b70129dafe /pkgs/development/ocaml-modules | |
parent | 3582a974646f96da553775a5afc9f4796005c577 (diff) | |
download | nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar.gz nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar.bz2 nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar.lz nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar.xz nixlib-8a5d33ed527e16d458f323331e935ac74517f361.tar.zst nixlib-8a5d33ed527e16d458f323331e935ac74517f361.zip |
ocamlPackages.farfadet: init at 0.2
Farfadet is a printf-like for Faraday library. Homepage: https://github.com/oklm-wsh/Farfadet
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/farfadet/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/farfadet/default.nix b/pkgs/development/ocaml-modules/farfadet/default.nix new file mode 100644 index 000000000000..080cc74998df --- /dev/null +++ b/pkgs/development/ocaml-modules/farfadet/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg +, faraday +}: + +if !stdenv.lib.versionAtLeast ocaml.version "4.3" +then throw "farfadet is not available for OCaml ${ocaml.version}" +else + +stdenv.mkDerivation rec { + name = "ocaml${ocaml.version}-farfadet-${version}"; + version = "0.2"; + + src = fetchurl { + url = "https://github.com/oklm-wsh/Farfadet/releases/download/v${version}/farfadet-${version}.tbz"; + sha256 = "06wvd57c8khpq0c2hvm15zng269zvabsw1lcaqphqdcckl67nsxr"; + }; + + unpackCmd = "tar -xjf $curSrc"; + + buildInputs = [ ocaml findlib ocamlbuild topkg ]; + + propagatedBuildInputs = [ faraday ]; + + inherit (topkg) buildPhase installPhase; + + meta = { + description = "A printf-like for Faraday library"; + homepage = "https://github.com/oklm-wsh/Farfadet"; + license = stdenv.lib.licenses.mit; + maintainers = [ stdenv.lib.maintainers.vbgl ]; + inherit (ocaml.meta) platforms; + }; +} + |