Merge pull request #127947 from romildo/upd.whitesur-gtk-theme
This commit is contained in:
commit
2555e22867
56
pkgs/data/themes/whitesur/default.nix
Normal file
56
pkgs/data/themes/whitesur/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, glib
|
||||
, gnome-themes-extra
|
||||
, libxml2
|
||||
, sassc
|
||||
, util-linux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "whitesur-gtk-theme";
|
||||
version = "2021-06-23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vinceliuice";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "075fw57mv6zadq4dryn8bg2b3vq8inmisq18s758cv53pprxh9hw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
glib
|
||||
libxml2
|
||||
sassc
|
||||
util-linux
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gnome-themes-extra # adwaita engine for Gtk2
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
find -name "*.sh" -print0 | while IFS= read -r -d ''' file; do patchShebangs "$file"; done
|
||||
|
||||
# Do not provide `sudo`, as it is not needed in our use case of the install script
|
||||
substituteInPlace lib-core.sh --replace '$(which sudo)' false
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/themes
|
||||
./install.sh --dest $out/share/themes --alt all --theme all
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "MacOS Big Sur like theme for Gnome desktops";
|
||||
homepage = "https://github.com/vinceliuice/WhiteSur-gtk-theme";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.unix;
|
||||
maintainers = [ maintainers.romildo ];
|
||||
};
|
||||
}
|
@ -22666,6 +22666,8 @@ in
|
||||
|
||||
weather-icons = callPackage ../data/fonts/weather-icons { };
|
||||
|
||||
whitesur-gtk-theme = callPackage ../data/themes/whitesur { };
|
||||
|
||||
whitesur-icon-theme = callPackage ../data/icons/whitesur-icon-theme { };
|
||||
|
||||
wireless-regdb = callPackage ../data/misc/wireless-regdb { };
|
||||
|
Loading…
Reference in New Issue
Block a user