Loading pkgs/tools/graphics/gmic-qt/default.nix +22 −2 Original line number Diff line number Diff line Loading @@ -3,23 +3,27 @@ , fetchzip , cimg , cmake , coreutils , curl , fftw , gimp , gimpPlugins , gmic , gnugrep , gnused , graphicsmagick , libjpeg , libpng , libtiff , ninja , nix-update-script , nix-update , opencv3 , openexr , pkg-config , qtbase , qttools , wrapQtAppsHook , writeShellScript , zlib , variant ? "standalone" }: Loading Loading @@ -108,7 +112,23 @@ stdenv.mkDerivation (finalAttrs: { inherit cimg gmic; }; updateScript = nix-update-script { }; updateScript = writeShellScript "gmic-qt-update-script" '' set -euo pipefail export PATH="${lib.makeBinPath [ coreutils curl gnugrep gnused nix-update ]}:$PATH" latestVersion=$(curl 'https://gmic.eu/files/source/' \ | grep -E 'gmic_[^"]+\.tar\.gz' \ | sed -E 's/.+<a href="gmic_([^"]+)\.tar\.gz".+/\1/g' \ | sort --numeric-sort --reverse | head -n1) if [[ '${finalAttrs.version}' = "$latestVersion" ]]; then echo "The new version same as the old version." exit 0 fi nix-update --version "$latestVersion" ''; }; meta = { Loading Loading
pkgs/tools/graphics/gmic-qt/default.nix +22 −2 Original line number Diff line number Diff line Loading @@ -3,23 +3,27 @@ , fetchzip , cimg , cmake , coreutils , curl , fftw , gimp , gimpPlugins , gmic , gnugrep , gnused , graphicsmagick , libjpeg , libpng , libtiff , ninja , nix-update-script , nix-update , opencv3 , openexr , pkg-config , qtbase , qttools , wrapQtAppsHook , writeShellScript , zlib , variant ? "standalone" }: Loading Loading @@ -108,7 +112,23 @@ stdenv.mkDerivation (finalAttrs: { inherit cimg gmic; }; updateScript = nix-update-script { }; updateScript = writeShellScript "gmic-qt-update-script" '' set -euo pipefail export PATH="${lib.makeBinPath [ coreutils curl gnugrep gnused nix-update ]}:$PATH" latestVersion=$(curl 'https://gmic.eu/files/source/' \ | grep -E 'gmic_[^"]+\.tar\.gz' \ | sed -E 's/.+<a href="gmic_([^"]+)\.tar\.gz".+/\1/g' \ | sort --numeric-sort --reverse | head -n1) if [[ '${finalAttrs.version}' = "$latestVersion" ]]; then echo "The new version same as the old version." exit 0 fi nix-update --version "$latestVersion" ''; }; meta = { Loading