Files
nixpkgs/pkgs/by-name/pi/pilot-link/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

71 lines
1.7 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
popt,
bluezSupport ? stdenv.hostPlatform.isLinux,
bluez,
readlineSupport ? true,
readline,
enableConduits ? true,
bison,
enableLibpng ? true,
libpng,
enableLibusb ? true,
libusb-compat-0_1,
}:
stdenv.mkDerivation {
pname = "pilot-link";
version = "0.13.0-unstable-2022-09-26";
src = fetchFromGitHub {
owner = "desrod";
repo = "pilot-link";
rev = "14338868111ce592c7ca7918a1f8a32ceecb7caf";
hash = "sha256-3b5T/QnRZawnjTgwvQKUbJTE/NiJ93eU2+qbRFuI13I";
};
# Resolve build issues on modern systems.
# https://github.com/desrod/pilot-link/issues/16
# https://aur.archlinux.org/packages/pilot-link-git
patches = [
./configure-checks.patch
./incompatible-pointer-type.patch
]
++ lib.optionals enableConduits [ ./format-string-literals.patch ]
++ lib.optionals enableLibpng [ ./pilot-link-png14.patch ];
nativeBuildInputs = [
autoreconfHook
pkg-config
]
++ lib.optionals enableConduits [ bison ];
buildInputs = [
popt
]
++ lib.optionals bluezSupport [ bluez ]
++ lib.optionals enableLibpng [ libpng ]
++ lib.optionals enableLibusb [ libusb-compat-0_1 ]
++ lib.optionals readlineSupport [ readline ];
configureFlags = [
"--with-libiconv"
]
++ lib.optionals enableConduits [ "--enable-conduits" ]
++ lib.optionals enableLibpng [ "--enable-libpng" ]
++ lib.optionals enableLibusb [ "--enable-libusb" ];
enableParallelBuilding = true;
meta = {
description = "Suite of tools for connecting to PalmOS handheld devices";
homepage = "https://github.com/desrod/pilot-link";
license = lib.licenses.gpl2;
maintainers = with lib.maintainers; [ PapayaJackal ];
};
}