mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-26 14:04:52 +00:00
Merge pull request #224877 from IndeedNotJames/forgejo
This commit is contained in:
commit
c060b3d41f
@ -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;
|
||||
@ -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")
|
||||
@ -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…
Reference in New Issue
Block a user