From 48ea9be97ef4130484a92111181f778bed238c02 Mon Sep 17 00:00:00 2001 From: Oleksandr Usov Date: Sat, 22 Aug 2026 15:44:18 +0100 Subject: [PATCH] udp514-journal: init at 0.3.0 (cherry picked from commit d347bbc0d24b6d12583edd189413e1641bf54d05) --- pkgs/by-name/ud/udp514-journal/package.nix | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/ud/udp514-journal/package.nix diff --git a/pkgs/by-name/ud/udp514-journal/package.nix b/pkgs/by-name/ud/udp514-journal/package.nix new file mode 100644 index 000000000000..dde930b7e5ea --- /dev/null +++ b/pkgs/by-name/ud/udp514-journal/package.nix @@ -0,0 +1,49 @@ +{ + stdenv, + lib, + fetchFromGitHub, + systemdLibs, + pkg-config, + discount +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "udp514-journal"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "eworm-de"; + repo = "udp514-journal"; + tag = finalAttrs.version; + hash = "sha256-ufxxeW2G6C/DEzVgVVrQjUsI4tDvaqi5VrXZIr2Eh7Y="; + }; + + buildInputs = [ + systemdLibs + ]; + nativeBuildInputs = [ + pkg-config + discount + ]; + + # brute-force patching - remove /usr/ from install paths + postPatch = '' + substituteInPlace Makefile --replace-fail "$(DESTDIR)/usr/" "$(DESTDIR)/" + ''; + + makeFlags = [ "DESTDIR=$(out)" ]; + installTargets = [ + "install-bin" + "install-doc" + ]; + + strictDeps = true; + __structuredAttrs = true; + + meta = with lib; { + description = "Forward syslog from network (udp/514) to journal"; + homepage = "https://github.com/eworm-de/udp514-journal"; + license = with licenses; [ gpl3Plus ]; + maintainers = with maintainers; [ usovalx ]; + }; +})