git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.ansiterminal: 0.7 -> 0.8.2
commit85ee1bdecd297003b877360b9a94052f00507483 authorRicardo M. Correia <rcorreia@wizy.org> dateThu 3 Jun 2021, 15:51 (5 years ago) parentf9168ac
1 file changed+12−19
pkgs/development/ocaml-modules/ansiterminal/default.nix+12−19
pkgs/development/ocaml-modules/ansiterminal/default.nix+12−19
@@ -1,36 +1,29 @@
1−{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild }:
1+{ lib, buildDunePackage, fetchFromGitHub }:
22
3−stdenv.mkDerivation rec {
3+buildDunePackage rec {
4+ pname = "ANSITerminal";
5+ version = "0.8.2";
46
5− version = "0.7";
7+ useDune2 = true;
68
7− name = "ocaml${ocaml.version}-ansiterminal-${version}";
8−
9− src = fetchurl {
10− url = "https://github.com/Chris00/ANSITerminal/releases/download/${version}/ANSITerminal-${version}.tar.gz";
11− sha256 = "03pqfxvw9pa9720l8i5fgxky1qx70kw6wxbczd5i50xi668lh0i9";
9+ src = fetchFromGitHub {
10+ owner = "Chris00";
11+ repo = pname;
12+ rev = version;
13+ sha256 = "0dyjischrgwlxqz1p5zbqq76jvk6pl1qj75i7ydhijssr9pj278d";
1214 };
1315
14− buildInputs = [ ocaml findlib ocamlbuild ];
15−
16− configurePhase = "ocaml setup.ml -configure --prefix $out";
17−
18− buildPhase = "ocaml setup.ml -build";
19−
20− installPhase = "ocaml setup.ml -install";
21−
22− createFindlibDestdir = true;
16+ doCheck = true;
2317
2418 meta = with lib; {
25− homepage = "https://github.com/Chris00/ANSITerminal";
2619 description = "A module allowing to use the colors and cursor movements on ANSI terminals";
2720 longDescription = ''
2821 ANSITerminal is a module allowing to use the colors and cursor
2922 movements on ANSI terminals. It also works on the windows shell (but
3023 this part is currently work in progress).
3124 '';
25+ inherit (src.meta) homepage;
3226 license = licenses.lgpl3;
33− platforms = ocaml.meta.platforms or [];
3427 maintainers = [ maintainers.jirkamarsik ];
3528 };
3629}