ynetd: init at 2024.02.17 (#390772)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "ynetd";
|
||||
version = "2024.02.17";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://yx7.cc/code/ynetd/ynetd-2024.02.17.tar.xz";
|
||||
hash = "sha256-7gioQ0r0LlUftIWKRwTqeZQl0GtskcRKaEE5z6A0S24=";
|
||||
};
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace Makefile --replace-fail "-Wl,-z,relro,-z,now" ""
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
install -Dm755 ynetd $out/bin/ynetd
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Small server for binding programs to TCP ports";
|
||||
homepage = "https://yx7.cc/code/";
|
||||
license = lib.licenses.mit;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = [ lib.maintainers.haylin ];
|
||||
mainProgram = "ynetd";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user