mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
oil-buku: init at 0.3.2
This commit is contained in:
parent
a31699dce9
commit
d3f07498cd
45
pkgs/applications/misc/oil/default.nix
Normal file
45
pkgs/applications/misc/oil/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenvNoCC, lib, fetchFromGitHub, jq, gawk, peco, makeWrapper }:
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "oil-buku";
|
||||||
|
version = "0.3.2";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "AndreiUlmeyda";
|
||||||
|
repo = "oil";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "12g0fd7h11hh94b2pyg3pqwbf8bc7gcnrnm1qqbf18s6z02b6ixr";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace src/oil --replace \
|
||||||
|
"LIBDIR=/usr/local/lib/oil" "LIBDIR=${placeholder "out"}/lib"
|
||||||
|
|
||||||
|
substituteInPlace Makefile --replace \
|
||||||
|
"LIBDIR ?= /usr/local/lib/oil" "LIBDIR ?= ${placeholder "out"}/lib" \
|
||||||
|
|
||||||
|
substituteInPlace Makefile --replace \
|
||||||
|
"BINDIR ?= /usr/local/bin" "BINDIR ?= ${placeholder "out"}/bin"
|
||||||
|
|
||||||
|
substituteInPlace src/json-to-line.jq --replace \
|
||||||
|
"/usr/bin/env -S jq" "${jq}/bin/jq"
|
||||||
|
|
||||||
|
substituteInPlace src/format-columns.awk --replace \
|
||||||
|
"/usr/bin/env -S awk" "${gawk}/bin/awk"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/oil \
|
||||||
|
--prefix PATH : ${lib.makeBinPath [ peco ]}
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Search-as-you-type cli frontend for the buku bookmarks manager using peco";
|
||||||
|
homepage = "https://github.com/AndreiUlmeyda/oil";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
maintainers = with maintainers; [ atila ];
|
||||||
|
};
|
||||||
|
}
|
@ -3580,6 +3580,8 @@ with pkgs;
|
|||||||
|
|
||||||
odafileconverter = libsForQt5.callPackage ../applications/graphics/odafileconverter {};
|
odafileconverter = libsForQt5.callPackage ../applications/graphics/odafileconverter {};
|
||||||
|
|
||||||
|
oil-buku = callPackage ../applications/misc/oil { };
|
||||||
|
|
||||||
ossutil = callPackage ../tools/admin/ossutil {};
|
ossutil = callPackage ../tools/admin/ossutil {};
|
||||||
|
|
||||||
pastel = callPackage ../applications/misc/pastel {
|
pastel = callPackage ../applications/misc/pastel {
|
||||||
|
Loading…
Reference in New Issue
Block a user