8 maven.buildMavenPackage rec {
12 src = fetchFromGitHub {
13 sparseCheckout = [ "src" ];
16 rev = "refs/tags/release_${version}";
17 hash = "sha256-2m+9QNwQV2tJwOabTXE2xjRB5gDrSwyL6zL2op+wmkM=";
20 # Fix wrong version string in --help
22 sed -i 's/VersionNumber=.*/VersionNumber=${version}/' \
23 src/main/resources/cz/startnet/utils/pgdiff/Resources.properties
26 mvnHash = "sha256-zJQirS8sVqHKZsBukEOf7ox5IeiAVOP6wEHWb4CAyxc=";
28 nativeBuildInputs = [ makeWrapper ];
31 install -Dm644 target/apgdiff-${version}.jar $out/lib/apgdiff.jar
34 makeWrapper ${jre}/bin/java $out/bin/apgdiff \
36 --add-flags "-jar $out/lib/apgdiff.jar"
40 description = "Another PostgreSQL diff tool";
41 mainProgram = "apgdiff";
42 homepage = "https://apgdiff.com";
43 license = licenses.mit;
44 inherit (jre.meta) platforms;
45 maintainers = [ maintainers.misterio77 ];