lol
1{ stdenv, fetchFromGitHub, autoreconfHook, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "pick-${version}";
5 version = "1.7.0";
6
7 src = fetchFromGitHub {
8 owner = "calleerlandsson";
9 repo = "pick";
10 rev = "v${version}";
11 sha256 = "1x7ql530rj4yj50dzp8526mz92g4hhqxnig1qgiq3h3k815p31qb";
12 };
13
14 buildInputs = [ ncurses ];
15
16 nativeBuildInputs = [ autoreconfHook ];
17
18 postPatch = ''
19 sed -i -e 's/\[curses]/\[ncurses]/g' configure.ac
20 '';
21
22 meta = with stdenv.lib; {
23 inherit (src.meta) homepage;
24 description = "Fuzzy text selection utility";
25 license = licenses.mit;
26 maintainers = [ maintainers.womfoo ];
27 platforms = platforms.linux ++ platforms.darwin;
28 };
29
30}