Unverified Commit 9aeb626f authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

lunar-client: 3.4.9 -> 3.5.1; switch to ow builds (#444980)

parents 0700e294 405db319
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -7,11 +7,11 @@

appimageTools.wrapType2 rec {
  pname = "lunarclient";
  version = "3.4.9";
  version = "3.5.1";

  src = fetchurl {
    url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}.AppImage";
    hash = "sha512-lzJFzOpJDCp8G+dZEcfvORJTHI5tqpvOcXGwyrSN+raaZJcCYbqLJC30u8trsNV7vgjUzoJdnhLHhwsTQp4RpQ==";
    url = "https://launcherupdates.lunarclientcdn.com/Lunar%20Client-${version}-ow.AppImage";
    hash = "sha512-gwJSDnf8treueqAejDuAaRV3yFpOFMCL6WOODhjuD9UxLNvg94Z4SXmcnYBBuuUeQQi4+r5lM7EM97XzX86sSA==";
  };

  nativeBuildInputs = [ makeWrapper ];
+2 −2
Original line number Diff line number Diff line
@@ -4,8 +4,8 @@ set -eu -o pipefail

target="$(dirname "$(readlink -f "$0")")/package.nix"
host="https://launcherupdates.lunarclientcdn.com"
metadata=$(curl "$host/latest-linux.yml")
version=$(echo "$metadata" | yq .version -r)
metadata=$(curl "$host/latest-ow-linux.yml")
version=$(echo "$metadata" | yq .version -r | cut -d- -f1)
hash=$(echo "$metadata" | yq .sha512 -r)

sed -i "s@version = .*;@version = \"$version\";@g" "$target"