feat: add pokemon-colorscripts default.nix

This commit is contained in:
matt1432 2023-12-10 16:16:53 -05:00
parent 1f9e3512b6
commit a13cad0921
4 changed files with 39 additions and 5 deletions

View file

@ -80,10 +80,13 @@
home.packages =
[
config.customPkgs.repl
nix-melt.packages.${pkgs.system}.default
nurl.packages.${pkgs.system}.default
]
++ (with config.customPkgs; [
pokemon-colorscripts
repl
])
++ (with config.nur.repos.rycee; [
mozilla-addons-to-nix
])

View file

@ -55,9 +55,10 @@
];
home.packages =
[
config.customPkgs.repl
]
(with config.customPkgs; [
pokemon-colorscripts
repl
])
++ (with pkgs.nodePackages; [
undollar
])

View file

@ -1,5 +1,5 @@
{python3Packages}:
python3Packages.buildPythonPackage rec {
python3Packages.buildPythonPackage {
pname = "coloryou";
version = "0.0.1";

View file

@ -0,0 +1,30 @@
{
stdenv,
python3Packages,
fetchFromGitLab,
}:
stdenv.mkDerivation {
name = "pokemon-colorscripts";
propagatedBuildInputs = with python3Packages; [
python
];
src = fetchFromGitLab {
owner = "phoneybadger";
repo = "pokemon-colorscripts";
rev = "0483c85b93362637bdd0632056ff986c07f30868";
hash = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
};
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
'';
}