summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorRed Star Over Earth <rs0vere@proton.me>2023-09-15 22:56:53 +0800
committerAnderson Torres <torres.anderson.85@protonmail.com>2023-09-17 10:59:07 -0300
commitf5966ce35f0d56b5a8a6bf62fb412b1532506cff (patch)
treee244502e9e403da268f23fbec2be485a99294f0c /pkgs/by-name
parenta4f09f22eaeb1b0ffae9369fcb60677edc3f906d (diff)
downloadnixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar.gz
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar.bz2
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar.lz
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar.xz
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.tar.zst
nixpkgs-f5966ce35f0d56b5a8a6bf62fb412b1532506cff.zip
replxx: init at 0.0.4
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/re/replxx/package.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/by-name/re/replxx/package.nix b/pkgs/by-name/re/replxx/package.nix
new file mode 100644
index 00000000000..2e910855707
--- /dev/null
+++ b/pkgs/by-name/re/replxx/package.nix
@@ -0,0 +1,30 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, cmake
+, enableStatic ? stdenv.hostPlatform.isStatic
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "replxx";
+  version = "0.0.4";
+
+  src = fetchFromGitHub {
+    owner = "AmokHuginnsson";
+    repo = "replxx";
+    rev = "release-${finalAttrs.version}";
+    hash = "sha256-WGiczMJ64YPq0DHKZRBDa7EGlRx7hPlpnk6zPdIVFh4=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  cmakeFlags = [ "-DBUILD_SHARED_LIBS=${if enableStatic then "OFF" else "ON"}" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/AmokHuginnsson/replxx";
+    description = "A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ rs0vere ];
+    platforms = platforms.all;
+  };
+})