nixpkgs/pkgs/by-name/cy/cyberpunk-neon/package.nix
2024-07-31 22:12:23 -03:00

62 lines
1.4 KiB
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
unzip,
unstableGitUpdater,
}:
stdenvNoCC.mkDerivation {
pname = "cyberpunk-neon";
version = "0-unstable-2024-02-23";
src = fetchFromGitHub {
owner = "Roboron3042";
repo = "Cyberpunk-Neon";
rev = "258b3956a677d56df3027f3d08eabf07da936ec3";
hash = "sha256-00scMHUgesgEmE9naC/AJ9mCRz325jT5WN0uo+u2s6k=";
};
outputs = [
"out"
"gtk"
"kde"
"konsole"
"tilix"
];
nativeBuildInputs = [ unzip ];
installPhase = ''
runHook preInstall
install -Dt $out/share/doc/cyberpunk-neon/ README.md
mkdir -p $gtk/share/themes
unzip gtk/materia-cyberpunk-neon.zip -d $gtk/share/themes/
unzip gtk/oomox-cyberpunk-neon.zip -d $gtk/share/themes/
install -Dt $kde/share/color-schemes kde/cyberpunk-neon.colors
install -Dt $konsole/share/konsole terminal/konsole/cyberpunk-neon.colorscheme
install -Dt $tilix/share/tilix/schemes terminal/tilix/cyberpunk-neon.json
runHook postInstall
'';
strictDeps = true;
passthru = {
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
};
meta = {
homepage = "https://github.com/Roboron3042/Cyberpunk-Neon";
description = "Neon themes for many programs";
license = lib.licenses.cc-by-sa-40;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.all;
};
}