nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, unzip, gtk-engine-murrine }:
2
3stdenv.mkDerivation rec {
4 pname = "sweet";
5 version = "3.0";
6
7 srcs = [
8 (fetchurl {
9 url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar-Blue.zip";
10 sha256 = "sha256-6ZrjH5L7Yox7riR+2I7vVbFoG4k7xHGyOq1OnkllyiY";
11 })
12 (fetchurl {
13 url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar.zip";
14 sha256 = "sha256-FAbf682YJCCt8NKSdFoaFLwxLDU1aCcTgNdlybZtPMo=";
15 })
16 (fetchurl {
17 url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Dark.zip";
18 sha256 = "sha256-t6fczOnKwi4B9hSFhHQaQ533o7MFL+7HPtUJ/p2CIXM=";
19 })
20 (fetchurl {
21 url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-mars.zip";
22 sha256 = "sha256-QGkkpUqkxGPM1DXrvToB3taajk7vK3rqibQF2M4N9i0=";
23 })
24 (fetchurl {
25 url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet.zip";
26 sha256 = "sha256-1qVC2n7ypN1BFuSzBpbY7QzJUzF1anYNAVcMkNpGTMM";
27 })
28 ];
29
30 nativeBuildInputs = [ unzip ];
31
32 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
33
34 sourceRoot = ".";
35
36 installPhase = ''
37 runHook preInstall
38 mkdir -p $out/share/themes/
39 cp -a Sweet* $out/share/themes/
40 rm $out/share/themes/*/{LICENSE,README*}
41 runHook postInstall
42 '';
43
44 meta = with lib; {
45 description = "Light and dark colorful Gtk3.20+ theme";
46 homepage = "https://github.com/EliverLara/Sweet";
47 license = licenses.gpl3Only;
48 maintainers = with maintainers; [ fuzen ];
49 platforms = platforms.linux;
50 };
51}