2024-11-30 20:15:14 +00:00
|
|
|
{
|
|
|
|
replaceVars,
|
|
|
|
runCommand,
|
|
|
|
lib,
|
|
|
|
runtimeShell,
|
|
|
|
coreutils,
|
|
|
|
getopt,
|
2019-07-30 22:20:00 +00:00
|
|
|
}:
|
2016-04-22 17:03:27 +00:00
|
|
|
|
2024-11-30 20:15:14 +00:00
|
|
|
runCommand "lsb_release"
|
|
|
|
{
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Prints certain LSB (Linux Standard Base) and Distribution information";
|
|
|
|
mainProgram = "lsb_release";
|
|
|
|
license = [ licenses.mit ];
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
''
|
|
|
|
install -Dm 555 ${
|
|
|
|
replaceVars ./lsb_release.sh {
|
|
|
|
inherit runtimeShell coreutils getopt;
|
|
|
|
}
|
|
|
|
} $out/bin/lsb_release
|
|
|
|
''
|