depot/third_party/nixpkgs/pkgs/by-name/re/replxx/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
800 B
Nix

{ 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 = "Readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
platforms = platforms.all;
};
})