blob: 56154daf4c3dfc5daf8f87fb6f3866d7b0997dd3 (
plain)
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
|
{
stdenvNoCC,
clapper-unwrapped,
wrapGAppsHook4,
gobject-introspection,
lndir,
clapper-enhancers,
}:
stdenvNoCC.mkDerivation {
pname = "clapper";
inherit (clapper-unwrapped) version meta;
src = clapper-unwrapped;
dontConfigure = true;
dontBuild = true;
nativeBuildInputs = [
wrapGAppsHook4
gobject-introspection
lndir
];
buildInputs = [ clapper-unwrapped ] ++ clapper-unwrapped.buildInputs;
installPhase = ''
runHook preInstall
mkdir -p $out
lndir $src $out
dbusfile=share/dbus-1/services/com.github.rafostar.Clapper.service
rm $out/$dbusfile
cp $src/$dbusfile $out/$dbusfile
substituteInPlace $out/$dbusfile \
--replace-fail $src/bin/clapper $out/bin/clapper
runHook postInstall
'';
preFixup = ''
gappsWrapperArgs+=(
--set-default CLAPPER_ENHANCERS_PATH "${clapper-enhancers}/${clapper-enhancers.passthru.pluginPath}"
)
'';
}
|