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
70 lines
1.4 KiB
Nix
70 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPackages,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
pkg-config,
|
|
indent,
|
|
perl,
|
|
argp-standalone,
|
|
fmt_9,
|
|
libev,
|
|
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
|
systemd,
|
|
withUsb ? stdenv.hostPlatform.isLinux,
|
|
libusb1,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "knxd";
|
|
version = "0.14.73";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "knxd";
|
|
repo = "knxd";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-rBYvwNJ8rIXGv9Hz0xTn+4cUdptdoddCCv6JvF4f1+M=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '2i echo ${finalAttrs.version}; exit' tools/version.sh
|
|
sed -i '2i exit' tools/get_libfmt
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
indent
|
|
perl
|
|
];
|
|
|
|
buildInputs = [
|
|
fmt_9
|
|
libev
|
|
]
|
|
++ lib.optional withSystemd systemd
|
|
++ lib.optional withUsb libusb1
|
|
++ lib.optional stdenv.hostPlatform.isDarwin argp-standalone;
|
|
|
|
configureFlags = [
|
|
(lib.enableFeature withSystemd "systemd")
|
|
(lib.enableFeature withUsb "usb")
|
|
];
|
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
installFlags = lib.optionals withSystemd [
|
|
"systemdsystemunitdir=$(out)/lib/systemd/system"
|
|
"systemdsysusersdir=$(out)/lib/sysusers.d"
|
|
];
|
|
|
|
meta = {
|
|
description = "Advanced router/gateway for KNX";
|
|
homepage = "https://github.com/knxd/knxd";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ sikmir ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|