nixpkgs/pkgs/by-name/ed/edido/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
481 B
Nix
Raw Normal View History

2024-07-20 21:36:46 +02:00
{
writeShellApplication,
2024-04-18 13:33:19 +02:00
bc,
diffutils,
findutils,
coreutils,
firmwarePaths ? [
"/run/current-system/firmware"
],
}:
writeShellApplication {
name = "edido";
meta.description = "Tool to apply display configuration from `boot.kernelParams`";
2024-04-18 13:33:19 +02:00
runtimeInputs = [
diffutils
findutils
coreutils
bc
];
text = ''
FIRMWARE_PATH="''${FIRMWARE_PATH:-"${builtins.concatStringsSep ":" firmwarePaths}"}"
${builtins.readFile ./edido.sh}
'';
}