summary refs log tree commit diff
path: root/pkgs/data/themes/sweet
diff options
context:
space:
mode:
authorJosé Romildo Malaquias <malaquias@gmail.com>2020-12-19 14:04:57 -0300
committerJosé Romildo Malaquias <malaquias@gmail.com>2020-12-19 14:04:57 -0300
commit718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7 (patch)
tree6a1a291ddaee2eb9c1d027bc23e2101293b50bb7 /pkgs/data/themes/sweet
parent15ab96d5a7c61204be79d0588a4816a0f7969306 (diff)
downloadnixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar.gz
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar.bz2
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar.lz
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar.xz
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.tar.zst
nixpkgs-718805e6121e5a91bb1cb8f87f2ff3f4cc6289d7.zip
sweet: 1.10.5 -> 2.0
Diffstat (limited to 'pkgs/data/themes/sweet')
-rw-r--r--pkgs/data/themes/sweet/default.nix30
1 files changed, 15 insertions, 15 deletions
diff --git a/pkgs/data/themes/sweet/default.nix b/pkgs/data/themes/sweet/default.nix
index 9d3603cbf52..6ba7ae40c68 100644
--- a/pkgs/data/themes/sweet/default.nix
+++ b/pkgs/data/themes/sweet/default.nix
@@ -1,46 +1,46 @@
-{ stdenv, fetchurl, unzip }:
+{ stdenv, fetchurl }:
 
 stdenv.mkDerivation rec {
   pname = "sweet";
-  version = "1.10.5";
+  version = "2.0";
 
   srcs = [
     (fetchurl {
-      url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar-Blue.zip";
-      sha256 = "11040hx8ci4vbnyaj63zj924v0ln7rjm9a28mcqdax60h3dp12lj";
+      url = "https://github.com/EliverLara/Sweet/releases/download/${version}/Sweet-Ambar-Blue.tar.xz";
+      sha256 = "028pk07im7pab8a2vh3bvjm8jg37dpvn4c1mwn6vhb6wcr9v5c75";
     })
     (fetchurl {
-      url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar.zip";
-      sha256 = "0lvnjmirpwdav8q0bfbhybwkr2h6dilc7lhhj18xd2k57xadjmxr";
+      url = "https://github.com/EliverLara/Sweet/releases/download/${version}/Sweet-Ambar.tar.xz";
+      sha256 = "0zmdmqndj65kr43g3z57blrmv0y856zlfprm6y45zbf4xz3ybkg6";
     })
     (fetchurl {
-      url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Dark.zip";
-      sha256 = "0a7mh1pgvi8w1ahsmvgnmpdawm30lcjqk4zqvg0lqadsd04dn4h1";
+      url = "https://github.com/EliverLara/Sweet/releases/download/${version}/Sweet-Dark.tar.xz";
+      sha256 = "02sw664fkrfpsygspq8fn4zgk8rxs9rd29nnx6nyvkji68mb51s6";
     })
     (fetchurl {
-      url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-mars.zip";
-      sha256 = "0n2dkl35qrik10wvhvkayyra987p03g56pxhz5kc73cbsl5zd96l";
+      url = "https://github.com/EliverLara/Sweet/releases/download/${version}/Sweet-mars.tar.xz";
+      sha256 = "14rl3il61jyqwiqlpgbh397q3rcs7jcf2pvr2763ar5a9czmy8h6";
     })
     (fetchurl {
-      url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet.zip";
-      sha256 = "0wwmc3wj2pjg4kimfkvcsimk3s4s7l7k000vxqi8yjlfs70f273c";
+      url = "https://github.com/EliverLara/Sweet/releases/download/${version}/Sweet.tar.xz";
+      sha256 = "0rza3yxwj256ibqimymjhd6lpjzr7fkhggq0ijdg1wab3q91x66q";
     })
   ];
 
-  nativeBuildInputs = [ unzip ];
-
   sourceRoot = ".";
 
   installPhase = ''
+    runHook preInstall
     mkdir -p $out/share/themes/
     cp -a Sweet* $out/share/themes/
     rm $out/share/themes/*/{LICENSE,README*}
+    runHook postInstall
   '';
 
   meta = with stdenv.lib; {
     description = "Light and dark colorful Gtk3.20+ theme";
     homepage = "https://github.com/EliverLara/Sweet";
-    license = licenses.gpl3;
+    license = licenses.gpl3Only;
     maintainers = with maintainers; [ fuzen ];
     platforms = platforms.linux;
   };