@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub, python2Packages }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "cde-motif-theme";
5+ version = "1.3";
6+
7+ src = fetchFromGitHub {
8+ owner = "josvanr";
9+ repo = "cde-motif-theme";
10+ rev = version;
11+ sha256 = "1v5c4db69cmzdci8xxlkx3s3cifg1h5160qq5siwfps0sj7pvggj";
12+ };
13+
14+ dontBuild = true;
15+
16+ pythonPath = with python2Packages; [ pyqt4 pillow pyxdg pyyaml ];
17+ nativeBuildInputs = with python2Packages; [ python wrapPython ];
18+
19+ installPhase = ''
20+ mkdir -p $out/share/themes
21+ cp -r cdetheme $out/share/themes
22+ patchShebangs $out/share/themes/cdetheme/scripts/switchtheme
23+ wrapPythonProgramsIn "$out/share/themes/cdetheme/scripts" "$out $pythonPath"
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Gtk2 / Gtk3 theme mimicking CDE / Motif";
28+ homepage = "https://www.gnome-look.org/p/1231025";
29+ license = licenses.gpl3;
30+ platforms = platforms.all;
31+ maintainers = with maintainers; [ gnidorah ];
32+ };
33+}