go-musicfox: 4.5.7 -> 4.6.0 (#364326)
[NixPkgs.git] / pkgs / by-name / ay / ayu-theme-gtk / package.nix
blobf9af839c04d6b9ef497a35c1c73353d89350fa22
2   stdenv,
3   autoreconfHook,
4   fetchFromGitHub,
5   gnome-shell,
6   gnome-themes-extra,
7   gtk-engine-murrine,
8   gtk3,
9   inkscape,
10   lib,
11   optipng,
12   pkg-config,
13   sassc,
16 stdenv.mkDerivation rec {
17   pname = "ayu-theme-gtk";
18   version = "unstable-2017-05-12";
20   src = fetchFromGitHub {
21     owner = "dnordstrom";
22     repo = "ayu-theme";
23     rev = "cc6f3d3b72897c304e2f00afcaf51df863155e35";
24     sha256 = "sha256-1EhTfPhYl+4IootTCCE04y6V7nW1/eWdHarfF7/j1U0=";
25   };
27   postPatch = ''
28     ln -sn 3.20 common/gtk-3.0/3.24
29     ln -sn 3.18 common/gnome-shell/3.24
30   '';
32   nativeBuildInputs = [
33     autoreconfHook
34     gtk3
35     inkscape
36     optipng
37     pkg-config
38     sassc
39   ];
41   propagatedUserEnvPkgs = [
42     gnome-themes-extra
43     gtk-engine-murrine
44   ];
46   enableParallelBuilding = true;
48   preBuild = ''
49     # Shut up inkscape's warnings about creating profile directory
50     export HOME="$NIX_BUILD_ROOT"
51   '';
53   configureFlags = [
54     "--with-gnome-shell=${gnome-shell.version}"
55     "--disable-unity"
56   ];
58   postInstall = ''
59     install -Dm644 -t $out/share/doc/${pname} AUTHORS *.md
60   '';
62   meta = with lib; {
63     description = "Ayu colored GTK and Kvantum themes based on Arc";
64     homepage = "https://github.com/dnordstrom/ayu-theme/";
65     license = licenses.gpl3;
66     platforms = platforms.linux;
67     maintainers = with maintainers; [ lovesegfault ];
68   };