summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/terminal_size
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-01-18 14:25:08 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2021-01-29 08:33:49 +0100
commitb4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b (patch)
tree57de8cad9e94f109434f0cd3e97d55892a06ea4f /pkgs/development/ocaml-modules/terminal_size
parente5ce05cc1eee0b8d890726e9826791ef95c51793 (diff)
downloadnixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar.gz
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar.bz2
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar.lz
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar.xz
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.tar.zst
nixpkgs-b4668b2699a72fc3ddb4ea8c0ef67e993c9bef1b.zip
ocamlPackages.terminal_size: init at 0.1.4
Diffstat (limited to 'pkgs/development/ocaml-modules/terminal_size')
-rw-r--r--pkgs/development/ocaml-modules/terminal_size/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/terminal_size/default.nix b/pkgs/development/ocaml-modules/terminal_size/default.nix
new file mode 100644
index 00000000000..9036fc55bef
--- /dev/null
+++ b/pkgs/development/ocaml-modules/terminal_size/default.nix
@@ -0,0 +1,23 @@
+{ lib, buildDunePackage, fetchurl, alcotest }:
+
+buildDunePackage rec {
+  pname = "terminal_size";
+  version = "0.1.4";
+
+  useDune2 = true;
+
+  src = fetchurl {
+    url = "https://github.com/cryptosense/terminal_size/releases/download/v${version}/terminal_size-v${version}.tbz";
+    sha256 = "fdca1fee7d872c4a8e5ab003d9915b6782b272e2a3661ca877f2d78dd25371a7";
+  };
+
+  checkInputs = [ alcotest ];
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Get the dimensions of the terminal";
+    homepage = "https://github.com/cryptosense/terminal_size";
+    license = licenses.bsd2;
+    maintainers = [ maintainers.sternenseemann ];
+  };
+}