-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
lsb_release useless on NixOS #22729
Copy link
Copy link
Closed
Labels
6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: community feedbackThis needs feedback from more community members.This needs feedback from more community members.
Metadata
Metadata
Assignees
Labels
6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOSIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: community feedbackThis needs feedback from more community members.This needs feedback from more community members.
Fields
Give feedbackNo fields configured for issues without a type.
We have the
lsb-releasepackage in nixpkgs, but if you run it on NixOS, you get:It seems like we need a file in
/etc/lsb_releasefor the tool to find. My inclination would be to make a NixOS module that just injects sensible values into that file and to include it unconditionally. Am I missing anything obvious there?Edit: or we could patch it somehow to just read
/etc/os-release, which seems like a better path forward, but less standard.