varnish: sha256 -> hash

This commit is contained in:
ajs124 2022-08-10 15:36:34 +02:00
parent a7f89ddd63
commit 56a3a71d36

View File

@ -2,14 +2,14 @@
, coreutils, python3, makeWrapper }:
let
common = { version, sha256, extraNativeBuildInputs ? [] }:
common = { version, hash, extraNativeBuildInputs ? [] }:
stdenv.mkDerivation rec {
pname = "varnish";
inherit version;
src = fetchurl {
url = "https://varnish-cache.org/_downloads/${pname}-${version}.tgz";
inherit sha256;
inherit hash;
};
passthru.python = python3;
@ -50,10 +50,10 @@ in
{
varnish60 = common {
version = "6.0.10";
sha256 = "1sr60wg5mzjb14y75cga836f19sbmmpgh13mwc4alyg3irsbz1bb";
hash = "sha256-a4W/dI7jeaoI43UE+G6tS6fgzEDqsXI8CUv+Wh4HJus=";
};
varnish71 = common {
version = "7.1.0";
sha256 = "1flyqr212jamqpwafdil170vc966r1mbb7n3ngjn8xk6hn3bhjpm";
hash = "sha256-9Uq4hoVmdmTls8OetWrIxiS2wQk0Nqf4xVVJEUTGnro=";
};
}