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

31 lines
700 B
Nix
Raw Normal View History

2016-06-28 15:47:02 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }:
stdenv.mkDerivation rec {
name = "pick-${version}";
2017-08-07 15:21:56 +00:00
version = "1.7.0";
2016-06-28 15:47:02 +00:00
src = fetchFromGitHub {
2017-08-07 15:21:56 +00:00
owner = "calleerlandsson";
2016-06-28 15:47:02 +00:00
repo = "pick";
rev = "v${version}";
2017-08-07 15:21:56 +00:00
sha256 = "1x7ql530rj4yj50dzp8526mz92g4hhqxnig1qgiq3h3k815p31qb";
2016-06-28 15:47:02 +00:00
};
buildInputs = [ ncurses ];
nativeBuildInputs = [ autoreconfHook ];
2017-05-28 13:59:59 +00:00
postPatch = ''
sed -i -e 's/\[curses]/\[ncurses]/g' configure.ac
'';
2016-06-28 15:47:02 +00: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;
};
}