nixos-config/user/pkgs/pokemon-colorscripts.nix

31 lines
862 B
Nix
Raw Normal View History

2023-05-21 07:15:29 +05:30
{ lib, stdenv, fetchFromGitLab, pkgs, ... }:
let name = "pokemon-colorscripts";
version = "unstable";
in
stdenv.mkDerivation {
inherit name version;
src = fetchFromGitLab {
owner = "phoneybadger";
2023-12-30 22:35:40 +05:30
repo = name;
2023-05-21 07:15:29 +05:30
rev = "0483c85b93362637bdd0632056ff986c07f30868";
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
};
installPhase = ''
mkdir -p $out $out/bin $out/opt
cp -rf $src/colorscripts $out/opt
cp $src/pokemon-colorscripts.py $out/opt
cp $src/pokemon.json $out/opt
ln -s $out/opt/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
2023-05-21 07:15:29 +05:30
'';
meta = {
2023-12-30 22:35:40 +05:30
homepage = "https://github.com/Admiral-Fish/PokeFinder";
2023-05-21 07:15:29 +05:30
description = "CLI utility to print out images of pokemon to terminal";
license = lib.licenses.mit;
maintainers = [];
};
}