11 stdenvNoCC.mkDerivation rec {
15 src = fetchFromGitHub {
16 owner = "AndreiUlmeyda";
19 sha256 = "12g0fd7h11hh94b2pyg3pqwbf8bc7gcnrnm1qqbf18s6z02b6ixr";
23 substituteInPlace src/oil --replace \
24 "LIBDIR=/usr/local/lib/oil" "LIBDIR=${placeholder "out"}/lib"
26 substituteInPlace src/json-to-line.jq --replace \
27 "/usr/bin/env -S jq" "${jq}/bin/jq"
29 substituteInPlace src/format-columns.awk --replace \
30 "/usr/bin/env -S awk" "${gawk}/bin/awk"
34 "BINDIR=${placeholder "out"}/bin"
35 "LIBDIR=${placeholder "out"}/lib"
38 nativeBuildInputs = [ makeWrapper ];
41 wrapProgram $out/bin/oil \
42 --prefix PATH : ${lib.makeBinPath [ peco ]}
46 description = "Search-as-you-type cli frontend for the buku bookmarks manager using peco";
47 homepage = "https://github.com/AndreiUlmeyda/oil";
48 license = licenses.gpl3Only;
49 maintainers = with maintainers; [ atila ];
51 platforms = platforms.unix;