libeufin: 0.11.3 -> 0.13.0

This commit is contained in:
eljamm 2024-08-29 13:02:48 +01:00 committed by Valentin Gagarin
parent 698716eb37
commit e825dd48b5
2 changed files with 747 additions and 791 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,12 +14,12 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "libeufin";
version = "0.11.3";
version = "0.13.0";
src = fetchgit {
url = "https://git.taler.net/libeufin.git/";
rev = "v${finalAttrs.version}";
hash = "sha256-6bMYcpxwL1UJXt0AX6R97C0Orwqb7E+TZO2Sz1qode8=";
hash = "sha256-whGcFZYuyeFfhu+mIi7oUNJRXjaVGuL67sfUrHF85Fs=";
fetchSubmodules = true;
leaveDotGit = true; # required for correct submodule fetching
# Delete .git folder for reproducibility (otherwise, the hash changes unexpectedly after fetching submodules)
@ -39,15 +39,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace build.gradle \
--replace-fail "commandLine 'git', 'rev-parse', '--short', 'HEAD'" 'commandLine "cat", "$projectDir/common/src/main/resources/HEAD.txt"'
# Gradle projects provide a .module metadata file as artifact. This artifact is used by gradle
# to download dependencies to the cache when needed, but do not provide the jar for the
# offline installation for our build phase. Since we make an offline Maven repo, we have to
# substitute the gradle deps for their maven counterpart to retrieve the .jar artifacts.
for dir in common bank nexus testbench; do
substituteInPlace $dir/build.gradle \
--replace-fail ':$ktor_version' '-jvm:$ktor_version' \
--replace-fail ':$clikt_version' '-jvm:$clikt_version'
done
# Use gradle repo to download dependencies
substituteInPlace build.gradle \
--replace-fail 'mavenCentral()' "gradlePluginPortal()"
runHook postPatch
'';