earbuds: disable updateScript (#374592)
[NixPkgs.git] / pkgs / by-name / ro / rose-pine-gtk-theme / package.nix
blobbdc2a459b3c2a324d52c708a35f879ac92ee5d6c
2   stdenvNoCC,
3   lib,
4   fetchFromGitHub,
5   gnome-themes-extra,
6   gtk-engine-murrine,
7   gtk_engines,
8 }:
10 stdenvNoCC.mkDerivation rec {
11   pname = "rose-pine-gtk-theme";
12   version = "2.2.0";
14   src = fetchFromGitHub {
15     owner = "rose-pine";
16     repo = "gtk";
17     tag = "v${version}";
18     hash = "sha256-vCWs+TOVURl18EdbJr5QAHfB+JX9lYJ3TPO6IklKeFE=";
19   };
21   buildInputs = [
22     gnome-themes-extra # adwaita engine for Gtk2
23     gtk_engines # pixmap engine for Gtk2
24   ];
26   propagatedUserEnvPkgs = [
27     gtk-engine-murrine # murrine engine for Gtk2
28   ];
30   # avoid the makefile which is only for theme maintainers
31   dontBuild = true;
33   installPhase = ''
34     runHook preInstall
36     mkdir -p $out/share/themes/rose-pine{,-dawn,-moon}/gtk-4.0
38     variants=("rose-pine" "rose-pine-dawn" "rose-pine-moon")
39     for n in "''${variants[@]}"; do
40       cp -r $src/gtk3/"''${n}"-gtk/* $out/share/themes/"''${n}"
41       cp -r $src/gtk4/"''${n}".css $out/share/themes/"''${n}"/gtk-4.0/gtk.css
42     done
44     runHook postInstall
45   '';
47   meta = with lib; {
48     description = "Rosé Pine theme for GTK";
49     homepage = "https://github.com/rose-pine/gtk";
50     license = licenses.gpl3Only;
51     platforms = platforms.linux;
52     maintainers = with maintainers; [
53       romildo
54       the-argus
55     ];
56   };