nixpkgs/pkgs/by-name/re/replxx/package.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

32 lines
885 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";
changelog = "https://github.com/AmokHuginnsson/replxx/releases/tag/release-${finalAttrs.version}";
description = "Readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed";
license = licenses.bsd3;
maintainers = [ ];
platforms = platforms.all;
};
})