using upstream zettlr

This commit is contained in:
Ingolf Wagner 2021-02-18 04:22:38 +01:00
parent 5907f14e91
commit f6d939d2e9
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -15,14 +15,17 @@ let
in pkgs.writers.writeBashBin "all-licenses"
(lib.concatStringsSep "\n" licenses);
zettlr = pkgs.writers.writeBashBin "zettlr" ''
if [[ ! -x "$HOME/programs/Zettlr.AppImage" ]]
then
echo "$HOME/programs/Zettlr.AppImage does not exist or is not executable";
exit 1
fi
exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Zettlr.AppImage"
'';
#zettlr = pkgs.writers.writeBashBin "zettlr" ''
# if [[ ! -x "$HOME/programs/Zettlr.AppImage" ]]
# then
# echo "$HOME/programs/Zettlr.AppImage does not exist or is not executable";
# exit 1
# fi
# exec ${pkgs.appimage-run}/bin/appimage-run "$HOME/programs/Zettlr.AppImage"
#'';
zettlr = unstablePkgs.zettlr;
replaceLinks = pkgs.writers.writeBashBin "replace-link-with-content" # sh
''
if [ ! -L "$1" ]