2022-03-23 13:10:18 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hiDPI ? false,
|
|
|
|
}: let
|
2021-05-30 20:47:58 +02:00
|
|
|
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
|
|
|
|
variant =
|
2022-03-23 13:10:18 +01:00
|
|
|
if hiDPI
|
|
|
|
then "Gruvbox-Material-Dark-HIDPI"
|
|
|
|
else "Gruvbox-Material-Dark";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = lock.nodes.gruvbox-material-gtk.locked.repo;
|
|
|
|
version = lock.nodes.gruvbox-material-gtk.locked.rev;
|
2021-05-30 20:47:58 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = lock.nodes.gruvbox-material-gtk.locked.owner;
|
|
|
|
repo = lock.nodes.gruvbox-material-gtk.locked.repo;
|
|
|
|
rev = lock.nodes.gruvbox-material-gtk.locked.rev;
|
|
|
|
sha256 = lock.nodes.gruvbox-material-gtk.locked.narHash;
|
|
|
|
};
|
2021-05-30 20:47:58 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/themes/gruvbox-material
|
|
|
|
rm -rf README.md LICENSE demo.png icons
|
|
|
|
cp -r themes/${variant}/* $out/share/themes/gruvbox-material
|
|
|
|
'';
|
2021-05-30 20:47:58 +02:00
|
|
|
|
2022-03-23 13:10:18 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Gruvbox Material for GTK";
|
|
|
|
homepage = "https://github.com/sainnhe/gruvbox-material-gtk";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [];
|
|
|
|
};
|
|
|
|
}
|