mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2025-11-18 03:24:12 +00:00
treewide: start transitioning to nixpkgs package structure
This commit is contained in:
parent
5244163a47
commit
d52fa53348
16 changed files with 190 additions and 63 deletions
6
pkgs/applications/misc/ani-cli/README.md
Normal file
6
pkgs/applications/misc/ani-cli/README.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# ani-cli
|
||||
|
||||
ani-cli is already in nixpkgs. The sole reason it's been put in this overlay is so that
|
||||
I can receive the updates _as they happen_ and not wait until a maintainer bumps it up.
|
||||
|
||||
The source for ani-cli is updated periodically.
|
||||
43
pkgs/applications/misc/ani-cli/default.nix
Normal file
43
pkgs/applications/misc/ani-cli/default.nix
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
makeWrapper,
|
||||
stdenvNoCC,
|
||||
lib,
|
||||
gnugrep,
|
||||
gnused,
|
||||
wget,
|
||||
fzf,
|
||||
mpv,
|
||||
aria2,
|
||||
pins,
|
||||
}: let
|
||||
pin = pins.ani-cli;
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "ani-cli";
|
||||
inherit (pin) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
inherit (pin.repository) owner repo;
|
||||
sha256 = pin.hash;
|
||||
rev = pin.revision;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [makeWrapper];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 ani-cli $out/bin/ani-cli
|
||||
wrapProgram $out/bin/ani-cli \
|
||||
--prefix PATH : ${lib.makeBinPath [gnugrep gnused wget fzf mpv aria2]}
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pystardust/ani-cli";
|
||||
description = "A cli tool to browse and play anime";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [NotAShelf];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue