build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / by-name / to / todofi-sh / package.nix
blobb00b94bfcd08fc12a3ca8a80f79f3bf17a8837be
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   makeWrapper,
6   coreutils,
7   gawk,
8   gnugrep,
9   gnused,
10   rofi,
11   todo-txt-cli,
14 stdenv.mkDerivation rec {
15   pname = "todofi.sh";
16   version = "1.0.0";
18   src = fetchFromGitHub {
19     owner = "hugokernel";
20     repo = "todofi.sh";
21     rev = "v${version}";
22     sha256 = "1gmy5inlghycsxiwnyyjyv81jn2fmfk3s9x78kcgyf7khzb5kwvj";
23   };
25   nativeBuildInputs = [ makeWrapper ];
27   installPhase = ''
28     install -Dm 755 todofi.sh -t $out/bin
29   '';
31   postFixup = ''
32     patchShebangs $out/bin
33     wrapProgram $out/bin/todofi.sh --prefix PATH : "${
34       lib.makeBinPath [
35         coreutils
36         gawk
37         gnugrep
38         gnused
39         rofi
40         todo-txt-cli
41       ]
42     }"
43   '';
45   meta = with lib; {
46     description = "Todo-txt + Rofi = Todofi.sh";
47     mainProgram = "todofi.sh";
48     homepage = "https://github.com/hugokernel/todofi.sh";
49     license = licenses.mit;
50     maintainers = with maintainers; [ ewok ];
51     platforms = platforms.linux;
52   };