Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide terminfo in the package on flake #807

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkgRio.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,23 @@ in
cmake
autoPatchelfHook
];

postInstall = ''
install -D -m 644 misc/rio.desktop -t $out/share/applications
install -D -m 644 misc/logo.svg \
$out/share/icons/hicolor/scalable/apps/rio.svg

# Install terminfo files
install -dm 755 "$out/share/terminfo/r/"
tic -xe rio,rio-direct -o "$out/share/terminfo" misc/rio.terminfo
'' + lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir $out/Applications/
mv misc/osx/Rio.app/ $out/Applications/
mkdir $out/Applications/Rio.app/Contents/MacOS/
ln -s $out/bin/rio $out/Applications/Rio.app/Contents/MacOS/
'';


buildNoDefaultFeatures = true;
buildFeatures = ["x11" "wayland"];
meta = {
Expand Down
Loading