nixpkgs/pkgs/applications/misc/siglo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

72 lines
1.4 KiB
Nix
Raw Permalink Normal View History

2022-07-20 14:00:00 +00:00
{ stdenv
, lib
, fetchFromGitHub
, glib
, meson
, ninja
, wrapGAppsHook3
2022-07-20 14:00:00 +00:00
, 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
wrapGAppsHook3
2022-07-20 14:00:00 +00:00
python3.pkgs.wrapPython
python3
desktop-file-utils
gtk3
gobject-introspection
2022-07-20 14:00:00 +00:00
];
buildInputs = [
gtk3
python3.pkgs.gatt
];
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";
mainProgram = "siglo";
2022-07-20 14:00:00 +00:00
homepage = "https://github.com/theironrobin/siglo";
changelog = "https://github.com/theironrobin/siglo/tags/v${version}";
license = licenses.mpl20;
maintainers = with maintainers; [ ];
2022-07-20 14:00:00 +00:00
platforms = platforms.linux;
};
}