mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
knxd: init at 0.14.59
This commit is contained in:
parent
14cc255189
commit
f5a0d549d3
54
pkgs/servers/knxd/default.nix
Normal file
54
pkgs/servers/knxd/default.nix
Normal file
@ -0,0 +1,54 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, indent
|
||||
, perl
|
||||
, argp-standalone
|
||||
, fmt_9
|
||||
, libev
|
||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
||||
, withUsb ? stdenv.isLinux, libusb1
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "knxd";
|
||||
version = "0.14.59";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "knxd";
|
||||
repo = "knxd";
|
||||
rev = version;
|
||||
hash = "sha256-m3119aD23XTViQJ2s7hwnJZ1ct4bcEFWuyUQajmqySQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '2i echo ${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.isDarwin argp-standalone;
|
||||
|
||||
configureFlags = lib.optional (!withSystemd) "--disable-systemd"
|
||||
++ lib.optional (!withUsb) "--disable-usb";
|
||||
|
||||
installFlags = lib.optionals withSystemd [
|
||||
"systemdsystemunitdir=$(out)/lib/systemd/system"
|
||||
"systemdsysusersdir=$(out)/lib/sysusers.d"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Advanced router/gateway for KNX";
|
||||
homepage = "https://github.com/knxd/knxd";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ sikmir ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
@ -5553,6 +5553,8 @@ with pkgs;
|
||||
|
||||
klog = qt5.callPackage ../applications/radio/klog { };
|
||||
|
||||
knxd = callPackage ../servers/knxd { };
|
||||
|
||||
komga = callPackage ../servers/komga { };
|
||||
|
||||
komorebi = callPackage ../applications/graphics/komorebi { };
|
||||
|
Loading…
Reference in New Issue
Block a user