mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
Merge pull request #325864 from NixOS/backport-323487-to-release-24.05
[Backport release-24.05] nightfox-gtk-theme: unstable-2023-05-28 -> 0-unstable-2024-06-27
This commit is contained in:
commit
1a65d30432
@ -1,35 +1,51 @@
|
|||||||
{ lib
|
{
|
||||||
, stdenvNoCC
|
lib,
|
||||||
, fetchFromGitHub
|
stdenvNoCC,
|
||||||
, gnome-themes-extra
|
fetchFromGitHub,
|
||||||
, gtk-engine-murrine
|
gnome,
|
||||||
|
sassc,
|
||||||
|
gnome-themes-extra,
|
||||||
|
gtk-engine-murrine,
|
||||||
|
colorVariants ? [] # default: install all icons
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation {
|
let
|
||||||
pname = "nightfox-gtk-theme";
|
pname = "nightfox-gtk-theme";
|
||||||
version = "unstable-2023-05-28";
|
colorVariantList = [
|
||||||
|
"dark"
|
||||||
|
"light"
|
||||||
|
];
|
||||||
|
|
||||||
|
in
|
||||||
|
lib.checkListOfEnum "${pname}: colorVariants" colorVariantList colorVariants
|
||||||
|
|
||||||
|
stdenvNoCC.mkDerivation {
|
||||||
|
inherit pname;
|
||||||
|
version = "0-unstable-2024-06-27";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Fausto-Korpsvart";
|
owner = "Fausto-Korpsvart";
|
||||||
repo = "Nightfox-GTK-Theme";
|
repo = "Nightfox-GTK-Theme";
|
||||||
rev = "a8b01a28f2d1d9dd57d98d3708602b0d72340338";
|
rev = "ef4e6e1fa3efe2a5d838d61191776abfe4d87766";
|
||||||
hash = "sha256-GrlKYCqO9vgRbPdPhugPBg2rYtDxzbQwRPtTBIyIyx4=";
|
hash = "sha256-RsDEHauz9jQs1rqsoKbL/s0Vst3GzJXyGsE3uFtLjCY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedUserEnvPkgs = [
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
||||||
gtk-engine-murrine
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [ gnome.gnome-shell sassc ];
|
||||||
gnome-themes-extra
|
buildInputs = [ gnome-themes-extra ];
|
||||||
];
|
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
patchShebangs themes/install.sh
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
mkdir -p $out/share/themes
|
mkdir -p $out/share/themes
|
||||||
cp -a themes/* $out/share/themes
|
cd themes
|
||||||
|
./install.sh -n Nightfox -c ${lib.concatStringsSep " " (if colorVariants != [] then colorVariants else colorVariantList)} --tweaks macos -d "$out/share/themes"
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user