Skip to content

Commit 6bb007e

Browse files
committed
ynetd: init at 2024.02.17
1 parent ca1f226 commit 6bb007e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

pkgs/by-name/yn/ynetd/package.nix

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchurl,
5+
}:
6+
stdenv.mkDerivation (finalAttrs: {
7+
pname = "ynetd";
8+
version = "2024.02.17";
9+
10+
src = fetchurl {
11+
url = "https://yx7.cc/code/ynetd/ynetd-2024.02.17.tar.xz";
12+
hash = "sha256-7gioQ0r0LlUftIWKRwTqeZQl0GtskcRKaEE5z6A0S24=";
13+
};
14+
15+
postPatch = lib.optionalString stdenv.isDarwin ''
16+
substituteInPlace Makefile --replace-fail "-Wl,-z,relro,-z,now" ""
17+
'';
18+
19+
installPhase = ''
20+
runHook preInstall
21+
install -Dm755 ynetd $out/bin/ynetd
22+
runHook postInstall
23+
'';
24+
25+
meta = {
26+
description = "Small server for binding programs to TCP ports";
27+
homepage = "https://yx7.cc/code/";
28+
license = lib.licenses.mit;
29+
platforms = lib.platforms.unix;
30+
maintainers = [ lib.maintainers.haylin ];
31+
mainProgram = "ynetd";
32+
};
33+
})

0 commit comments

Comments
 (0)