nixos-configs/common/pkgs/pokemon-colorscripts/default.nix
matt1432 9f2b537bf7
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: use non-flake inputs instead of fetchers
2023-12-31 15:44:53 -05:00

27 lines
590 B
Nix

{
stdenv,
python3Packages,
pokemon-colorscripts-src,
...
}:
stdenv.mkDerivation {
name = "pokemon-colorscripts";
version = pokemon-colorscripts-src.rev;
src = pokemon-colorscripts-src;
propagatedBuildInputs = with python3Packages; [
python
];
installPhase = ''
mkdir -p $out/pokemon-colorscripts $out/bin
cp -rf colorscripts $out/pokemon-colorscripts
cp pokemon.json $out/pokemon-colorscripts
cp pokemon-colorscripts.py $out/pokemon-colorscripts
ln -s $out/pokemon-colorscripts/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
'';
}