c8ef9fcfa7
Change-Id: I8a3f22dd752b5cd70518424335de876210e9bcd4 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5487 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
34 lines
706 B
Nix
34 lines
706 B
Nix
{ depot, pkgs, lib, ... }:
|
|
|
|
let
|
|
bins = depot.nix.getBins pkgs.alacritty-stable [ "alacritty" ];
|
|
|
|
config =
|
|
depot.users.Profpatsch.importDhall.importDhall {
|
|
root = ./.;
|
|
files = [
|
|
"alacritty.dhall"
|
|
"solarized.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
|