1 { lib, stdenv, fetchFromGitHub }:
5 version = "1.0.10"; # Its version 1.0 plus 10 commits
7 src = fetchFromGitHub {
10 rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3";
11 sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w";
14 buildPhase = ./create-pkg-config-file.sh;
17 mkdir -p $out/{lib/pkgconfig,src,include}
18 cp linenoise.c $out/src/
19 cp linenoise.h $out/include/
20 cp linenoise.pc $out/lib/pkgconfig/
24 homepage = "https://github.com/antirez/linenoise";
25 description = "A minimal, zero-config, BSD licensed, readline replacement";
26 maintainers = with lib.maintainers; [ mpsyco ];
27 platforms = lib.platforms.unix;
28 license = lib.licenses.bsd2;