dots-of-war/files/nix-stuff/nixpkgs/packages/alacritty-overlay.nix

15 lines
366 B
Nix
Raw Normal View History

2020-08-25 22:26:00 +00:00
{ 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 ];
}