using upstream zettlr
This commit is contained in:
parent
5907f14e91
commit
f6d939d2e9
1 changed files with 11 additions and 8 deletions
|
@ -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" ]
|
||||
|
|
Loading…
Reference in a new issue