Skip to content

Commit

Permalink
todofi.sh: init at 1.0.0 (#119334)
Browse files Browse the repository at this point in the history
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
  • Loading branch information
ewok and SuperSandro2000 committed Apr 14, 2021
1 parent 4825e07 commit b268143
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/applications/office/todofi.sh/default.nix
@@ -0,0 +1,42 @@
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, coreutils
, gawk
, gnugrep
, gnused
, rofi
, todo-txt-cli
}:

stdenv.mkDerivation rec {
pname = "todofi.sh";
version = "1.0.0";

src = fetchFromGitHub {
owner = "hugokernel";
repo = "todofi.sh";
rev = "v${version}";
sha256 = "1gmy5inlghycsxiwnyyjyv81jn2fmfk3s9x78kcgyf7khzb5kwvj";
};

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
install -Dm 755 todofi.sh -t $out/bin
'';

postFixup = ''
patchShebangs $out/bin
wrapProgram $out/bin/todofi.sh --prefix PATH : "${lib.makeBinPath [ coreutils gawk gnugrep gnused rofi todo-txt-cli ]}"
'';

meta = with lib; {
description = "Todo-txt + Rofi = Todofi.sh";
homepage = "https://github.com/hugokernel/todofi.sh";
license = licenses.mit;
maintainers = with maintainers; [ ewok ];
platforms = platforms.linux;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -26148,6 +26148,8 @@ in

todo-txt-cli = callPackage ../applications/office/todo.txt-cli { };

todofi-sh = callPackage ../applications/office/todofi.sh { };

todoman = callPackage ../applications/office/todoman { };

toggldesktop = libsForQt514.callPackage ../applications/misc/toggldesktop { };
Expand Down

0 comments on commit b268143

Please sign in to comment.