My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/data/themes/flat-remix-gnome/default.nix

39 lines
986 B

{ stdenv
, fetchFromGitHub
, glib
, lib
}:
stdenv.mkDerivation rec {
pname = "flat-remix-gnome";
version = "20211028";
src = fetchFromGitHub {
owner = "daniruiz";
repo = pname;
rev = version;
hash = "sha256-sHJj81MmU9s5sUq5gaIT3leezuG0aVvgTD70Kho9Z0c=";
};
nativeBuildInputs = [ glib ];
makeFlags = [ "PREFIX=$(out)" ];
preInstall = ''
# make install will back up this file, it will fail if the file doesn't exist.
# https://github.com/daniruiz/flat-remix-gnome/blob/20211028/Makefile#L54
mkdir -p $out/share/gnome-shell/
touch $out/share/gnome-shell/gnome-shell-theme.gresource
'';
postInstall = ''
rm $out/share/gnome-shell/gnome-shell-theme.gresource.old
'';
meta = with lib; {
description = "GNOME Shell theme inspired by material design.";
homepage = "https://drasite.com/flat-remix-gnome";
license = licenses.cc-by-sa-40;
platforms = platforms.linux;
maintainers = [ maintainers.vanilla ];
};
}