nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 gnome-shell,
6 glib,
7 libxml2,
8 gtk-engine-murrine,
9 gdk-pixbuf,
10 librsvg,
11 bc,
12}:
13
14stdenv.mkDerivation (finalAttrs: {
15 pname = "equilux-theme";
16 version = "20181029";
17
18 src = fetchFromGitHub {
19 owner = "ddnexus";
20 repo = "equilux-theme";
21 tag = "equilux-v${finalAttrs.version}";
22 hash = "sha256-zCEo2D6/PH0MBbb8ssg415EWA1iWm1Nu59NWC7v3YlM=";
23 };
24
25 nativeBuildInputs = [
26 glib
27 libxml2
28 bc
29 ];
30
31 buildInputs = [
32 gdk-pixbuf
33 librsvg
34 ];
35
36 propagatedUserEnvPkgs = [ gtk-engine-murrine ];
37
38 dontBuild = true;
39
40 installPhase = ''
41 patchShebangs install.sh
42 sed -i install.sh \
43 -e "s|if .*which gnome-shell.*;|if true;|" \
44 -e "s|CURRENT_GS_VERSION=.*$|CURRENT_GS_VERSION=${lib.versions.majorMinor gnome-shell.version}|"
45 mkdir -p $out/share/themes
46 ./install.sh --dest $out/share/themes
47 rm $out/share/themes/*/COPYING
48 '';
49
50 meta = {
51 inherit (finalAttrs.src.meta) homepage;
52 description = "Material Design theme for GNOME/GTK based desktop environments";
53 license = lib.licenses.gpl2;
54 platforms = lib.platforms.all;
55 maintainers = [ lib.maintainers.fpletz ];
56 };
57})