1{
2 lib,
3 stdenv,
4 fetchurl,
5 gtk-engine-murrine,
6}:
7
8let
9 themeName = "Ant";
10in
11stdenv.mkDerivation rec {
12 pname = "ant-theme";
13 version = "1.3.0";
14
15 src = fetchurl {
16 url = "https://github.com/EliverLara/${themeName}/releases/download/v${version}/${themeName}.tar";
17 sha256 = "1r795v96ywzcb4dq08q2fdbmfia32g36cc512mhy41s8fb1a47dz";
18 };
19
20 propagatedUserEnvPkgs = [
21 gtk-engine-murrine
22 ];
23
24 installPhase = ''
25 runHook preInstall
26 mkdir -p $out/share/themes/${themeName}
27 cp -a * $out/share/themes/${themeName}
28 rm -r $out/share/themes/${themeName}/{Art,LICENSE,README.md,gtk-2.0/render-assets.sh}
29 runHook postInstall
30 '';
31
32 meta = with lib; {
33 description = "Flat and light theme with a modern look";
34 homepage = "https://github.com/EliverLara/${themeName}";
35 license = licenses.gpl3;
36 platforms = platforms.all;
37 maintainers = with maintainers; [ alexarice ];
38 };
39}