summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/yp/ypbind-mt/package.nix
blob: 1ef8a0f2d24c9ea978da11537e78e4019347b331 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  stdenv,
  lib,
  fetchurl,
  autoreconfHook,
  libnsl,
  libtirpc,
  libxcrypt,
  pkg-config,
  rpcbind,
  systemdLibs,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "ypbind-mt";
  version = "2.7.2";

  src = fetchurl {
    url = "https://github.com/thkukuk/ypbind-mt/releases/download/v${finalAttrs.version}/ypbind-mt-${finalAttrs.version}.tar.xz";
    hash = "sha256-Bk8vGFZzxUk9+D9kALeZ86NZ3lYRi2ujfEMnER8vzYs=";
  };

  nativeBuildInputs = [
    autoreconfHook
    pkg-config
  ];

  buildInputs = [
    libnsl
    libtirpc
    libxcrypt
    rpcbind
    systemdLibs
  ];

  meta = {
    description = "Multithreaded daemon maintaining the NIS binding information";
    homepage = "https://github.com/thkukuk/ypbind-mt";
    changelog = "https://github.com/thkukuk/ypbind-mt/blob/master/NEWS";
    license = lib.licenses.gpl2Plus;
    mainProgram = "ypbind";
    maintainers = with lib.maintainers; [ BarrOff ];
    platforms = lib.platforms.linux;
  };
})