nbd: fix build on darwin

+5 -4
+5 -4
pkgs/tools/networking/nbd/default.nix
··· 9 sha256 = "sha256-aHcVbSOnsz917uidL1wskcVCr8PNy2Nt6lqIU5pY0Qw="; 10 }; 11 12 - buildInputs = [ glib linuxHeaders gnutls ]; 13 14 nativeBuildInputs = [ pkg-config which bison ]; 15 ··· 18 cp README.md "$out/share/doc/nbd-${version}/" 19 ''; 20 21 - doCheck = true; 22 23 passthru.tests = { 24 test = nixosTests.nbd; ··· 30 NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lrt -lpthread"; 31 32 meta = { 33 - homepage = "http://nbd.sourceforge.net"; 34 description = "Map arbitrary files as block devices over the network"; 35 license = lib.licenses.gpl2; 36 - platforms = lib.platforms.linux; 37 }; 38 }
··· 9 sha256 = "sha256-aHcVbSOnsz917uidL1wskcVCr8PNy2Nt6lqIU5pY0Qw="; 10 }; 11 12 + buildInputs = [ glib gnutls ] 13 + ++ lib.optionals stdenv.isLinux [ linuxHeaders ]; 14 15 nativeBuildInputs = [ pkg-config which bison ]; 16 ··· 19 cp README.md "$out/share/doc/nbd-${version}/" 20 ''; 21 22 + doCheck = !stdenv.isDarwin; 23 24 passthru.tests = { 25 test = nixosTests.nbd; ··· 31 NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lrt -lpthread"; 32 33 meta = { 34 + homepage = "https://nbd.sourceforge.io/"; 35 description = "Map arbitrary files as block devices over the network"; 36 license = lib.licenses.gpl2; 37 + platforms = lib.platforms.unix; 38 }; 39 }