nixos-configs/packages/pokemon-colorscripts/default.nix
matt1432 c701e335d1
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(flake): move some code out of flake.in.nix
2024-07-21 17:12:26 -04:00

28 lines
610 B
Nix

{
mkVersion,
stdenv,
python3Packages,
pokemon-colorscripts-src,
...
}:
stdenv.mkDerivation {
pname = "pokemon-colorscripts";
version = mkVersion pokemon-colorscripts-src;
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
'';
}