nixpkgs/pkgs/by-name/co/connman-gtk/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

45 lines
960 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, automake, intltool, pkg-config,
gtk3, connman, openconnect, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "connman-gtk";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jgke";
repo = "connman-gtk";
rev = "v${version}";
sha256 = "09k0hx5hxpbykvslv12l2fq9pxdwpd311mxj038hbqzjghcyidyr";
};
nativeBuildInputs = [
autoconf
automake
intltool
pkg-config
wrapGAppsHook
];
buildInputs = [
gtk3
openconnect
connman
];
preConfigure = ''
# m4/intltool.m4 is an invalid symbolic link
rm m4/intltool.m4
ln -s ${intltool}/share/aclocal/intltool.m4 m4/
./autogen.sh
'';
meta = with lib; {
description = "GTK GUI for Connman";
mainProgram = "connman-gtk";
homepage = "https://github.com/jgke/connman-gtk";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}