nixpkgs/pkgs/data/themes/flat-remix-gnome/default.nix
Alexis Hildebrandt bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00

46 lines
1.2 KiB
Nix

{ 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/20240526/Makefile#L38
fake-dconf = writeScriptBin "dconf" "echo -n";
in
stdenv.mkDerivation rec {
pname = "flat-remix-gnome";
version = "20240526";
src = fetchFromGitHub {
owner = "daniruiz";
repo = pname;
rev = version;
hash = "sha256-Z4ba+DB4a9cHT+r+UbsGKG46hcqbM8CZHiI36D60/aY=";
};
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/20240526/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 ];
};
}