about summary refs log tree commit diff
path: root/packages
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-28 18:31:51 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-28 18:31:58 +0200
commite6108fa513a08021fa95bcb987d8dac77beeacaf (patch)
tree1c0e892006838786e3602139a7905f1d415e1e7d /packages
parentPackages: Remove anime-downloader as it is already packaged in the unstable c... (diff)
downloadnixos-config-e6108fa513a08021fa95bcb987d8dac77beeacaf.tar.gz
nixos-config-e6108fa513a08021fa95bcb987d8dac77beeacaf.tar.bz2
nixos-config-e6108fa513a08021fa95bcb987d8dac77beeacaf.zip
Packages: Add manga-cli package
Diffstat (limited to 'packages')
-rw-r--r--packages/default.nix1
-rw-r--r--packages/manga-cli/default.nix32
2 files changed, 33 insertions, 0 deletions
diff --git a/packages/default.nix b/packages/default.nix
index eec0aeb..63a39a7 100644
--- a/packages/default.nix
+++ b/packages/default.nix
@@ -6,5 +6,6 @@ final: prev:
     trackma = prev.callPackage ./trackma { };
     adl = prev.callPackage ./adl { inherit (final.custom) trackma; };
     kindlegen = prev.callPackage ./kindlegen { };
+    manga-cli = prev.callPackage ./manga-cli { };
   };
 }
diff --git a/packages/manga-cli/default.nix b/packages/manga-cli/default.nix
new file mode 100644
index 0000000..93d27a1
--- /dev/null
+++ b/packages/manga-cli/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, lib, fetchFromGitHub, makeWrapper, bash, img2pdf, zathura }:
+stdenv.mkDerivation {
+  pname = "manga-cli";
+
+  version = "1.0";
+
+  src = fetchFromGitHub {
+    owner = "7USTIN";
+    repo = "manga-cli";
+    rev = "a69fe935341eaf96618a6b2064d4dcb36c8690b5";
+    sha256 = "sha256-AnpOEgOBt2a9jtPNvfBnETGtc5Q1WBmSRFDvQB7uBE4=";
+  };
+
+  buildInputs = [ bash ];
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/bin
+    install -Dm755 ./manga-cli "$out/bin/manga-cli"
+    wrapProgram $out/bin/manga-cli \
+      --prefix PATH : ${lib.makeBinPath [ bash img2pdf zathura ]}
+  '';
+
+  meta = with lib; {
+    homepage = "https://github.com/7USTIN/manga-cli";
+    description = "Bash script for reading mangas via the terminal by scraping manganato";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ baitinq ];
+    platforms = platforms.unix;
+  };
+}