diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-10-01 04:20:00 +0000 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2021-10-07 20:53:08 +0200 |
commit | 2ed7f96a78a59684a49ba306b6be1219e845e346 (patch) | |
tree | 864bdb66b4ee08042e13ba86fbc950c22f6a8caa /pkgs/development | |
parent | a362961fafb1898e9938380d30f9f6383ac5c024 (diff) |
ocamlPackages.curses: 1.0.4 -> 1.0.8
https://github.com/mbacarella/curses/raw/1.0.8/CHANGES
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/ocaml-modules/curses/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/ocaml-modules/curses/default.nix b/pkgs/development/ocaml-modules/curses/default.nix index f1211ad9cdc63..824f24ab95507 100644 --- a/pkgs/development/ocaml-modules/curses/default.nix +++ b/pkgs/development/ocaml-modules/curses/default.nix @@ -1,17 +1,19 @@ -{ lib, stdenv, fetchurl, ocaml, findlib, ncurses }: +{ lib, stdenv, fetchFromGitHub, ocaml, findlib, ncurses }: stdenv.mkDerivation rec { pname = "ocaml-curses"; - version = "1.0.4"; + version = "1.0.8"; - src = fetchurl { - url = "http://ocaml.phauna.org/distfiles/ocaml-curses-${version}.ogunden1.tar.gz"; - sha256 = "08wq1r93lincdfzlriyc5nl2p4q7ca4h6ygzgp1nhkgd93pgk9v2"; + src = fetchFromGitHub { + owner = "mbacarella"; + repo = "curses"; + rev = version; + sha256 = "0yy3wf8i7jgvzdc40bni7mvpkvclq97cgb5fw265mrjj0iqpkqpd"; }; propagatedBuildInputs = [ ncurses ]; - buildInputs = [ ocaml findlib ]; + nativeBuildInputs = [ ocaml findlib ]; # Fix build for recent ncurses versions NIX_CFLAGS_COMPILE = "-DNCURSES_INTERNALS=1"; @@ -26,8 +28,9 @@ stdenv.mkDerivation rec { meta = with lib; { description = "OCaml Bindings to curses/ncurses"; - homepage = "https://opam.ocaml.org/packages/curses/curses.1.0.4/"; - license = licenses.gpl2; + homepage = "https://github.com/mbacarella/curses"; + license = licenses.lgpl21Plus; + changelog = "https://github.com/mbacarella/curses/raw/${version}/CHANGES"; maintainers = [ maintainers.volth ]; platforms = ocaml.meta.platforms or []; }; |