From 655ef48dbe7b9303b1aa1a9bfde097a124855c24 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Fri, 4 Oct 2024 17:19:28 +0200 Subject: [PATCH] liquibase: Add `sourceRoot` To fix the build issue that was introduced in f373abe60b11bf83c48a7fa84fc9f2c5c8d5151e when the custom `unpackPhase` was removed without correctly validating the build, which results in: ``` error: builder for '/nix/store/5qax6r6kxi4spn5bc7qjpgglxb9kvhxp-liquibase-4.29.2.drv' failed with exit code 1; last 3 log lines: > Running phase: unpackPhase > unpacking source archive /nix/store/v12lcsjxsq3n4lgi8za3k9mqc8pak59b-liquibase-4.29.2.tar.gz > unpacker produced multiple directories For full logs, run 'nix log /nix/store/5qax6r6kxi4spn5bc7qjpgglxb9kvhxp-liquibase-4.29.2.drv'. ``` --- pkgs/development/tools/database/liquibase/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/tools/database/liquibase/default.nix b/pkgs/development/tools/database/liquibase/default.nix index 57b4a7d7c8e6..275ea3429432 100644 --- a/pkgs/development/tools/database/liquibase/default.nix +++ b/pkgs/development/tools/database/liquibase/default.nix @@ -35,6 +35,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ makeWrapper ]; buildInputs = [ jre ]; + sourceRoot = "."; + installPhase = let addJars = dir: '' for jar in ${dir}/*.jar; do