Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 44 lines 874 B view raw
1{ fetchFromGitHub 2, makeWrapper 3, stdenvNoCC 4, lib 5, gnugrep 6, gnused 7, wget 8, fzf 9, mpv 10, aria2 11}: 12 13stdenvNoCC.mkDerivation rec { 14 pname = "ani-cli"; 15 version = "4.3"; 16 17 src = fetchFromGitHub { 18 owner = "pystardust"; 19 repo = "ani-cli"; 20 rev = "v${version}"; 21 hash = "sha256-Wo3ydCylrqfmB4EgYsmc7BfXLPD1BxdDFGY4KeUfGfE="; 22 }; 23 24 nativeBuildInputs = [ makeWrapper ]; 25 26 installPhase = '' 27 runHook preInstall 28 29 install -Dm755 ani-cli $out/bin/ani-cli 30 31 wrapProgram $out/bin/ani-cli \ 32 --prefix PATH : ${lib.makeBinPath [ gnugrep gnused wget fzf mpv aria2 ]} 33 34 runHook postInstall 35 ''; 36 37 meta = with lib; { 38 homepage = "https://github.com/pystardust/ani-cli"; 39 description = "A cli tool to browse and play anime"; 40 license = licenses.gpl3Plus; 41 maintainers = with maintainers; [ skykanin ]; 42 platforms = platforms.unix; 43 }; 44}