Merge pull request #200615 from Misterio77/init-apgdiff

apgdiff: init at 2.7.0
This commit is contained in:
Anderson Torres 2022-11-19 00:42:41 -03:00 committed by GitHub
commit 690d5a0294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib
, stdenvNoCC
, fetchurl
, makeWrapper
, jre
}:
stdenvNoCC.mkDerivation (finalAttrs: {
version = "2.7.0";
pname = "apgdiff";
src = fetchurl {
url = "https://github.com/fordfrog/apgdiff/raw/release_${finalAttrs.version}/releases/apgdiff-${finalAttrs.version}.jar";
sha256 = "sha256-6OempDmedl6LOwP/s5y0hOIxGDWHd7qM7/opW3UwQ+I=";
};
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
install -Dm644 $src $out/lib/apgdiff.jar
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/apgdiff \
--argv0 apgdiff \
--add-flags "-jar $out/lib/apgdiff.jar"
'';
meta = with lib; {
description = "Another PostgreSQL diff tool";
homepage = "https://apgdiff.com";
license = licenses.mit;
inherit (jre.meta) platforms;
sourceProvenance = sourceTypes.binaryBytecode;
maintainers = [ maintainers.misterio77 ];
};
})

View File

@ -16249,6 +16249,8 @@ with pkgs;
anybadge = with python3Packages; toPythonApplication anybadge;
apgdiff = callPackage ../development/tools/database/apgdiff { };
apkg = callPackage ../tools/package-management/apkg { };
augeas = callPackage ../tools/system/augeas { };