siglo: init at 0.9.9

This commit is contained in:
Tom Fitzhenry 2022-07-21 00:00:00 +10:00
parent f07e1733af
commit f7f2e41dd1
3 changed files with 85 additions and 0 deletions

View file

@ -0,0 +1,70 @@
{ stdenv
, lib
, fetchFromGitHub
, glib
, meson
, ninja
, wrapGAppsHook
, desktop-file-utils
, gobject-introspection
, gtk3
, python3
}:
stdenv.mkDerivation rec {
pname = "siglo";
version = "0.9.9";
src = fetchFromGitHub {
owner = "theironrobin";
repo = "siglo";
rev = "v${version}";
hash = "sha256-4jKsRpzuyHH31LXndC3Ua4TYcI0G0v9qqe0cbvLuCDA=";
};
patches = [
./siglo-no-user-install.patch
];
postPatch = ''
chmod +x build-aux/meson/postinstall.py # patchShebangs requires an executable file
patchShebangs build-aux/meson/postinstall.py
'';
nativeBuildInputs = [
glib
meson
ninja
wrapGAppsHook
python3.pkgs.wrapPython
python3
desktop-file-utils
gtk3
];
buildInputs = [
gtk3
python3.pkgs.gatt
gobject-introspection
];
pythonPath = with python3.pkgs; [
gatt
pybluez
requests
];
preFixup = ''
buildPythonPath "$out $pythonPath"
gappsWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
'';
meta = with lib; {
description = "GTK app to sync InfiniTime watch with PinePhone";
homepage = "https://github.com/theironrobin/siglo";
changelog = "https://github.com/theironrobin/siglo/tags/v${version}";
license = licenses.mpl20;
maintainers = with maintainers; [ tomfitzhenry ];
platforms = platforms.linux;
};
}

View file

@ -0,0 +1,13 @@
diff --git a/data/meson.build b/data/meson.build
index 62a00fe..5319974 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -18,8 +18,6 @@ install_data(join_paths('icons', 'com.github.alexr4535.siglo.svg'),
install_dir: join_paths(get_option('datadir'), 'icons')
)
-install_data('siglo.service', install_dir: '/etc/systemd/user/')
-
appstream_file = i18n.merge_file(
input: 'com.github.alexr4535.siglo.appdata.xml.in',
output: 'com.github.alexr4535.siglo.appdata.xml',

View file

@ -4429,6 +4429,8 @@ with pkgs;
shisho = callPackage ../tools/security/shisho { };
siglo = callPackage ../applications/misc/siglo { };
simg2img = callPackage ../tools/filesystems/simg2img { };
snazy = callPackage ../development/tools/snazy { };