nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 gtk-engine-murrine,
6}:
7
8let
9 themeName = "Ant";
10in
11stdenv.mkDerivation (finalAttrs: {
12 pname = "ant-theme";
13 version = "1.3.0";
14
15 src = fetchurl {
16 url = "https://github.com/EliverLara/${themeName}/releases/download/v${finalAttrs.version}/${themeName}.tar";
17 hash = "sha256-vx2iwnJIB+JhFaEwZsYTQ0VXV3MCI4AbWexzb9Iu6eQ=";
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 = {
33 description = "Flat and light theme with a modern look";
34 homepage = "https://github.com/EliverLara/${themeName}";
35 license = lib.licenses.gpl3Only;
36 platforms = lib.platforms.all;
37 maintainers = with lib.maintainers; [ alexarice ];
38 };
39})