Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / plasma-theme-switcher / default.nix
blobfb8d407ef12f91270d624870e9722ed8957d5949
2   stdenv, lib, cmake, extra-cmake-modules, fetchFromGitHub, qtbase, kdeFrameworks
3 }:
5 stdenv.mkDerivation rec {
6   pname = "plasma-theme-switcher";
7   version = "0.1";
8   dontWrapQtApps = true;
10   src = fetchFromGitHub {
11     owner = "maldoinc";
12     repo = "plasma-theme-switcher";
13     rev = "v${version}";
14     sha256 = "sdcJ6K5QmglJEDIEl4sd8x7DuCPCqMHRxdYbcToM46Q=";
15   };
17   buildInputs = [
18     qtbase
19     kdeFrameworks.plasma-framework
20   ];
22   nativeBuildInputs = [
23     cmake
24     extra-cmake-modules
25   ];
27   installPhase = ''
28     runHook preInstall
30     mkdir -p $out/bin
31     cp plasma-theme $out/bin
33     runHook postInstall
34   '';
36   meta = with lib; {
37     homepage = "https://github.com/maldoinc/plasma-theme-switcher/";
38     description = "A KDE Plasma theme switcher";
39     license = with licenses; [ gpl2Only ];
40     maintainers = with maintainers; [ kevink ];
41   };