Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
jre,
|
|
makeWrapper,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "schemacrawler";
|
|
version = "16.28.3";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/schemacrawler/SchemaCrawler/releases/download/v${finalAttrs.version}/schemacrawler-${finalAttrs.version}-bin.zip";
|
|
hash = "sha256-OtQYAJe5eHoEis8Azy1LPxJdZR4HlKn8UhlDglqarto=";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
cp -r {config,lib} $out/
|
|
|
|
makeWrapper ${jre}/bin/java $out/bin/schemacrawler \
|
|
--add-flags "-cp $out/lib/*:$out/config" \
|
|
--add-flags schemacrawler.Main
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
|
|
meta = with lib; {
|
|
description = "Database schema discovery and comprehension tool";
|
|
mainProgram = "schemacrawler";
|
|
homepage = "https://www.schemacrawler.com/";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = with licenses; [
|
|
epl10
|
|
gpl3Only
|
|
lgpl3Only
|
|
];
|
|
platforms = platforms.unix;
|
|
maintainers = [ ];
|
|
};
|
|
})
|