about summary refs log tree commit diff
path: root/pkgs/greybird-xfce-theme/default.nix
blob: 80b26e85ae2ea405b5431ef94d40738e2e9c875e (plain) (blame)
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
{ stdenv, fetchFromGitHub }:

stdenv.mkDerivation {
  name = "greybird-xfce-theme";

  src = fetchFromGitHub {
    repo = "Greybird";
    owner = "shimmerproject";
    rev = "d0a50a8ea75f11d668229287e83189ef038a56f0";
    sha256 = "08lf39qbx85ldxfh4qyj9fd42mbsg3vs2r0bg1csl6qx13lffiay";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p "$out/share/themes/Greybird"
    cp -vrt "$out/share/themes/Greybird" \
      gtk-* metacity-1 unity xfce-notify-4.0 xfwm4

    for i in a11y compact; do
      outdir="$out/share/themes/Greybird-$i/xfwm4"
      mkdir -p "$outdir"
      cp -vrt "$outdir" xfwm4-$i/*
    done
  '';
}