blob: f7f4262a8c8f5c14bb16df6865c0682b9ac4139f (
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
|
{
fetchFromGitHub,
gobject-introspection,
gtk3,
lib,
libappindicator-gtk3,
python3,
stdenv,
wrapGAppsHook3,
}:
stdenv.mkDerivation {
pname = "xfconnect-indicator";
version = "0+master";
src = fetchFromGitHub {
repo = "xfconnect-indicator";
owner = "juanramoncastan";
rev = "3e7a372042d00cba39684809f846a1c4317980b7";
hash = "sha256-kLZQ1LTlxgtCbghpRjnCMjegUAJ2mn9NJ3toERKVSZM=";
};
buildInputs = [
gobject-introspection
gtk3
libappindicator-gtk3
(python3.withPackages (py: [py.dbus-python py.pygobject3]))
];
nativeBuildInputs = [
wrapGAppsHook3
];
buildPhase = ''
mkdir -p $out/bin
cp -r source/share $out
cp source/bin/xfconnect-indicator.py $out/bin/xfconnect-indicator
chmod +x $out/bin/xfconnect-indicator
'';
meta = {
license = lib.licenses.gpl3;
mainProgram = "xfconnect-indicator";
};
}
|