571c71e6f7
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.
43 lines
1.1 KiB
Nix
43 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, substituteAll, pkg-config, cmake, bluez, libusb1, curl
|
|
, libiconv, gettext, sqlite, bash, dialog
|
|
, dbiSupport ? false, libdbi ? null, libdbiDrivers ? null
|
|
, postgresSupport ? false, postgresql ? 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
|
|
(substituteAll {
|
|
src = ./gammu-config-dialog.patch;
|
|
dialog = "${dialog}/bin/dialog";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
|
|
|
strictDeps = true;
|
|
|
|
buildInputs = [ bash bluez libusb1 curl gettext sqlite libiconv ]
|
|
++ lib.optionals dbiSupport [ libdbi libdbiDrivers ]
|
|
++ lib.optionals postgresSupport [ postgresql ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://wammu.eu/gammu/";
|
|
description = "Command line utility and library to control mobile phones";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.coroa ];
|
|
};
|
|
}
|