diff options
Diffstat (limited to 'pkgs/by-name/fl/flat-remix-gnome/package.nix')
-rw-r--r-- | pkgs/by-name/fl/flat-remix-gnome/package.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/by-name/fl/flat-remix-gnome/package.nix b/pkgs/by-name/fl/flat-remix-gnome/package.nix new file mode 100644 index 000000000000..8a6c2fc0e2c9 --- /dev/null +++ b/pkgs/by-name/fl/flat-remix-gnome/package.nix @@ -0,0 +1,45 @@ +{ stdenv +, fetchFromGitHub +, glib +, lib +, writeScriptBin +}: +let + # make install will use dconf to find desktop background file uri. + # consider adding an args to allow specify pictures manually. + # https://github.com/daniruiz/flat-remix-gnome/blob/20240922/Makefile#L38 + fake-dconf = writeScriptBin "dconf" "echo -n"; +in +stdenv.mkDerivation rec { + pname = "flat-remix-gnome"; + version = "20240922"; + + src = fetchFromGitHub { + owner = "daniruiz"; + repo = pname; + rev = version; + hash = "sha256-/Md1CbEDe+N8Nu0WPrIUkEudqMvEARmHD9NtgE7sPLQ="; + }; + + nativeBuildInputs = [ glib fake-dconf ]; + makeFlags = [ "PREFIX=$(out)" ]; + + # make install will back up this file, it will fail if the file doesn't exist. + # https://github.com/daniruiz/flat-remix-gnome/blob/20240922/Makefile#L56 + 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 ]; + }; +} |