nixpkgs/pkgs/by-name/co/connman-notify/package.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

38 lines
998 B
Nix

{ lib, fetchFromGitLab, python3Packages, glib, gobject-introspection, wrapGAppsHook }:
python3Packages.buildPythonApplication {
pname = "connman-notify";
version = "2019-10-05";
src = fetchFromGitLab {
owner = "wavexx";
repo = "connman-notify";
rev = "24b10a51721b54d932f4cd61ef2756423768c015";
sha256 = "1k5b5y6114yna2cm0cq82xilicran63hrhlklgv7k3p89057xh8j";
};
format = "other";
nativeBuildInputs = [ gobject-introspection wrapGAppsHook ];
buildInputs = [ glib ];
pythonPath = with python3Packages; [ dbus-python pygobject3 ];
strictDeps = false;
installPhase = ''
install -D -t $out/bin connman-notify
install -D -t $out/share/doc README.rst
'';
meta = with lib; {
description = "Desktop notification integration for connman";
mainProgram = "connman-notify";
homepage = "https://gitlab.com/wavexx/connman-notify";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}