Skip to content

Commit

Permalink
nix: install support files
Browse files Browse the repository at this point in the history
  • Loading branch information
lucc committed Aug 1, 2024
1 parent a7bf032 commit c71017f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c71017f

Please sign in to comment.