nixpkgs/pkgs/by-name/of/ofono/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

68 lines
1.4 KiB
Nix

{ lib, stdenv
, fetchzip
, autoreconfHook
, pkg-config
, glib
, dbus
, ell
, systemd
, bluez
, mobile-broadband-provider-info
}:
stdenv.mkDerivation rec {
pname = "ofono";
version = "2.3";
outputs = [ "out" "dev" ];
src = fetchzip {
url = "https://git.kernel.org/pub/scm/network/ofono/ofono.git/snapshot/ofono-${version}.tar.gz";
sha256 = "sha256-rX3ngXoW7YISyytpRPLX/lGmQa5LPtFxeA2XdtU1gV0=";
};
patches = [
./0001-Search-connectors-in-OFONO_PLUGIN_PATH.patch
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
glib
dbus
ell
systemd
bluez
mobile-broadband-provider-info
];
configureFlags = [
"--with-dbusconfdir=${placeholder "out"}/share"
"--with-systemdunitdir=${placeholder "out"}/lib/systemd/system"
"--enable-external-ell"
"--sysconfdir=/etc"
];
installFlags = [
"sysconfdir=${placeholder "out"}/etc"
];
enableParallelBuilding = true;
enableParallelChecking = false;
doCheck = true;
meta = with lib; {
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=${version}";
license = licenses.gpl2Only;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "ofonod";
};
}