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