mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
alacritty: add terminfo and man
Signed-off-by: Brice Waegeneire <brice.wge@gmail.com>
This commit is contained in:
parent
a0383ffec8
commit
1af7a83576
@ -4,11 +4,13 @@
|
||||
rustPlatform,
|
||||
cmake,
|
||||
makeWrapper,
|
||||
ncurses,
|
||||
expat,
|
||||
pkgconfig,
|
||||
freetype,
|
||||
fontconfig,
|
||||
libX11,
|
||||
gzip,
|
||||
libXcursor,
|
||||
libXxf86vm,
|
||||
libXi,
|
||||
@ -66,11 +68,15 @@ in buildRustPackage rec {
|
||||
cmake
|
||||
makeWrapper
|
||||
pkgconfig
|
||||
ncurses
|
||||
gzip
|
||||
];
|
||||
|
||||
buildInputs = rpathLibs
|
||||
++ lib.optionals stdenv.isDarwin darwinFrameworks;
|
||||
|
||||
outputs = [ "out" "terminfo" ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace copypasta/src/x11.rs \
|
||||
--replace Command::new\(\"xclip\"\) Command::new\(\"${xclip}/bin/xclip\"\)
|
||||
@ -95,6 +101,14 @@ in buildRustPackage rec {
|
||||
install -D alacritty-completions.bash "$out/etc/bash_completion.d/alacritty-completions.bash"
|
||||
install -D alacritty-completions.fish "$out/share/fish/vendor_completions.d/alacritty.fish"
|
||||
|
||||
install -dm 755 "$out/share/man/man1"
|
||||
gzip -c alacritty.man > "$out/share/man/man1/alacritty.1.gz"
|
||||
|
||||
install -dm 755 "$terminfo/share/terminfo/a/"
|
||||
tic -x -o "$terminfo/share/terminfo" alacritty.info
|
||||
mkdir -p $out/nix-support
|
||||
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user