tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nbd: fix build on darwin
Mario Rodas
3 years ago
8cd54993
c23e9c6a
+5
-4
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
nbd
default.nix
+5
-4
pkgs/tools/networking/nbd/default.nix
···
9
9
sha256 = "sha256-aHcVbSOnsz917uidL1wskcVCr8PNy2Nt6lqIU5pY0Qw=";
10
10
};
11
11
12
12
-
buildInputs = [ glib linuxHeaders gnutls ];
12
12
+
buildInputs = [ glib gnutls ]
13
13
+
++ lib.optionals stdenv.isLinux [ linuxHeaders ];
13
14
14
15
nativeBuildInputs = [ pkg-config which bison ];
15
16
···
18
19
cp README.md "$out/share/doc/nbd-${version}/"
19
20
'';
20
21
21
21
-
doCheck = true;
22
22
+
doCheck = !stdenv.isDarwin;
22
23
23
24
passthru.tests = {
24
25
test = nixosTests.nbd;
···
30
31
NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lrt -lpthread";
31
32
32
33
meta = {
33
33
-
homepage = "http://nbd.sourceforge.net";
34
34
+
homepage = "https://nbd.sourceforge.io/";
34
35
description = "Map arbitrary files as block devices over the network";
35
36
license = lib.licenses.gpl2;
36
36
-
platforms = lib.platforms.linux;
37
37
+
platforms = lib.platforms.unix;
37
38
};
38
39
}