nixpkgs/pkgs/by-name/ed/edido/package.nix
Krzysztof Nazarewski 8559b460b1 edido: init
2024-07-18 16:57:18 +03:00

20 lines
464 B
Nix

{ lib
, 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}
'';
}