diff --git a/user/home.nix b/user/home.nix index d885afd..ba4aa82 100644 --- a/user/home.nix +++ b/user/home.nix @@ -29,7 +29,6 @@ home.stateVersion = "22.11"; # Please read the comment before changing. - home.packages = with pkgs; [ # Core zsh @@ -95,6 +94,7 @@ pandoc nodePackages.mermaid-cli (pkgs.callPackage ./pkgs/ytsub.nix { }) + (pkgs.callPackage ./pkgs/pokemon-colorscripts.nix { }) # Various dev packages texinfo diff --git a/user/pkgs/pokemon-colorscripts.nix b/user/pkgs/pokemon-colorscripts.nix new file mode 100644 index 0000000..3eae1dd --- /dev/null +++ b/user/pkgs/pokemon-colorscripts.nix @@ -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 = []; + }; + }