Merge pull request #182720 from trofi/drop-kmod-on-darwin

pciutils, ntfs3g: don't pull in `kmod` on darwin

authored by Sandro and committed by GitHub a3ed2ebf ccac7fd6

+5 -3
+1
pkgs/tools/filesystems/ntfs-3g/default.nix
··· 40 40 "--enable-extras" 41 41 "--with-mount-helper=${mount}/bin/mount" 42 42 "--with-umount-helper=${mount}/bin/umount" 43 + ] ++ lib.optionals stdenv.isLinux [ 43 44 "--with-modprobe-helper=${kmod}/bin/modprobe" 44 45 ]; 45 46
+4 -3
pkgs/tools/system/pciutils/default.nix
··· 14 14 }; 15 15 16 16 nativeBuildInputs = [ pkg-config ]; 17 - buildInputs = [ zlib kmod which ] ++ 18 - lib.optional stdenv.hostPlatform.isDarwin IOKit; 17 + buildInputs = [ which zlib ] 18 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ IOKit ] 19 + ++ lib.optionals stdenv.hostPlatform.isLinux [ kmod ]; 19 20 20 - preConfigure = if stdenv.cc.isGNU then null else '' 21 + preConfigure = lib.optionalString (!stdenv.cc.isGNU) '' 21 22 substituteInPlace Makefile --replace 'CC=$(CROSS_COMPILE)gcc' "" 22 23 ''; 23 24