Loading pkgs/by-name/li/librewolf-bin-unwrapped/package.nix +4 −6 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ let binaryName = "librewolf"; mozillaPlatforms = { i686-linux = "linux-i686"; x86_64-linux = "linux-x86_64"; aarch64-linux = "linux-arm64"; }; Loading @@ -37,19 +36,18 @@ let pname = "librewolf-bin-unwrapped"; version = "146.0.1-1"; version = "147.0.1-3"; in stdenv.mkDerivation { inherit pname version; src = fetchurl { url = "https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/${version}/librewolf-${version}-${arch}-package.tar.xz"; url = "https://codeberg.org/api/packages/librewolf/generic/librewolf/${version}/librewolf-${version}-${arch}-package.tar.xz"; hash = { i686-linux = "sha256-Z8dQhYH3PuKI2vXQ2nQ4CmyNyDxtAirX0YVxI0r5n3w="; x86_64-linux = "sha256-pRpSHAkLQpg80pOfUBvGBujr4fDDg4wpltVIw9wrlBE="; aarch64-linux = "sha256-BTqzBAohy+kcWou2WKStoAykcqV1DYfLRNbjUF/TTIY="; x86_64-linux = "sha256-SPGUDTwdEi9ztH9MiFxtiY+xn3258znyu6yw5a9J/YE="; aarch64-linux = "sha256-a6xFoZbBtoFgZFYGmz8IIvBsVP+qKTX32ufmQGdtMBk="; } .${stdenv.hostPlatform.system} or throwSystem; }; Loading pkgs/by-name/li/librewolf-bin-unwrapped/update.sh +2 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ set -eou pipefail latestVersion=$(curl ${GITLAB_TOKEN:+-H "Private-Token: $GITLAB_TOKEN"} -sL https://gitlab.com/api/v4/projects/44042130/releases | jq -r '.[0].tag_name') latestVersion=$(curl ${CODEBERG_TOKEN:+-H "Authorization: token $CODEBERG_TOKEN"} -H 'accept: application/json' -sL https://codeberg.org/api/v1/repos/librewolf/bsys6/releases/latest | jq -r '.tag_name') currentVersion=$(nix-instantiate --eval -E "with import ./. {}; librewolf-bin-unwrapped.version or (lib.getVersion librewolf-bin-unwrapped)" | tr -d '"') echo "latest version: $latestVersion" Loading @@ -15,10 +15,9 @@ if [[ "$latestVersion" == "$currentVersion" ]]; then fi for i in \ "i686-linux linux-i686" \ "x86_64-linux linux-x86_64" \ "aarch64-linux linux-arm64"; do set -- $i hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(curl ${GITLAB_TOKEN:+-H "Private-Token: $GITLAB_TOKEN"} -sL https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/$latestVersion/librewolf-$latestVersion-$2-package.tar.xz.sha256sum)) hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(curl ${CODEBERG_TOKEN:+-H "Authorization: token $CODEBERG_TOKEN"} -sL https://codeberg.org/api/packages/librewolf/generic/librewolf/$latestVersion/librewolf-$latestVersion-$2-package.tar.xz.sha256sum)) update-source-version librewolf-bin-unwrapped $latestVersion $hash --system=$1 --ignore-same-version done Loading
pkgs/by-name/li/librewolf-bin-unwrapped/package.nix +4 −6 Original line number Diff line number Diff line Loading @@ -22,7 +22,6 @@ let binaryName = "librewolf"; mozillaPlatforms = { i686-linux = "linux-i686"; x86_64-linux = "linux-x86_64"; aarch64-linux = "linux-arm64"; }; Loading @@ -37,19 +36,18 @@ let pname = "librewolf-bin-unwrapped"; version = "146.0.1-1"; version = "147.0.1-3"; in stdenv.mkDerivation { inherit pname version; src = fetchurl { url = "https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/${version}/librewolf-${version}-${arch}-package.tar.xz"; url = "https://codeberg.org/api/packages/librewolf/generic/librewolf/${version}/librewolf-${version}-${arch}-package.tar.xz"; hash = { i686-linux = "sha256-Z8dQhYH3PuKI2vXQ2nQ4CmyNyDxtAirX0YVxI0r5n3w="; x86_64-linux = "sha256-pRpSHAkLQpg80pOfUBvGBujr4fDDg4wpltVIw9wrlBE="; aarch64-linux = "sha256-BTqzBAohy+kcWou2WKStoAykcqV1DYfLRNbjUF/TTIY="; x86_64-linux = "sha256-SPGUDTwdEi9ztH9MiFxtiY+xn3258znyu6yw5a9J/YE="; aarch64-linux = "sha256-a6xFoZbBtoFgZFYGmz8IIvBsVP+qKTX32ufmQGdtMBk="; } .${stdenv.hostPlatform.system} or throwSystem; }; Loading
pkgs/by-name/li/librewolf-bin-unwrapped/update.sh +2 −3 Original line number Diff line number Diff line Loading @@ -3,7 +3,7 @@ set -eou pipefail latestVersion=$(curl ${GITLAB_TOKEN:+-H "Private-Token: $GITLAB_TOKEN"} -sL https://gitlab.com/api/v4/projects/44042130/releases | jq -r '.[0].tag_name') latestVersion=$(curl ${CODEBERG_TOKEN:+-H "Authorization: token $CODEBERG_TOKEN"} -H 'accept: application/json' -sL https://codeberg.org/api/v1/repos/librewolf/bsys6/releases/latest | jq -r '.tag_name') currentVersion=$(nix-instantiate --eval -E "with import ./. {}; librewolf-bin-unwrapped.version or (lib.getVersion librewolf-bin-unwrapped)" | tr -d '"') echo "latest version: $latestVersion" Loading @@ -15,10 +15,9 @@ if [[ "$latestVersion" == "$currentVersion" ]]; then fi for i in \ "i686-linux linux-i686" \ "x86_64-linux linux-x86_64" \ "aarch64-linux linux-arm64"; do set -- $i hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(curl ${GITLAB_TOKEN:+-H "Private-Token: $GITLAB_TOKEN"} -sL https://gitlab.com/api/v4/projects/44042130/packages/generic/librewolf/$latestVersion/librewolf-$latestVersion-$2-package.tar.xz.sha256sum)) hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 $(curl ${CODEBERG_TOKEN:+-H "Authorization: token $CODEBERG_TOKEN"} -sL https://codeberg.org/api/packages/librewolf/generic/librewolf/$latestVersion/librewolf-$latestVersion-$2-package.tar.xz.sha256sum)) update-source-version librewolf-bin-unwrapped $latestVersion $hash --system=$1 --ignore-same-version done