1{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
2
3stdenv.mkDerivation rec {
4 pname = "libnfs";
5 version = "5.0.2";
6
7 src = fetchFromGitHub {
8 owner = "sahlberg";
9 repo = "libnfs";
10 rev = "libnfs-${version}";
11 sha256 = "sha256-rdxi5bPXHTICZQIj/CmHgZ/V70svnITJj/OSF4mmC3o=";
12 };
13
14 nativeBuildInputs = [ autoreconfHook ];
15
16 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=tautological-compare";
17
18 enableParallelBuilding = true;
19
20 meta = with lib; {
21 description = "NFS client library";
22 homepage = "https://github.com/sahlberg/libnfs";
23 license = with licenses; [ lgpl2 bsd2 gpl3 ];
24 maintainers = with maintainers; [ peterhoeg ];
25 platforms = platforms.unix;
26 };
27}