-
Notifications
You must be signed in to change notification settings - Fork 2
/
vmmanager.nix
54 lines (47 loc) · 935 Bytes
/
vmmanager.nix
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,
makeWrapper,
qmake,
qtbase,
qtdeclarative,
qtquickcontrols2,
qtgraphicaleffects,
vmd-client,
wrapQtAppsHook,
qtwayland
}:
stdenv.mkDerivation rec {
name = "vmmanager";
depsBuildBuild = [
makeWrapper
qmake
qtdeclarative
qtquickcontrols2
qtgraphicaleffects
wrapQtAppsHook
];
depsBuildHost = [
qtbase
qtdeclarative
qtquickcontrols2
qtgraphicaleffects
qtwayland
vmd-client
];
# TODO: It is now possible to get path to vmd-client binary from
# "${vmd-client}/bin/vmd-client", and it could be passed to the actual
# program using command line with makeWrapper, example seen below.
qtWrapperArgs = [
"--add-flags"
"--vmd-client-dir"
"--add-flags"
"${vmd-client}/bin"
];
src = ./.;
installPhase = ''
runHook preInstall
mkdir -p $out/bin
mv -t $out/bin vmmanager
runHook postInstall
'';
}