nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 mkDerivation,
4 fetchFromGitHub,
5 cmake,
6 extra-cmake-modules,
7 kactivities,
8 qtbase,
9}:
10
11mkDerivation rec {
12 pname = "KSmoothDock";
13 version = "6.3";
14
15 src = fetchFromGitHub {
16 owner = "dangvd";
17 repo = "ksmoothdock";
18 rev = "v${version}";
19 sha256 = "sha256-hO7xgjFMFrEhQs3oc2peFTjSVEDsl7Ma/TeVybEZMEk=";
20 };
21
22 # Upstream seems dead and there are new deprecation warnings in KF5.100
23 # Remember, kids: friends don't let friends build with -Werror
24 postPatch = ''
25 substituteInPlace src/CMakeLists.txt --replace "-Werror" ""
26 '';
27
28 nativeBuildInputs = [
29 cmake
30 extra-cmake-modules
31 ];
32
33 buildInputs = [
34 kactivities
35 qtbase
36 ];
37
38 cmakeDir = "../src";
39
40 meta = with lib; {
41 description = "Cool desktop panel for KDE Plasma 5";
42 mainProgram = "ksmoothdock";
43 license = licenses.mit;
44 homepage = "https://dangvd.github.io/ksmoothdock/";
45 maintainers = with maintainers; [ shamilton ];
46 platforms = platforms.linux;
47 };
48}