about summary refs log tree commit diff
path: root/pkgs/by-name/ed/edido/package.nix
blob: 2d1f69e6a7403a9c861b015bfdb71ecd3415f460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ 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}
  '';
}