Unverified Commit c5f2bb6f authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

woodpecker: cleanup (#453950)

parents 622a7208 6e8317c6
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -2,8 +2,7 @@
let
  version = "3.11.0";
  srcHash = "sha256-mLyEHNMePVZI6MOSyeD9NMp9QXRXQ7h3LFSxHxpf878=";
  # The tarball contains vendored dependencies
  vendorHash = null;
  vendorHash = null; # The tarball contains vendored dependencies
in
{
  inherit version vendorHash;
@@ -38,11 +37,11 @@ in
    "-X go.woodpecker-ci.org/woodpecker/v3/version.Version=${version}"
  ];

  meta = with lib; {
  meta = {
    homepage = "https://woodpecker-ci.org/";
    changelog = "https://github.com/woodpecker-ci/woodpecker/blob/v${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with maintainers; [
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      ambroisie
      marcusramberg
      techknowlogick
+1 −1
Original line number Diff line number Diff line
@@ -28,5 +28,5 @@ sed -i -E -e "s#version = \".*\"#version = \"$version\"#" common.nix

# Woodpecker repository
src_hash=$(nix-prefetch-url --type sha256 --unpack "https://github.com/woodpecker-ci/woodpecker/releases/download/v$version/woodpecker-src.tar.gz")
src_hash=$(nix --extra-experimental-features nix-command hash to-sri --type sha256 "$src_hash")
src_hash=$(nix --extra-experimental-features nix-command hash convert --to sri --hash-algo sha256 "$src_hash")
sed -i -E -e "s#srcHash = \".*\"#srcHash = \"$src_hash\"#" common.nix