Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

todofi.sh: init at 1.0.0 #119334

Merged
merged 3 commits into from Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
51 changes: 51 additions & 0 deletions pkgs/applications/office/todofi.sh/default.nix
@@ -0,0 +1,51 @@
{ 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
ewok-old marked this conversation as resolved.
Show resolved Hide resolved
'';

wrapperPath = with lib; makeBinPath [
coreutils
gawk
gnugrep
gnused
rofi
todo-txt-cli
];

SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
fixupPhase = ''
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
patchShebangs $out/bin
wrapProgram $out/bin/todofi.sh --prefix PATH : "${wrapperPath}"
SuperSandro2000 marked this conversation as resolved.
Show resolved Hide resolved
'';

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 @@ -26113,6 +26113,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