From f5966ce35f0d56b5a8a6bf62fb412b1532506cff Mon Sep 17 00:00:00 2001 From: Red Star Over Earth Date: Fri, 15 Sep 2023 22:56:53 +0800 Subject: [PATCH] replxx: init at 0.0.4 --- pkgs/by-name/re/replxx/package.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/by-name/re/replxx/package.nix diff --git a/pkgs/by-name/re/replxx/package.nix b/pkgs/by-name/re/replxx/package.nix new file mode 100644 index 000000000000..2e910855707b --- /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; + }; +})