From 2ed7f96a78a59684a49ba306b6be1219e845e346 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 1 Oct 2021 04:20:00 +0000 Subject: ocamlPackages.curses: 1.0.4 -> 1.0.8 https://github.com/mbacarella/curses/raw/1.0.8/CHANGES --- pkgs/development/ocaml-modules/curses/default.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'pkgs/development/ocaml-modules') 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 []; }; -- cgit 1.4.1