tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
siglo: init at 0.9.9
Tom Fitzhenry
3 years ago
f7f2e41d
f07e1733
+85
3 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
siglo
default.nix
siglo-no-user-install.patch
top-level
all-packages.nix
+70
pkgs/applications/misc/siglo/default.nix
···
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, glib
5
5
+
, meson
6
6
+
, ninja
7
7
+
, wrapGAppsHook
8
8
+
, desktop-file-utils
9
9
+
, gobject-introspection
10
10
+
, gtk3
11
11
+
, python3
12
12
+
}:
13
13
+
14
14
+
stdenv.mkDerivation rec {
15
15
+
pname = "siglo";
16
16
+
version = "0.9.9";
17
17
+
18
18
+
src = fetchFromGitHub {
19
19
+
owner = "theironrobin";
20
20
+
repo = "siglo";
21
21
+
rev = "v${version}";
22
22
+
hash = "sha256-4jKsRpzuyHH31LXndC3Ua4TYcI0G0v9qqe0cbvLuCDA=";
23
23
+
};
24
24
+
25
25
+
patches = [
26
26
+
./siglo-no-user-install.patch
27
27
+
];
28
28
+
29
29
+
postPatch = ''
30
30
+
chmod +x build-aux/meson/postinstall.py # patchShebangs requires an executable file
31
31
+
patchShebangs build-aux/meson/postinstall.py
32
32
+
'';
33
33
+
34
34
+
nativeBuildInputs = [
35
35
+
glib
36
36
+
meson
37
37
+
ninja
38
38
+
wrapGAppsHook
39
39
+
python3.pkgs.wrapPython
40
40
+
python3
41
41
+
desktop-file-utils
42
42
+
gtk3
43
43
+
];
44
44
+
45
45
+
buildInputs = [
46
46
+
gtk3
47
47
+
python3.pkgs.gatt
48
48
+
gobject-introspection
49
49
+
];
50
50
+
51
51
+
pythonPath = with python3.pkgs; [
52
52
+
gatt
53
53
+
pybluez
54
54
+
requests
55
55
+
];
56
56
+
57
57
+
preFixup = ''
58
58
+
buildPythonPath "$out $pythonPath"
59
59
+
gappsWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
60
60
+
'';
61
61
+
62
62
+
meta = with lib; {
63
63
+
description = "GTK app to sync InfiniTime watch with PinePhone";
64
64
+
homepage = "https://github.com/theironrobin/siglo";
65
65
+
changelog = "https://github.com/theironrobin/siglo/tags/v${version}";
66
66
+
license = licenses.mpl20;
67
67
+
maintainers = with maintainers; [ tomfitzhenry ];
68
68
+
platforms = platforms.linux;
69
69
+
};
70
70
+
}
+13
pkgs/applications/misc/siglo/siglo-no-user-install.patch
···
1
1
+
diff --git a/data/meson.build b/data/meson.build
2
2
+
index 62a00fe..5319974 100644
3
3
+
--- a/data/meson.build
4
4
+
+++ b/data/meson.build
5
5
+
@@ -18,8 +18,6 @@ install_data(join_paths('icons', 'com.github.alexr4535.siglo.svg'),
6
6
+
install_dir: join_paths(get_option('datadir'), 'icons')
7
7
+
)
8
8
+
9
9
+
-install_data('siglo.service', install_dir: '/etc/systemd/user/')
10
10
+
-
11
11
+
appstream_file = i18n.merge_file(
12
12
+
input: 'com.github.alexr4535.siglo.appdata.xml.in',
13
13
+
output: 'com.github.alexr4535.siglo.appdata.xml',
+2
pkgs/top-level/all-packages.nix
···
4429
4429
4430
4430
shisho = callPackage ../tools/security/shisho { };
4431
4431
4432
4432
+
siglo = callPackage ../applications/misc/siglo { };
4433
4433
+
4432
4434
simg2img = callPackage ../tools/filesystems/simg2img { };
4433
4435
4434
4436
snazy = callPackage ../development/tools/snazy { };