Skip to content

lsb_release useless on NixOS #22729

@copumpkin

Description

@copumpkin

We have the lsb-release package in nixpkgs, but if you run it on NixOS, you get:

LSB Version:	n/a
Distributor ID:	n/a
Description:	(none)
Release:	n/a
Codename:	n/a

It seems like we need a file in /etc/lsb_release for 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.

Metadata

Metadata

Assignees

Labels

6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS9.needs: community feedbackThis needs feedback from more community members.
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions