nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 cmake,
5 extra-cmake-modules,
6 fetchFromGitHub,
7 qtbase,
8 kdeFrameworks,
9}:
10
11stdenv.mkDerivation rec {
12 pname = "plasma-theme-switcher";
13 version = "0.1";
14 dontWrapQtApps = true;
15
16 src = fetchFromGitHub {
17 owner = "maldoinc";
18 repo = "plasma-theme-switcher";
19 rev = "v${version}";
20 sha256 = "sdcJ6K5QmglJEDIEl4sd8x7DuCPCqMHRxdYbcToM46Q=";
21 };
22
23 buildInputs = [
24 qtbase
25 kdeFrameworks.plasma-framework
26 ];
27
28 nativeBuildInputs = [
29 cmake
30 extra-cmake-modules
31 ];
32
33 installPhase = ''
34 runHook preInstall
35
36 mkdir -p $out/bin
37 cp plasma-theme $out/bin
38
39 runHook postInstall
40 '';
41
42 meta = with lib; {
43 homepage = "https://github.com/maldoinc/plasma-theme-switcher/";
44 description = "KDE Plasma theme switcher";
45 license = with licenses; [ gpl2Only ];
46 maintainers = with maintainers; [ kevink ];
47 mainProgram = "plasma-theme";
48 };
49}