2021-07-03 03:11:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, lib
|
2021-12-06 16:07:01 +00:00
|
|
|
, writeScriptBin
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
2021-12-06 16:07:01 +00:00
|
|
|
let
|
|
|
|
# make install will use dconf to find desktop background file uri.
|
|
|
|
# consider adding an args to allow specify pictures manually.
|
2022-05-18 14:49:53 +00:00
|
|
|
# https://github.com/daniruiz/flat-remix-gnome/blob/20220510/Makefile#L38
|
2021-12-06 16:07:01 +00:00
|
|
|
fake-dconf = writeScriptBin "dconf" "echo -n";
|
|
|
|
in
|
2021-07-03 03:11:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flat-remix-gnome";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "20220524";
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daniruiz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-m7Er6F0VWcdV3+oUPfhJJq80oaht15hBFtg7JQgZJI8=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ glib fake-dconf ];
|
2021-07-03 03:11:41 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# make install will back up this file, it will fail if the file doesn't exist.
|
|
|
|
# https://github.com/daniruiz/flat-remix-gnome/blob/20220510/Makefile#L56
|
2021-07-03 03:11:41 +00:00
|
|
|
preInstall = ''
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|