about summary refs log tree commit diff
path: root/pkgs/data/themes
diff options
context:
space:
mode:
authorNick Hu <me@nickhu.co.uk>2020-06-01 14:24:25 +0100
committerGitHub <noreply@github.com>2020-06-01 14:24:25 +0100
commit052fa90e82d01e866c9a130d58f1a72fc007c4ac (patch)
tree99cf57004995f22126166941401e7c47e0dab298 /pkgs/data/themes
parent19dab239bbbf26c5eb1694c4e4d4de473da99dc5 (diff)
parent51a244259cce1c944ac8af50f213da087499e689 (diff)
downloadnixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar.gz
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar.bz2
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar.lz
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar.xz
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.tar.zst
nixlib-052fa90e82d01e866c9a130d58f1a72fc007c4ac.zip
Merge pull request #89163 from gnidorah/cdetheme
cde-gtk-theme: init at 1.3
Diffstat (limited to 'pkgs/data/themes')
-rw-r--r--pkgs/data/themes/cde-motif-theme/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/data/themes/cde-motif-theme/default.nix b/pkgs/data/themes/cde-motif-theme/default.nix
new file mode 100644
index 000000000000..cc83047e3cce
--- /dev/null
+++ b/pkgs/data/themes/cde-motif-theme/default.nix
@@ -0,0 +1,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 ];
+  };
+}