nixpkgs/pkgs/os-specific/linux/lsb-release/default.nix
Michael Weiss 63f93407b9
lsb-release: Fix/replace with a custom Bash script (#64258)
See #64258 for more details and some discussion.
Fix #22729.

tl;dr: This fixes the behaviour at run-time but uses "n/a" defaults
inside the Nix build sandbox (build-time).

There might still be a few minor regressions, we might have to tweak
the behaviour over time (e.g. the implementation from Debian also
differs from the original version), and we could refactor the script,
but it should work well enough for now.
2019-07-31 00:20:00 +02:00

22 lines
414 B
Nix

{ substituteAll, lib
, coreutils, getopt
}:
substituteAll {
name = "lsb_release";
src = ./lsb_release.sh;
dir = "bin";
isExecutable = true;
inherit coreutils getopt;
meta = with lib; {
description = "Prints certain LSB (Linux Standard Base) and Distribution information";
license = [ licenses.mit ];
maintainers = with maintainers; [ primeos ];
platforms = platforms.linux;
};
}