42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
pkgs,
|
|
}:
|
|
|
|
pkgs.stdenv.mkDerivation {
|
|
pname = "pokemon-colorscripts";
|
|
version = "main";
|
|
|
|
src = pkgs.fetchFromGitLab {
|
|
owner = "phoneybadger";
|
|
repo = "pokemon-colorscripts";
|
|
rev = "5802ff67520be2ff6117a0abc78a08501f6252ad";
|
|
sha256 = "sha256-gKVmpHKt7S2XhSxLDzbIHTjJMoiIk69Fch202FZffqU=";
|
|
};
|
|
|
|
buildInputs = with pkgs; [
|
|
bash
|
|
python3
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/opt/pokemon-colorscripts
|
|
mkdir -p $out/bin
|
|
|
|
cp -r colorscripts $out/opt/pokemon-colorscripts
|
|
cp pokemon-colorscripts.py $out/opt/pokemon-colorscripts
|
|
cp pokemon.json $out/opt/pokemon-colorscripts
|
|
|
|
ln -s $out/opt/pokemon-colorscripts/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
|
|
chmod +x $out/bin/pokemon-colorscripts
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "CLI utility to print out images of pokemon to terminal";
|
|
homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
mainProgram = "pokemon-colorscripts";
|
|
};
|
|
}
|