feat: add pokemon-colorscripts default.nix
This commit is contained in:
parent
1f9e3512b6
commit
a13cad0921
4 changed files with 39 additions and 5 deletions
|
@ -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
|
||||
])
|
||||
|
|
|
@ -55,9 +55,10 @@
|
|||
];
|
||||
|
||||
home.packages =
|
||||
[
|
||||
config.customPkgs.repl
|
||||
]
|
||||
(with config.customPkgs; [
|
||||
pokemon-colorscripts
|
||||
repl
|
||||
])
|
||||
++ (with pkgs.nodePackages; [
|
||||
undollar
|
||||
])
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{python3Packages}:
|
||||
python3Packages.buildPythonPackage rec {
|
||||
python3Packages.buildPythonPackage {
|
||||
pname = "coloryou";
|
||||
version = "0.0.1";
|
||||
|
||||
|
|
30
common/pkgs/pokemon-colorscripts/default.nix
Normal file
30
common/pkgs/pokemon-colorscripts/default.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in a new issue