5 buildGraalvmNativeImage,
9 pname = "certificate-ripper";
12 jar = maven.buildMavenPackage {
13 pname = "${pname}-jar";
16 src = fetchFromGitHub {
18 repo = "certificate-ripper";
20 hash = "sha256-q/UhKLFAre3YUH2W7e+SH4kRM0GIZAUyNJFDm02eL+8=";
24 ./pin-default-maven-plguin-versions.patch
25 ./fix-test-temp-dir-path.patch
28 mvnHash = "sha256-/iy7DXBAyq8TIpvrd2WAQh+9OApfxCWo1NoGwbzbq7s=";
30 mvnParameters = lib.escapeShellArgs [
31 "-Dproject.build.outputTimestamp=1980-01-01T00:00:02Z" # make timestamp deterministic
32 "-Dtest=!PemExportCommandShould#resolveRootCaOnlyWhenEnabled" # disable test using network
36 install -Dm644 target/crip.jar $out
40 buildGraalvmNativeImage {
41 inherit pname version;
48 extraNativeImageBuildArgs = [
50 "-H:ReflectionConfigurationResources=graalvm_config.json"
51 "-H:EnableURLProtocols=https"
52 "-H:EnableURLProtocols=http"
56 changelog = "https://github.com/Hakky54/certificate-ripper/releases/tag/${version}";
57 description = "CLI tool to extract server certificates";
58 homepage = "https://github.com/Hakky54/certificate-ripper";
59 license = lib.licenses.asl20;
60 maintainers = with lib.maintainers; [ tomasajt ];