From 820968ee0b89e6bd58d1af76b47fd62b2aa57269 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Tue, 19 Nov 2024 08:51:12 +0530 Subject: [PATCH] Provide terminfo in the package itself Signed-off-by: baalajimaestro --- pkgRio.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgRio.nix b/pkgRio.nix index 668e10559..24722137e 100644 --- a/pkgRio.nix +++ b/pkgRio.nix @@ -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 = {