Files
nixpkgs/pkgs/by-name/ga/gammu/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

78 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
replaceVars,
pkg-config,
cmake,
bluez,
libusb1,
curl,
libiconv,
gettext,
sqlite,
bash,
dialog,
dbiSupport ? false,
libdbi ? null,
libdbiDrivers ? null,
postgresSupport ? false,
libpq ? null,
}:
stdenv.mkDerivation rec {
pname = "gammu";
version = "1.42.0";
src = fetchFromGitHub {
owner = "gammu";
repo = "gammu";
rev = version;
sha256 = "sha256-aeaGHVxOMiXRU6RHws+oAnzdO9RY1jw/X/xuGfSt76I=";
};
patches = [
./bashcomp-dir.patch
./systemd.patch
(replaceVars ./gammu-config-dialog.patch {
dialog = "${dialog}/bin/dialog";
})
];
nativeBuildInputs = [
pkg-config
cmake
];
cmakeFlags = [
"-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
# Fix build with CMake 4
(lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10")
];
strictDeps = true;
buildInputs = [
bash
bluez
libusb1
curl
gettext
sqlite
libiconv
]
++ lib.optionals dbiSupport [
libdbi
libdbiDrivers
]
++ lib.optionals postgresSupport [ libpq ];
meta = with lib; {
homepage = "https://wammu.eu/gammu/";
description = "Command line utility and library to control mobile phones";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = [ maintainers.coroa ];
};
}