pokemon-colorscripts-mac: init at stable=2021-08-10

This commit is contained in:
Wesley Jr 2022-12-31 20:25:15 -03:00 committed by Wesley Jr
parent f9a86d8f9b
commit 940f5a5b72
No known key found for this signature in database
GPG key ID: 8985D27059807F50
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{ lib
, stdenv
, coreutils
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "pokemon-colorscripts-mac";
version = "stable=2021-08-10";
src = fetchFromGitHub {
owner = "nuke-dash";
repo = "${pname}";
rev = "6aa0cd93b255bee35c5716652b8b7dfecb5fcfa2";
sha256 = "06b86qy2fpzdd81n2mscc2njkrxx0dyzxpgnm1xk6ldn17c853lc";
};
buildInputs = [ coreutils ];
preBuild = ''
patchShebangs ./install.sh
# Fix hardcoded prefixed coreutils
substituteInPlace pokemon-colorscripts.sh --replace greadlink readlink
substituteInPlace pokemon-colorscripts.sh --replace gshuf shuf
substituteInPlace install.sh --replace /usr/local $out
'';
installPhase = ''
runHook preInstall
mkdir -p $out/opt
mkdir -p $out/bin
./install.sh
runHook postInstall
'';
meta = with lib; {
description = "Pokémon colorscripts for the terminal, compatible for mac";
longDescription = ''
Show colored sprites of pokémons in your terminal.
Contains almost 900 pokemon from gen 1 to gen 8.
Inspired by DT's colorscripts.
'';
homepage = "https://github.com/nuke-dash/pokemon-colorscripts-mac";
license = licenses.mit;
maintainers = [ maintainers.wesleyjrz ];
platforms = platforms.unix;
};
}

View file

@ -28127,6 +28127,8 @@ with pkgs;
cmatrix = callPackage ../applications/misc/cmatrix { };
pokemon-colorscripts-mac = callPackage ../applications/misc/pokemon-colorscripts-mac { };
cmctl = callPackage ../applications/networking/cluster/cmctl { };
cmus = callPackage ../applications/audio/cmus {