1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6 libtirpc,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "libnsl";
12 version = "2.0.1";
13
14 src = fetchFromGitHub {
15 owner = "thkukuk";
16 repo = "libnsl";
17 rev = "v${version}";
18 sha256 = "sha256-bCToqXVE4RZcoZ2eTNZcVHyzKlWyIpSAssQCOZcfmEA=";
19 };
20
21 outputs = [
22 "out"
23 "dev"
24 ];
25
26 nativeBuildInputs = [
27 autoreconfHook
28 pkg-config
29 ];
30 buildInputs = [ libtirpc ];
31
32 meta = with lib; {
33 description = "Client interface library for NIS(YP) and NIS+";
34 homepage = "https://github.com/thkukuk/libnsl";
35 license = licenses.lgpl21;
36 maintainers = [ maintainers.dezgeg ];
37 platforms = platforms.linux;
38 };
39}