nixos-configs/packages/pokemon-colorscripts/default.nix

29 lines
610 B
Nix
Raw Permalink Normal View History

{
2024-06-13 22:27:54 -04:00
mkVersion,
stdenv,
python3Packages,
pokemon-colorscripts-src,
...
}:
stdenv.mkDerivation {
2024-06-13 22:27:54 -04:00
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
'';
}