blob: 21a11f8fa31a10219d7c2ac32c061c187f8221c9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ stdenv
, lib
, fetchFromGitHub
, qmake
, wrapQtAppsHook
, libX11
, libXmu
, libXpm
, qtbase
, qtx11extras
}:
stdenv.mkDerivation (finalAttrs: {
pname = "kdocker";
version = "5.4";
src = fetchFromGitHub {
owner = "user-none";
repo = "KDocker";
rev = "${finalAttrs.version}";
hash = "sha256-CTz2M9nv5Rf1amnSpLiIUZLH9Q3te6ZyFNUzSGHdYJc=";
};
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [
libX11
libXmu
libXpm
qtbase
qtx11extras
];
prePatch = ''
for h in Xatom Xlib Xmu; do
sed -i "s|#include <$h|#include <X11/$h|" src/xlibutil.h src/{kdocker,scanner,trayitem,trayitemmanager}.cpp
done
for t in target icons desktop appdata; do
sed -i "s|$t.path = /usr|$t.path = $out|" kdocker.pro
done
sed -i "s|/etc/bash_completion.d|$out/share/bash-completion/completions|" kdocker.pro
'';
meta = with lib; {
description = "Dock any application into the system tray";
homepage = "https://github.com/user-none/KDocker";
license = licenses.gpl2Only;
maintainers = with maintainers; [ hexclover ];
platforms = platforms.linux;
};
})
|