nixos/pkgs/gruvbox-material-gtk.nix

38 lines
1 KiB
Nix
Raw Normal View History

{
lib,
stdenv,
fetchFromGitHub,
hiDPI ? false,
}: let
2021-05-30 20:47:58 +02:00
lock = builtins.fromJSON (builtins.readFile ../flake.lock);
variant =
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
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
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
meta = with lib; {
description = "Gruvbox Material for GTK";
homepage = "https://github.com/sainnhe/gruvbox-material-gtk";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [];
};
}