nixpkgs/pkgs/tools/misc/pick/default.nix

31 lines
695 B
Nix
Raw Normal View History

2016-06-28 17:47:02 +02:00
{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }:
stdenv.mkDerivation rec {
name = "pick-${version}";
2017-05-28 15:59:59 +02:00
version = "1.6.1";
2016-06-28 17:47:02 +02:00
src = fetchFromGitHub {
owner = "thoughtbot";
repo = "pick";
rev = "v${version}";
2017-05-28 15:59:59 +02:00
sha256 = "0iw3yqwg8j0pg56xx52xwn7n95vxlqbqh71zrc934v4mq971qlhd";
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;
};
}