dots-of-war/files/nix-stuff/nixpkgs/packages/alacritty-overlay.nix
2020-08-26 00:26:00 +02:00

14 lines
366 B
Nix

{ nixGL, symlinkJoin, makeWrapper, writeScriptBin, alacritty }:
let
wrapped =
writeScriptBin "alacritty" ''
writeScriptBin "alacritty"
#!/bin/sh
exec ${nixGL.nixGLIntel}/bin/nixGLIntel ${alacritty}/bin/alacritty "$@"
'';
in
symlinkJoin {
name = "alacritty";
nativeBuildInputs = [ makeWrapper ];
paths = [ wrapped alacritty ];
}