about summary refs log tree commit diff
path: root/pkgs/data/themes/cde-motif-theme/default.nix
blob: cc83047e3cce13bb5b53a9ad13f61fbaffe68708 (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
27
28
29
30
31
32
33
{ stdenv, fetchFromGitHub, python2Packages }:

stdenv.mkDerivation rec {
  pname = "cde-motif-theme";
  version = "1.3";

  src = fetchFromGitHub {
    owner = "josvanr";
    repo = "cde-motif-theme";
    rev = version;
    sha256 = "1v5c4db69cmzdci8xxlkx3s3cifg1h5160qq5siwfps0sj7pvggj";
  };

  dontBuild = true;

  pythonPath = with python2Packages; [ pyqt4 pillow pyxdg pyyaml ];
  nativeBuildInputs = with python2Packages; [ python wrapPython ];

  installPhase = ''
    mkdir -p $out/share/themes
    cp -r cdetheme $out/share/themes
    patchShebangs $out/share/themes/cdetheme/scripts/switchtheme
    wrapPythonProgramsIn "$out/share/themes/cdetheme/scripts" "$out $pythonPath"
  '';

  meta = with stdenv.lib; {
    description = "Gtk2 / Gtk3 theme mimicking CDE / Motif";
    homepage = "https://www.gnome-look.org/p/1231025";
    license = licenses.gpl3;
    platforms = platforms.all;
    maintainers = with maintainers; [ gnidorah ];
  };
}