From c71017fcfa1ba181e9515020698d80e2d61eb941 Mon Sep 17 00:00:00 2001 From: Lucas Hoffmann Date: Thu, 1 Aug 2024 12:46:09 +0200 Subject: [PATCH] nix: install support files --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index 83c3c97c3..2ec460a99 100644 --- a/flake.nix +++ b/flake.nix @@ -34,8 +34,15 @@ urwid urwidtrees ]; + postPatch = '' + substituteInPlace alot/settings/manager.py \ + --replace /usr/share "$out/share" + ''; postInstall = '' installShellCompletion --zsh --name _alot extra/completion/alot-completion.zsh + mkdir -p $out/share/{applications,alot} + cp -r extra/themes $out/share/alot + sed "s,/usr/bin,$out/bin,g" extra/alot.desktop > $out/share/applications/alot.desktop ''; checkPhase = '' # In the nix sandbox stdin is not a terminal but /dev/null so we