summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/ju/juno-theme/package.nix
blob: 026ca9816fc3d74a9b7ee312e10a00c47e52a477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
  lib,
  stdenv,
  fetchurl,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "juno";
  version = "0.0.3";

  srcs = [
    (fetchurl {
      url = "https://github.com/gvolpe/Juno/releases/download/${finalAttrs.version}/Juno.tar.xz";
      sha256 = "sha256-G/H5FZ6VSLHwtMtttRafvPFE2sd30FHbep/0i4dGfl8=";
    })
    (fetchurl {
      url = "https://github.com/gvolpe/Juno/releases/download/${finalAttrs.version}/Juno-mirage.tar.xz";
      sha256 = "sha256-VU8uNH6T9FyOWgIfsGCCihnX3uHfOy6dXsANWKRPQ1c=";
    })
    (fetchurl {
      url = "https://github.com/gvolpe/Juno/releases/download/${finalAttrs.version}/Juno-ocean.tar.xz";
      sha256 = "sha256-OeMXR0nE9aUmwAGfOAfbNP2Rgvv1u/2vj3LKb88mD1s=";
    })
    (fetchurl {
      url = "https://github.com/gvolpe/Juno/releases/download/${finalAttrs.version}/Juno-palenight.tar.xz";
      sha256 = "sha256-DP3fKXYxUHpsw0msfPAZB3UtEa6CCOfqsabAmsmWq44=";
    })
  ];

  sourceRoot = ".";

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/themes
    cp -a Juno* $out/share/themes
    rm $out/share/themes/*/{LICENSE,README.md}
    runHook postInstall
  '';

  meta = {
    description = "GTK themes inspired by epic vscode themes";
    homepage = "https://github.com/EliverLara/Juno";
    license = lib.licenses.gpl3Only;
    platforms = lib.platforms.all;
    maintainers = [ lib.maintainers.gvolpe ];
  };
})