lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 17.09-beta 36 lines 1.1 kB view raw
1{ stdenv, fetchurl, pkgconfig, glib }: 2 3stdenv.mkDerivation rec { 4 name = "nbd-3.14"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/nbd/${name}.tar.xz"; 8 sha256 = "0cc6wznvkgjv0fxsj3diy92qfsjrsw92m7yq13f044qarh726gad"; 9 }; 10 11 patches = [ ./dont-run-make-in-broken-systemd-subdir.patch ]; 12 13 buildInputs = 14 [ pkgconfig glib ] 15 ++ stdenv.lib.optional (stdenv ? glibc) stdenv.glibc.linuxHeaders; 16 17 postInstall = '' 18 mkdir -p "$out/share/doc/${name}" 19 cp README.md "$out/share/doc/${name}/" 20 ''; 21 22 doCheck = true; 23 24 # Glib calls `clock_gettime', which is in librt. Linking that library 25 # here ensures that a proper rpath is added to the executable so that 26 # it can be loaded at run-time. 27 NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isLinux "-lrt -lpthread"; 28 29 meta = { 30 homepage = http://nbd.sourceforge.net; 31 description = "Map arbitrary files as block devices over the network"; 32 license = stdenv.lib.licenses.gpl2; 33 maintainers = [ stdenv.lib.maintainers.peti ]; 34 platforms = stdenv.lib.platforms.linux; 35 }; 36}