about summary refs log tree commit diff
path: root/pkgs/by-name/re/replxx/package.nix
blob: ae8d185bb530c2bf8e794e5d851ad323bada1ecd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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; [ ];
    platforms = platforms.all;
  };
})