diff options
author | volth <volth@webmaster.ms> | 2017-02-04 15:07:45 +0000 |
---|---|---|
committer | Joachim F <joachifm@users.noreply.github.com> | 2017-02-04 16:07:45 +0100 |
commit | 762cc106b489a0eba55a72a8fdd17d24054132d9 (patch) | |
tree | 07f23014cf6761e75b8f364088b1743c18ebab50 /pkgs/development/ocaml-modules/curses | |
parent | 913c5b21d5754c78cdf1a376da876ee3bff1de8b (diff) | |
download | nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar.gz nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar.bz2 nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar.lz nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar.xz nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.tar.zst nixlib-762cc106b489a0eba55a72a8fdd17d24054132d9.zip |
virt-top: init at 1.0.8 (#21536)
Diffstat (limited to 'pkgs/development/ocaml-modules/curses')
-rw-r--r-- | pkgs/development/ocaml-modules/curses/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/curses/default.nix b/pkgs/development/ocaml-modules/curses/default.nix new file mode 100644 index 000000000000..4fd75e7aac53 --- /dev/null +++ b/pkgs/development/ocaml-modules/curses/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, ocaml, findlib, ncurses }: + +stdenv.mkDerivation rec { + name = "ocaml-curses-${version}"; + version = "1.0.3"; + + src = fetchurl { + url = "http://ocaml.phauna.org/distfiles/ocaml-curses-${version}.ogunden1.tar.gz"; + sha256 = "0fxya4blx4zcp9hy8gxxm2z7aas7hfvwnjdlj9pmh0s5gijpwsll"; + }; + + propagatedBuildInputs = [ ncurses ]; + + buildInputs = [ ocaml findlib ]; + + createFindlibDestdir = true; + + postPatch = '' + substituteInPlace curses.ml --replace "pp gcc" "pp $CC" + ''; + + buildPhase = "make all opt"; + + meta = with stdenv.lib; { + description = "OCaml Bindings to curses/ncurses"; + homepage = https://opam.ocaml.org/packages/curses/curses.1.0.3/; + license = licenses.gpl2; + maintainers = [ maintainers.volth ]; + platforms = ocaml.meta.platforms or []; + }; +} |