Skip to content

Commit

Permalink
Merge pull request #1670 from pazz/nix-support-files
Browse files Browse the repository at this point in the history
nix: install support files
  • Loading branch information
lucc authored Aug 1, 2024
2 parents a7bf032 + c71017f commit f29c8c6
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 f29c8c6

Please sign in to comment.