Skip to content

Commit

Permalink
tomcat9,tomcat10: rename sha256 to hash
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroussel committed Nov 29, 2023
1 parent 36e481f commit e24c29c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkgs/servers/http/tomcat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

let

common = { versionMajor, versionMinor, sha256 }: stdenv.mkDerivation (finalAttrs: {
common = { versionMajor, versionMinor, hash }: stdenv.mkDerivation (finalAttrs: {
pname = "apache-tomcat";
version = "${versionMajor}.${versionMinor}";

src = fetchurl {
url = "mirror://apache/tomcat/tomcat-${versionMajor}/v${finalAttrs.version}/bin/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
inherit sha256;
inherit hash;
};

outputs = [ "out" "webapps" ];
Expand Down Expand Up @@ -42,12 +42,12 @@ in {
tomcat9 = common {
versionMajor = "9";
versionMinor = "0.83";
sha256 = "sha256-dgktroncHzrm3RFATWSFJ2GkAfGM03PJO1/37yzk+Qo=";
hash = "hash-dgktroncHzrm3RFATWSFJ2GkAfGM03PJO1/37yzk+Qo=";
};

tomcat10 = common {
versionMajor = "10";
versionMinor = "1.16";
sha256 = "sha256-QysLmKN3RQ8TuaR7gup9947QvPLuS3WRgrTH/cH+WEE=";
hash = "hash-QysLmKN3RQ8TuaR7gup9947QvPLuS3WRgrTH/cH+WEE=";
};
}

0 comments on commit e24c29c

Please sign in to comment.