From b2681434a1a53f802d737195e45e412a5e18185e Mon Sep 17 00:00:00 2001 From: Artur Taranchiev Date: Thu, 15 Apr 2021 01:34:50 +0300 Subject: [PATCH] todofi.sh: init at 1.0.0 (#119334) Co-authored-by: Sandro --- .../applications/office/todofi.sh/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/applications/office/todofi.sh/default.nix diff --git a/pkgs/applications/office/todofi.sh/default.nix b/pkgs/applications/office/todofi.sh/default.nix new file mode 100644 index 000000000000..afdbceb3417e --- /dev/null +++ b/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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 10a37e20438f..2b0c876113bd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };