about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libnsl/default.nix
blob: 9e8a46b2e6b313843c674f1f5c6c4610556d8db0 (plain) (blame)
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
{ stdenv, fetchFromGitHub, autoreconfHook, libtirpc, pkgconfig }:

stdenv.mkDerivation rec {
  name = "libnsl-${version}";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "thkukuk";
    repo = "libnsl";
    rev = "libnsl-${version}";
    sha256 = "0h8br0gmgw3fp5fmy6bfbj1qlk9hry1ssg25ssjgxbd8spczpscs";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ libtirpc ];

  patches = stdenv.lib.optionals stdenv.hostPlatform.isMusl [ ./cdefs.patch ./nis_h.patch ];

  meta = with stdenv.lib; {
    description = "Client interface library for NIS(YP) and NIS+";
    homepage = https://github.com/thkukuk/libnsl;
    license = licenses.lgpl21;
    maintainers = [ maintainers.dezgeg ];
    platforms = platforms.linux;
  };
}