-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lsb-release: init at 1.4 #14901
lsb-release: init at 1.4 #14901
Conversation
FWIW I was attracted by a thought " |
Hm, nixpkgs users might want this, regardless of nixos. |
Fair enough. |
We do have
But I agree that's a separate issue. |
After adding
It reports:
From what I understand, |
@edolstra do you think it would be useful for us to add |
Note that we don't need to use this specific lsb_release executable if an alternate one that reads /etc/os-release is better. |
Oh, indeed... if there is just a version which can parse os-release and is compatible, it would be ideal. Also |
Sticking (more closely) to the published (freedesktop) standards is probably better than patching the tools, even if the standards are kinda ad hoc... |
The problem is that there are two of them (FreeDesktop and lsb_release documentation "standard"), and they are incompatible if I understood correctly D: By "incompatible" I mean that FreeDesktop proposes |
Things done
nix-build --option build-use-chroot true
or nix.useChroot on NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)This is the lsb_release executable from https://sourceforge.net/projects/lsb/. Should probably be tested from someone on other linux distro.
Even if nixos is deliberately not LSB-compliant, it seems interesting to include this tool .
Making it useful on nixos requires including a /etc/lsb-release and possibly /etc/nixos-release on nixos.
some potentially relevant discussion and info:
http://www.gossamer-threads.com/lists/gentoo/user/110551
http://linux.die.net/man/1/lsb_release
cc @grahamc