lol

Merge pull request #271718 from NickCao/nbd

nbd: add missing libnl dependency

authored by

Nick Cao and committed by
GitHub
9a024f4b 80868039

+28 -8
+28 -8
pkgs/tools/networking/nbd/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, glib, which, bison, nixosTests, linuxHeaders, gnutls }: 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , pkg-config 5 + , glib 6 + , which 7 + , bison 8 + , nixosTests 9 + , libnl 10 + , linuxHeaders 11 + , gnutls 12 + }: 2 13 3 14 stdenv.mkDerivation rec { 4 15 pname = "nbd"; ··· 9 20 hash = "sha256-9cj9D8tXsckmWU0OV/NWQy7ghni+8dQNCI8IMPDL3Qo="; 10 21 }; 11 22 12 - buildInputs = [ glib gnutls ] 13 - ++ lib.optionals stdenv.isLinux [ linuxHeaders ]; 23 + nativeBuildInputs = [ 24 + pkg-config 25 + which 26 + bison 27 + ]; 14 28 15 - nativeBuildInputs = [ pkg-config which bison ]; 29 + buildInputs = [ 30 + glib 31 + gnutls 32 + ] ++ lib.optionals stdenv.isLinux [ 33 + libnl 34 + linuxHeaders 35 + ]; 16 36 17 - postInstall = '' 18 - mkdir -p "$out/share/doc/nbd-${version}" 19 - cp README.md "$out/share/doc/nbd-${version}/" 20 - ''; 37 + configureFlags = [ 38 + "--sysconfdir=/etc" 39 + ]; 21 40 22 41 doCheck = !stdenv.isDarwin; 23 42 ··· 30 49 description = "Map arbitrary files as block devices over the network"; 31 50 license = lib.licenses.gpl2; 32 51 platforms = lib.platforms.unix; 52 + maintainers = with lib.maintainers; [ nickcao ]; 33 53 }; 34 54 }