9630949f88
Change-Id: I757ec06ccbae99106d4472d8396a9f106447fb88 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8497 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
33 lines
673 B
Nix
33 lines
673 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
bins = depot.nix.getBins pkgs.alacritty [ "alacritty" ];
|
|
|
|
config =
|
|
depot.users.Profpatsch.importDhall.importDhall {
|
|
root = ./.;
|
|
files = [
|
|
"alacritty.dhall"
|
|
];
|
|
main = "alacritty.dhall";
|
|
deps = [ ];
|
|
};
|
|
|
|
config-file = lib.pipe config.alacritty-config [
|
|
(lib.generators.toYAML { })
|
|
(pkgs.writeText "alacritty.conf")
|
|
];
|
|
|
|
|
|
alacritty = depot.nix.writeExecline "alacritty" { } (
|
|
(lib.concatLists (lib.mapAttrsToList (k: v: [ "export" k (toString v) ]) config.alacritty-env))
|
|
++ [
|
|
bins.alacritty
|
|
"--config-file"
|
|
config-file
|
|
"$@"
|
|
]
|
|
);
|
|
|
|
in
|
|
alacritty
|