2016-10-01 04:06:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "linenoise";
|
2016-10-01 04:06:05 +00:00
|
|
|
version = "1.0.10"; # Its version 1.0 plus 10 commits
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "antirez";
|
|
|
|
repo = "linenoise";
|
|
|
|
rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3";
|
|
|
|
sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = ./create-pkg-config-file.sh;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{lib/pkgconfig,src,include}
|
|
|
|
cp linenoise.c $out/src/
|
|
|
|
cp linenoise.h $out/include/
|
|
|
|
cp linenoise.pc $out/lib/pkgconfig/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/antirez/linenoise";
|
2016-10-01 04:06:05 +00:00
|
|
|
description = "A minimal, zero-config, BSD licensed, readline replacement";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ mpsyco ];
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-10-02 11:14:48 +00:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2016-10-01 04:06:05 +00:00
|
|
|
};
|
|
|
|
}
|