about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/linenoise-ng
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/linenoise-ng')
-rw-r--r--nixpkgs/pkgs/development/libraries/linenoise-ng/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/linenoise-ng/default.nix b/nixpkgs/pkgs/development/libraries/linenoise-ng/default.nix
new file mode 100644
index 000000000000..d19d6748147c
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/linenoise-ng/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "linenoise-ng";
+  version = "1.0.1";
+
+  src = fetchFromGitHub {
+    owner = "arangodb";
+    repo = "linenoise-ng";
+    rev = "v${version}";
+    sha256 = "176iz0kj0p8d8i3jqps4z8xkxwl3f1986q88i9xg5fvqgpzsxp20";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  meta = {
+    homepage = "https://github.com/arangodb/linenoise-ng";
+    description = "A small, portable GNU readline replacement for Linux, Windows and MacOS which is capable of handling UTF-8 characters";
+    maintainers = with lib.maintainers; [ cstrahan ];
+    platforms = lib.platforms.all;
+    license = lib.licenses.bsd3;
+  };
+}