2016-06-28 17:47:02 +02:00
|
|
|
{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "pick-${version}";
|
2017-08-07 17:21:56 +02:00
|
|
|
version = "1.7.0";
|
2016-06-28 17:47:02 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-08-07 17:21:56 +02:00
|
|
|
owner = "calleerlandsson";
|
2016-06-28 17:47:02 +02:00
|
|
|
repo = "pick";
|
|
|
|
rev = "v${version}";
|
2017-08-07 17:21:56 +02:00
|
|
|
sha256 = "1x7ql530rj4yj50dzp8526mz92g4hhqxnig1qgiq3h3k815p31qb";
|
2016-06-28 17:47:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2017-05-28 15:59:59 +02:00
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's/\[curses]/\[ncurses]/g' configure.ac
|
|
|
|
'';
|
|
|
|
|
2016-06-28 17:47:02 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
description = "Fuzzy text selection utility";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.womfoo ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|