Skip to content

Instantly share code, notes, and snippets.

@trizinix
Created March 28, 2017 23:46
Show Gist options
  • Save trizinix/10c0e165d71529e916c2103be6a17bc7 to your computer and use it in GitHub Desktop.
Save trizinix/10c0e165d71529e916c2103be6a17bc7 to your computer and use it in GitHub Desktop.
Alacitty nix config
{ stdenv,
fetchFromGitHub,
rustPlatform,
cmake,
makeWrapper,
expat,
pkgconfig,
freetype,
fontconfig,
libX11,
gperf,
libXcursor,
libXxf86vm,
libXi,
xclip }:
with rustPlatform;
{ buildInputs ? []
, LD_LIBRARY_PATH ? ""
, ...
}@args:
buildRustPackage (args // rec {
name = "alacritty-${version}";
version = "0.1.0";
src = fetchFromGitHub {
owner = "jwilm";
repo = "alacritty";
rev = "master";
sha256 = "0yp4iyzbjappiwsn2hhw0yypzs6q9in9pxlzihk7j6n3mmmrblp9";
};
depsSha256 = "1vag8dxz67qvrp5x5xccy88aibxy2ih1bz14bmjgi9zwrv17gz6v";
buildInputs = [
cmake
makeWrapper
freetype
fontconfig
xclip
pkgconfig
expat
libX11
libXcursor
libXxf86vm
libXi
fontconfig
];
installPhase = ''
mkdir -p $out/bin
for f in $(find target/release -maxdepth 1 -type f); do
cp $f $out/bin
done;
wrapProgram $out/bin/alacritty --prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath buildInputs}:${LD_LIBRARY_PATH}"
'';
meta = with stdenv.lib; {
description = "GPU-accelerated terminal emulator";
homepage = https://github.com/jwilm/alacritty;
license = with licenses; [ asl20 ];
maintainers = [ ];
platforms = platforms.all;
};
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment