Loading pkgs/applications/version-management/forgejo/default.nix +4 −7 Original line number Diff line number Diff line Loading @@ -25,13 +25,11 @@ buildGoModule rec { pname = "forgejo"; version = "1.19.0-2"; version = "1.19.0-3"; src = fetchurl { name = "${pname}-src-${version}.tar.gz"; # see https://codeberg.org/forgejo/forgejo/releases url = "https://codeberg.org/attachments/2bf497db-fa91-4260-9c98-5c791b6b397c"; hash = "sha256-neDIT+V3qHR8xgP4iy4TJQ6PCWO3svpSA7FLCacQSMI="; url = "https://codeberg.org/forgejo/forgejo/releases/download/v${version}/forgejo-src-${version}.tar.gz"; hash = "sha256-u27DDw3JUtVJ2nvkKfaGzpYP8bpRnwc1LUVra8Epkjc="; }; vendorHash = null; Loading Loading @@ -105,7 +103,6 @@ buildGoModule rec { | { $version, html_url } + (.assets | map(select(.name | startswith($filename)) | {(.name | split(".") | last): .browser_download_url}) | add)' \ <<< "$releases") archive_url=$(jq -r .gz <<< "$stable") checksum_url=$(jq -r .sha256 <<< "$stable") release_url=$(jq -r .html_url <<< "$stable") version=$(jq -r .version <<< "$stable") Loading @@ -120,7 +117,7 @@ buildGoModule rec { sha256=$(curl "$checksum_url" --silent | cut --delimiter " " --fields 1) sri_hash=$(nix hash to-sri --type sha256 "$sha256") update-source-version "${pname}" "$version" "$sri_hash" "$archive_url" update-source-version "${pname}" "$version" "$sri_hash" ''; }); }; Loading Loading
pkgs/applications/version-management/forgejo/default.nix +4 −7 Original line number Diff line number Diff line Loading @@ -25,13 +25,11 @@ buildGoModule rec { pname = "forgejo"; version = "1.19.0-2"; version = "1.19.0-3"; src = fetchurl { name = "${pname}-src-${version}.tar.gz"; # see https://codeberg.org/forgejo/forgejo/releases url = "https://codeberg.org/attachments/2bf497db-fa91-4260-9c98-5c791b6b397c"; hash = "sha256-neDIT+V3qHR8xgP4iy4TJQ6PCWO3svpSA7FLCacQSMI="; url = "https://codeberg.org/forgejo/forgejo/releases/download/v${version}/forgejo-src-${version}.tar.gz"; hash = "sha256-u27DDw3JUtVJ2nvkKfaGzpYP8bpRnwc1LUVra8Epkjc="; }; vendorHash = null; Loading Loading @@ -105,7 +103,6 @@ buildGoModule rec { | { $version, html_url } + (.assets | map(select(.name | startswith($filename)) | {(.name | split(".") | last): .browser_download_url}) | add)' \ <<< "$releases") archive_url=$(jq -r .gz <<< "$stable") checksum_url=$(jq -r .sha256 <<< "$stable") release_url=$(jq -r .html_url <<< "$stable") version=$(jq -r .version <<< "$stable") Loading @@ -120,7 +117,7 @@ buildGoModule rec { sha256=$(curl "$checksum_url" --silent | cut --delimiter " " --fields 1) sri_hash=$(nix hash to-sri --type sha256 "$sha256") update-source-version "${pname}" "$version" "$sri_hash" "$archive_url" update-source-version "${pname}" "$version" "$sri_hash" ''; }); }; Loading