about summary refs log tree commit diff
path: root/pkgs/tools/misc/manga-cli
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-27 01:02:28 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-08-28 23:42:01 +0200
commit817413c0425d3e95f0ce5f1c98b7df489c4a1825 (patch)
tree3edbe3e21d51ad4c6390d5ce3f355dc5b8a9955a /pkgs/tools/misc/manga-cli
parent95a6652630e0f72dc41ebec62bb3c88f889823fe (diff)
manga-cli: init at 1.0.5
Diffstat (limited to 'pkgs/tools/misc/manga-cli')
-rw-r--r--pkgs/tools/misc/manga-cli/default.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/tools/misc/manga-cli/default.nix b/pkgs/tools/misc/manga-cli/default.nix
new file mode 100644
index 0000000000000..3f57b529e51ad
--- /dev/null
+++ b/pkgs/tools/misc/manga-cli/default.nix
@@ -0,0 +1,39 @@
+{ stdenvNoCC
+, lib
+, fetchFromGitHub
+, makeWrapper
+, img2pdf
+, zathura
+}:
+
+stdenvNoCC.mkDerivation {
+  pname = "manga-cli";
+  version = "unstable-2022-04-11";
+
+  src = fetchFromGitHub {
+    owner = "7USTIN";
+    repo = "manga-cli";
+    rev = "a69fe935341eaf96618a6b2064d4dcb36c8690b5";
+    sha256 = "sha256-AnpOEgOBt2a9jtPNvfBnETGtc5Q1WBmSRFDvQB7uBE4=";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    runHook preInstall
+
+    install -Dm755 manga-cli $out/bin/manga-cli
+
+    wrapProgram $out/bin/manga-cli \
+      --prefix PATH : ${lib.makeBinPath [ img2pdf zathura ]}
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/7USTIN/manga-cli";
+    description = "Bash script for reading mangas via the terminal by scraping manganato";
+    license = licenses.gpl3Only;
+    maintainers = with maintainers; [ baitinq ];
+  };
+}