From d782c3daed3caf6bfeddec547c8161e1b06171dc Mon Sep 17 00:00:00 2001 From: gnidorah Date: Sat, 13 Jun 2020 08:34:56 +0300 Subject: cdetheme: small adjustments --- pkgs/data/themes/cde-motif-theme/default.nix | 33 --------------------------- pkgs/data/themes/cdetheme/default.nix | 34 ++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 33 deletions(-) delete mode 100644 pkgs/data/themes/cde-motif-theme/default.nix create mode 100644 pkgs/data/themes/cdetheme/default.nix (limited to 'pkgs/data/themes') diff --git a/pkgs/data/themes/cde-motif-theme/default.nix b/pkgs/data/themes/cde-motif-theme/default.nix deleted file mode 100644 index cc83047e3cc..00000000000 --- a/pkgs/data/themes/cde-motif-theme/default.nix +++ /dev/null @@ -1,33 +0,0 @@ -{ 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 ]; - }; -} diff --git a/pkgs/data/themes/cdetheme/default.nix b/pkgs/data/themes/cdetheme/default.nix new file mode 100644 index 00000000000..ae738604751 --- /dev/null +++ b/pkgs/data/themes/cdetheme/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub, python2Packages }: + +stdenv.mkDerivation rec { + pname = "cdetheme"; + 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 ]; + hydraPlatforms = []; + }; +} -- cgit 1.4.1