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

19 lines
458 B
Nix
Raw Normal View History

{ writeShellApplication
, bc
, diffutils
, findutils
, coreutils
, firmwarePaths ? [
"/run/current-system/firmware"
]
}:
writeShellApplication {
name = "edido";
meta.description = "A tool to apply display configuration from `boot.kernelParams`.";
runtimeInputs = [ diffutils findutils coreutils bc ];
text = ''
FIRMWARE_PATH="''${FIRMWARE_PATH:-"${builtins.concatStringsSep ":" firmwarePaths}"}"
${builtins.readFile ./edido.sh}
'';
}