mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 22:07:50 +00:00
hwinfo: split lib from bin output
bin currently depends on perl, which is a big dependency for `nixos-facter`
This commit is contained in:
parent
3b6172a234
commit
58e0732fb3
@ -69,6 +69,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
patchShebangs src/ids/convert_hd
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
"bin"
|
||||
"dev"
|
||||
"lib"
|
||||
"out"
|
||||
];
|
||||
|
||||
# The pci/usb ids in hwinfo are ancient. We can get a more up-to-date list simply by copying from systemd
|
||||
preBuild = ''
|
||||
# since we don't have .git, we cannot run this.
|
||||
@ -94,6 +101,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
||||
enableParallelBuilding = false; # broken parallel dependencies
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput bin "$bin"
|
||||
moveToOutput lib "$lib"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests = {
|
||||
version = testers.testVersion { package = finalAttrs.finalPackage; };
|
||||
|
Loading…
Reference in New Issue
Block a user