about summary refs log tree commit diff
path: root/packages/adl/default.nix
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-06-17 19:09:27 +0200
commitad58b57df7b298bc3e25c578f590d44da3ce36c9 (patch)
tree28be43da790fa014e13a7284e5a5979537a8721a /packages/adl/default.nix
downloadnixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.gz
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.tar.bz2
nixos-config-ad58b57df7b298bc3e25c578f590d44da3ce36c9.zip
Initial commit
Diffstat (limited to 'packages/adl/default.nix')
-rw-r--r--packages/adl/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/adl/default.nix b/packages/adl/default.nix
new file mode 100644
index 0000000..4ec7ac4
--- /dev/null
+++ b/packages/adl/default.nix
@@ -0,0 +1,19 @@
+{ stdenv, lib, fetchFromGitHub, makeWrapper, bash, anime-dl, trackma, mpv, fzf }:
+stdenv.mkDerivation {
+  pname = "adl";
+  version = "1.0";
+  src = fetchFromGitHub {
+    owner = "RaitaroH";
+    repo = "adl";
+    rev = "65f68e1dcae4c0caa52668d3a854269e7d226f7c";
+    sha256 = "sha256-fRK3N+UnBPXpvx4Z64JC5TstUi//x5jtrm+rFDxIQUs=";
+  };
+  buildInputs = [ bash anime-dl trackma mpv fzf ];
+  nativeBuildInputs = [ makeWrapper ];
+  installPhase = ''
+    mkdir -p $out/bin
+    cp adl $out/bin/adl  
+    wrapProgram $out/bin/adl \
+      --prefix PATH : ${lib.makeBinPath [ bash anime-dl trackma mpv fzf ]}
+  '';
+}