1{
2 lib,
3 stdenv,
4 fetchurl,
5 gtk-engine-murrine,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "juno";
10 version = "0.0.3";
11
12 srcs = [
13 (fetchurl {
14 url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno.tar.xz";
15 sha256 = "sha256-G/H5FZ6VSLHwtMtttRafvPFE2sd30FHbep/0i4dGfl8=";
16 })
17 (fetchurl {
18 url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-mirage.tar.xz";
19 sha256 = "sha256-VU8uNH6T9FyOWgIfsGCCihnX3uHfOy6dXsANWKRPQ1c=";
20 })
21 (fetchurl {
22 url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-ocean.tar.xz";
23 sha256 = "sha256-OeMXR0nE9aUmwAGfOAfbNP2Rgvv1u/2vj3LKb88mD1s=";
24 })
25 (fetchurl {
26 url = "https://github.com/gvolpe/Juno/releases/download/${version}/Juno-palenight.tar.xz";
27 sha256 = "sha256-DP3fKXYxUHpsw0msfPAZB3UtEa6CCOfqsabAmsmWq44=";
28 })
29 ];
30
31 sourceRoot = ".";
32
33 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
34
35 installPhase = ''
36 runHook preInstall
37 mkdir -p $out/share/themes
38 cp -a Juno* $out/share/themes
39 rm $out/share/themes/*/{LICENSE,README.md}
40 runHook postInstall
41 '';
42
43 meta = with lib; {
44 description = "GTK themes inspired by epic vscode themes";
45 homepage = "https://github.com/EliverLara/Juno";
46 license = licenses.gpl3Only;
47 platforms = platforms.all;
48 maintainers = [ maintainers.gvolpe ];
49 };
50}