2023-12-10 16:16:53 -05:00
|
|
|
{
|
2024-06-13 22:27:54 -04:00
|
|
|
mkVersion,
|
2023-12-10 16:16:53 -05:00
|
|
|
stdenv,
|
|
|
|
python3Packages,
|
2023-12-31 15:44:53 -05:00
|
|
|
pokemon-colorscripts-src,
|
|
|
|
...
|
2023-12-10 16:16:53 -05:00
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
2024-06-13 22:27:54 -04:00
|
|
|
pname = "pokemon-colorscripts";
|
|
|
|
version = mkVersion pokemon-colorscripts-src;
|
2023-12-31 15:44:53 -05:00
|
|
|
|
|
|
|
src = pokemon-colorscripts-src;
|
2023-12-10 16:16:53 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|