2021-07-03 03:11:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flat-remix-gnome";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "20210716";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daniruiz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-05 21:33:18 +00:00
|
|
|
hash = "sha256-UAWi4MyqtuSzp5TEkVLYJF7+2tzH/aT60ObNOimCJ4o=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ glib ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
preInstall = ''
|
|
|
|
# make install will back up this file, it will fail if the file doesn't exist.
|
2021-08-05 21:33:18 +00:00
|
|
|
# https://github.com/daniruiz/flat-remix-gnome/blob/20210716/Makefile#L53
|
2021-07-03 03:11:41 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|