mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
27 lines
544 B
Nix
27 lines
544 B
Nix
{
|
|
replaceVars,
|
|
runCommand,
|
|
lib,
|
|
runtimeShell,
|
|
coreutils,
|
|
getopt,
|
|
}:
|
|
|
|
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
|
|
''
|