woodpecker: cleanup (#453950)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user