diff options
author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2023-01-03 11:16:13 -0600 |
---|---|---|
committer | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2023-01-03 11:25:04 -0600 |
commit | 89bdfaa08cd1ebd6892841d08fe86b87b85029d6 (patch) | |
tree | 3873e26a14903cec539bcf7acaeb6f26706484c9 /pkgs/data/icons/rose-pine | |
parent | 2bd27f69f7bedb05a8089d1d8c33bb0b43f39975 (diff) |
rose-pine-gtk: unstable-2021-02-22 -> unstable-2022-09-01
Diffstat (limited to 'pkgs/data/icons/rose-pine')
-rw-r--r-- | pkgs/data/icons/rose-pine/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/data/icons/rose-pine/default.nix b/pkgs/data/icons/rose-pine/default.nix new file mode 100644 index 0000000000000..0aee480fb76a5 --- /dev/null +++ b/pkgs/data/icons/rose-pine/default.nix @@ -0,0 +1,48 @@ +{ + stdenv, + lib, + fetchFromGitHub, + variant ? "default", +}: let + source-locations = { + default = "icons/rose-pine-icons"; + moon = "icons/rose-pine-moon-icons"; + dawn = "icons/rose-pine-dawn-icons"; + }; + + source-location = + if builtins.hasAttr variant source-locations + then source-locations.${variant} + else abort "unknown rose-pine variant ${variant}"; +in + stdenv.mkDerivation rec { + pname = "rose-pine-${variant}-icon-theme"; + version = "unstable-2022-09-01"; + + src = fetchFromGitHub { + owner = "rose-pine"; + repo = "gtk"; + rev = "7a4c40989fd42fd8d4a797f460c79fc4a085c304"; + sha256 = "0q74wjyrsjyym770i3sqs071bvanwmm727xzv50wk6kzvpyqgi67"; + }; + + # avoid the makefile which is only for the theme maintainers + dontBuild = true; + + installPhase = '' + runHook preInstall + + mkdir -p $out/share/icons + mv ${source-location} $out/share/icons/rose-pine + + runHook postInstall + ''; + + meta = with lib; { + description = "Rosé Pine icon theme for GTK"; + homepage = "https://github.com/rose-pine/gtk"; + license = licenses.gpl3Only; + platforms = platforms.linux; + maintainers = [maintainers.romildo]; + }; + } |