diff options
author | Artur Taranchiev <ewok@users.noreply.github.com> | 2021-04-15 01:34:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 00:34:50 +0200 |
commit | b2681434a1a53f802d737195e45e412a5e18185e (patch) | |
tree | 799992172dcb24d887844960ea0e3c5154948f01 /pkgs/applications/office/todofi.sh | |
parent | 4825e0735750e3746bd19108d29a3c5a89a16050 (diff) |
todofi.sh: init at 1.0.0 (#119334)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/applications/office/todofi.sh')
-rw-r--r-- | pkgs/applications/office/todofi.sh/default.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/applications/office/todofi.sh/default.nix b/pkgs/applications/office/todofi.sh/default.nix new file mode 100644 index 0000000000000..afdbceb3417e2 --- /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; + }; +} |