nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
502 stars 45 forks source link

blocking issue with hwdata #383

Closed colemickens closed 1 year ago

colemickens commented 1 year ago

I'm confused.

wlroots wants hwdata, can't find it via pkg-config.

so I bump hwdata, and now pciutils can't find pci.ids from the hwdata package.

needs more investigation.

colemickens commented 1 year ago

I don't get it. If I build hwdata, I get:

/nix/store/2x9s14w68zg86q7ha06lblz9npyjabjc-hwdata-0.364

but if I try to build pciutils, I get:

cp: cannot stat '/nix/store/7cbw62w3a6lh1rxxb982j99h42wkrpcd-hwdata-0.364/share/hwdata/pci.ids': No such file or directory

why is it using the wrong output path?

colemickens commented 1 year ago
╭ slynux  ~/code/nixpkgs/hwdata │hwdata* 0s
╰─▶ nix build '.#legacyPackages.x86_64-linux.hwdata'
warning: Git tree '/home/cole/code/nixpkgs/hwdata' is dirty

╭ slynux  ~/code/nixpkgs/hwdata │hwdata* 2.66s
╰─▶ readlink -f result
/nix/store/2x9s14w68zg86q7ha06lblz9npyjabjc-hwdata-0.364

╭ slynux  ~/code/nixpkgs/hwdata │hwdata* 2.74s ✘1
╰─▶ nix eval --raw '.#legacyPackages.x86_64-linux.hwdata.outPath'
warning: Git tree '/home/cole/code/nixpkgs/hwdata' is dirty
/nix/store/7cbw62w3a6lh1rxxb982j99h42wkrpcd-hwdata-0.364

um what?

colemickens commented 1 year ago

I assume this has something to do with hwdata's use of outputHash...

colemickens commented 1 year ago

is this a nix bug?? https://github.com/NixOS/nix/issues/7148

colemickens commented 1 year ago

... I don't think hwdata can be a FOD anymore...

colemickens commented 1 year ago

Looks like this was already fixed in staging, where the FOD was indeed dropped with a version bump.

colemickens commented 1 year ago

https://github.com/NixOS/nixpkgs/pull/197538