2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, gtk-engine-murrine }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sweet";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
(fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar-Blue.zip";
|
|
|
|
sha256 = "sha256-6ZrjH5L7Yox7riR+2I7vVbFoG4k7xHGyOq1OnkllyiY";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Ambar.zip";
|
|
|
|
sha256 = "sha256-FAbf682YJCCt8NKSdFoaFLwxLDU1aCcTgNdlybZtPMo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-Dark.zip";
|
|
|
|
sha256 = "sha256-t6fczOnKwi4B9hSFhHQaQ533o7MFL+7HPtUJ/p2CIXM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet-mars.zip";
|
|
|
|
sha256 = "sha256-QGkkpUqkxGPM1DXrvToB3taajk7vK3rqibQF2M4N9i0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
(fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "https://github.com/EliverLara/Sweet/releases/download/v${version}/Sweet.zip";
|
|
|
|
sha256 = "sha256-1qVC2n7ypN1BFuSzBpbY7QzJUzF1anYNAVcMkNpGTMM";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
propagatedUserEnvPkgs = [ gtk-engine-murrine ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-12-29 15:07:52 +00:00
|
|
|
runHook preInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/share/themes/
|
|
|
|
cp -a Sweet* $out/share/themes/
|
|
|
|
rm $out/share/themes/*/{LICENSE,README*}
|
2020-12-29 15:07:52 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Light and dark colorful Gtk3.20+ theme";
|
|
|
|
homepage = "https://github.com/EliverLara/Sweet";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ fuzen ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|