mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 15:15:52 +05:30
33 lines
895 B
Nix
33 lines
895 B
Nix
|
{ lib, stdenv, fetchFromGitLab, pkgs, ... }:
|
||
|
|
||
|
let name = "pokemon-colorscripts";
|
||
|
version = "unstable";
|
||
|
in
|
||
|
stdenv.mkDerivation {
|
||
|
inherit name version;
|
||
|
|
||
|
src = fetchFromGitLab {
|
||
|
owner = "phoneybadger";
|
||
|
repo = "pokemon-colorscripts";
|
||
|
rev = "0483c85b93362637bdd0632056ff986c07f30868";
|
||
|
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
|
||
|
};
|
||
|
|
||
|
phases = "installPhase";
|
||
|
|
||
|
installPhase = ''
|
||
|
mkdir -p $out $out/bin
|
||
|
cp -rf $src/colorscripts $out
|
||
|
cp $src/pokemon-colorscripts.py $out
|
||
|
cp $src/pokemon.json $out
|
||
|
ln -s $out/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
|
||
|
'';
|
||
|
|
||
|
meta = {
|
||
|
homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts";
|
||
|
description = "CLI utility to print out images of pokemon to terminal";
|
||
|
license = lib.licenses.mit;
|
||
|
maintainers = [];
|
||
|
};
|
||
|
}
|