Got pokemon-colorscripts working too!

This commit is contained in:
Emmet 2023-05-20 20:45:29 -05:00
parent d3be1ad863
commit 3700098091
2 changed files with 33 additions and 1 deletions

View file

@ -29,7 +29,6 @@
home.stateVersion = "22.11"; # Please read the comment before changing. home.stateVersion = "22.11"; # Please read the comment before changing.
home.packages = with pkgs; [ home.packages = with pkgs; [
# Core # Core
zsh zsh
@ -95,6 +94,7 @@
pandoc pandoc
nodePackages.mermaid-cli nodePackages.mermaid-cli
(pkgs.callPackage ./pkgs/ytsub.nix { }) (pkgs.callPackage ./pkgs/ytsub.nix { })
(pkgs.callPackage ./pkgs/pokemon-colorscripts.nix { })
# Various dev packages # Various dev packages
texinfo texinfo

View file

@ -0,0 +1,32 @@
{ 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 = [];
};
}