Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e5ce05cc1eee
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b4668b2699a7
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 29, 2021

  1. Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    vbgl Vincent Laporte
    Copy the full SHA
    b4668b2 View commit details
Showing with 25 additions and 0 deletions.
  1. +23 −0 pkgs/development/ocaml-modules/terminal_size/default.nix
  2. +2 −0 pkgs/top-level/ocaml-packages.nix
23 changes: 23 additions & 0 deletions pkgs/development/ocaml-modules/terminal_size/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
@@ -1050,6 +1050,8 @@ let

tcslib = callPackage ../development/ocaml-modules/tcslib { };

terminal_size = callPackage ../development/ocaml-modules/terminal_size { };

toml = callPackage ../development/ocaml-modules/toml { };

topkg = callPackage ../development/ocaml-modules/topkg { };