mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Got pokemon-colorscripts working too!
This commit is contained in:
parent
d3be1ad863
commit
3700098091
|
@ -29,7 +29,6 @@
|
||||||
|
|
||||||
home.stateVersion = "22.11"; # Please read the comment before changing.
|
home.stateVersion = "22.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Core
|
# Core
|
||||||
zsh
|
zsh
|
||||||
|
@ -95,6 +94,7 @@
|
||||||
pandoc
|
pandoc
|
||||||
nodePackages.mermaid-cli
|
nodePackages.mermaid-cli
|
||||||
(pkgs.callPackage ./pkgs/ytsub.nix { })
|
(pkgs.callPackage ./pkgs/ytsub.nix { })
|
||||||
|
(pkgs.callPackage ./pkgs/pokemon-colorscripts.nix { })
|
||||||
|
|
||||||
# Various dev packages
|
# Various dev packages
|
||||||
texinfo
|
texinfo
|
||||||
|
|
32
user/pkgs/pokemon-colorscripts.nix
Normal file
32
user/pkgs/pokemon-colorscripts.nix
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib, stdenv, fetchFromGitLab, pkgs, ... }:
|
||||||
|
|
||||||
|
let name = "pokemon-colorscripts";
|
||||||
|
version = "unstable";
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
inherit name version;
|
||||||
|
|
||||||
|
src = fetchFromGitLab {
|
||||||
|
owner = "phoneybadger";
|
||||||
|
repo = "pokemon-colorscripts";
|
||||||
|
rev = "0483c85b93362637bdd0632056ff986c07f30868";
|
||||||
|
sha256 = "sha256-rj0qKYHCu9SyNsj1PZn1g7arjcHuIDGHwubZg/yJt7A=";
|
||||||
|
};
|
||||||
|
|
||||||
|
phases = "installPhase";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out $out/bin
|
||||||
|
cp -rf $src/colorscripts $out
|
||||||
|
cp $src/pokemon-colorscripts.py $out
|
||||||
|
cp $src/pokemon.json $out
|
||||||
|
ln -s $out/pokemon-colorscripts.py $out/bin/pokemon-colorscripts
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://gitlab.com/phoneybadger/pokemon-colorscripts";
|
||||||
|
description = "CLI utility to print out images of pokemon to terminal";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = [];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue