2021-06-30 02:01:07 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, lib
|
2021-11-13 11:50:47 +01:00
|
|
|
, writeScriptBin
|
2021-06-30 02:01:07 +02:00
|
|
|
}:
|
2021-11-13 11:50:47 +01:00
|
|
|
let
|
|
|
|
# make install will use dconf to find desktop background file uri.
|
|
|
|
# consider adding an args to allow specify pictures manually.
|
2021-12-24 09:22:24 +01:00
|
|
|
# https://github.com/daniruiz/flat-remix-gnome/blob/20211223/Makefile#L38
|
2021-11-13 11:50:47 +01:00
|
|
|
fake-dconf = writeScriptBin "dconf" "echo -n";
|
|
|
|
in
|
2021-06-30 02:01:07 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "flat-remix-gnome";
|
2021-12-24 09:22:24 +01:00
|
|
|
version = "20211223";
|
2021-06-30 02:01:07 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daniruiz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-12-24 09:22:24 +01:00
|
|
|
hash = "sha256-hAehJNDr8r0Jhhz0h7ygXI08ouNiWDT16SPm49i90lM=";
|
2021-06-30 02:01:07 +02:00
|
|
|
};
|
|
|
|
|
2021-11-13 11:50:47 +01:00
|
|
|
nativeBuildInputs = [ glib fake-dconf ];
|
2021-06-30 02:01:07 +02:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
preInstall = ''
|
|
|
|
# make install will back up this file, it will fail if the file doesn't exist.
|
2021-12-24 09:22:24 +01:00
|
|
|
# https://github.com/daniruiz/flat-remix-gnome/blob/20211223/Makefile#L56
|
2021-06-30 02:01:07 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|