From f6d939d2e99e94eded0b8cea17cadfb98eaf72ab Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Thu, 18 Feb 2021 04:22:38 +0100 Subject: [PATCH] using upstream zettlr --- system/desktop/packages.nix | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/system/desktop/packages.nix b/system/desktop/packages.nix index fc5b914..d4c7dff 100644 --- a/system/desktop/packages.nix +++ b/system/desktop/packages.nix @@ -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" ]