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