Files
nixpkgs/pkgs/by-name/of/ofono/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

83 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchzip,
testers,
autoreconfHook,
pkg-config,
glib,
dbus,
ell,
systemd,
bluez,
mobile-broadband-provider-info,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ofono";
version = "2.17";
outputs = [
"out"
"dev"
];
src = fetchzip {
url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/snapshot/ofono-${finalAttrs.version}.tar.gz";
hash = "sha256-VJhLJeC1pwXuAadKvYPel6Xb3RZG4vwDhhKefRVrt3Y=";
};
patches = [ ./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch ];
postPatch = ''
patchShebangs tools/provisiontool
'';
strictDeps = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
python3
];
buildInputs = [
glib
dbus
ell
systemd
bluez
mobile-broadband-provider-info
];
configureFlags = [
(lib.strings.withFeatureAs true "dbusconfdir" "${placeholder "out"}/share")
(lib.strings.withFeatureAs true "systemdunitdir" "${placeholder "out"}/lib/systemd/system")
(lib.strings.enableFeature true "external-ell")
"--sysconfdir=/etc"
];
installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
enableParallelBuilding = true;
enableParallelChecking = false;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "Infrastructure for building mobile telephony (GSM/UMTS) applications";
homepage = "https://git.kernel.org/pub/scm/network/ofono/ofono.git";
changelog = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/plain/ChangeLog?h=${finalAttrs.version}";
license = lib.licenses.gpl2Only;
maintainers = [ ];
platforms = lib.platforms.linux;
mainProgram = "ofonod";
pkgConfigModules = [
"ofono"
];
};
})