verapdf: init at 1.26.2

Co-authored-by: kilianar <mail@kilianar.de>

+122
+80
pkgs/by-name/ve/verapdf/package.nix
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + maven, 5 + makeWrapper, 6 + stripJavaArchivesHook, 7 + makeDesktopItem, 8 + copyDesktopItems, 9 + jre, 10 + }: 11 + maven.buildMavenPackage rec { 12 + pname = "verapdf"; 13 + version = "1.26.2"; 14 + 15 + mvnParameters = "-pl '!installer' -Dverapdf.timestamp=1980-01-01T00:00:02Z -Dproject.build.outputTimestamp=1980-01-01T00:00:02Z"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "veraPDF"; 19 + repo = "veraPDF-apps"; 20 + rev = "v${version}"; 21 + hash = "sha256-bWj4dX1qRQ2zzfF9GfskvMnrNU9pKC738Zllx6JsFww="; 22 + }; 23 + 24 + patches = [ ./stable-maven-plugins.patch ]; 25 + 26 + mvnHash = "sha256-sVuzd4TUmrfvqhtiZL1L4obOF1DihMANbZNIy/LKyfw="; 27 + 28 + nativeBuildInputs = [ 29 + makeWrapper 30 + stripJavaArchivesHook 31 + copyDesktopItems 32 + ]; 33 + 34 + installPhase = '' 35 + runHook preInstall 36 + 37 + mkdir -p $out/bin $out/share 38 + 39 + install -Dm644 greenfield-apps/target/greenfield-apps-${lib.versions.majorMinor version}.0.jar $out/share/verapdf.jar 40 + 41 + makeWrapper ${jre}/bin/java $out/bin/verapdf-gui --add-flags "-jar $out/share/verapdf.jar" 42 + makeWrapper ${jre}/bin/java $out/bin/verapdf --add-flags "-cp $out/share/verapdf.jar org.verapdf.apps.GreenfieldCliWrapper" 43 + 44 + install -Dm644 gui/src/main/resources/org/verapdf/gui/images/icon.png $out/share/icons/hicolor/256x256/apps/verapdf.png 45 + 46 + runHook postInstall 47 + ''; 48 + 49 + desktopItems = [ 50 + (makeDesktopItem { 51 + name = "veraPDF"; 52 + comment = meta.description; 53 + desktopName = "veraPDF"; 54 + genericName = "PDF/A Conformance Checker"; 55 + exec = "verapdf-gui"; 56 + icon = "verapdf"; 57 + categories = [ 58 + "Development" 59 + "Utility" 60 + ]; 61 + keywords = [ "PDF" ]; 62 + mimeTypes = [ "application/pdf" ]; 63 + }) 64 + ]; 65 + 66 + meta = { 67 + description = "Command line and GUI industry supported PDF/A and PDF/UA Validation"; 68 + homepage = "https://github.com/veraPDF/veraPDF-apps"; 69 + license = [ 70 + lib.licenses.gpl3Plus 71 + # or 72 + lib.licenses.mpl20 73 + ]; 74 + mainProgram = "verapdf-gui"; 75 + maintainers = [ 76 + lib.maintainers.mohe2015 77 + lib.maintainers.kilianar 78 + ]; 79 + }; 80 + }
+42
pkgs/by-name/ve/verapdf/stable-maven-plugins.patch
··· 1 + diff --git a/pom.xml b/pom.xml 2 + index 015dca6..1557d54 100644 3 + --- a/pom.xml 4 + +++ b/pom.xml 5 + @@ -125,6 +125,37 @@ 6 + <build> 7 + 8 + <plugins> 9 + + <plugin> 10 + + <groupId>org.apache.maven.plugins</groupId> 11 + + <artifactId>maven-enforcer-plugin</artifactId> 12 + + <version>3.5.0</version> 13 + + <executions> 14 + + <execution> 15 + + <id>enforce-plugin-versions</id> 16 + + <goals> 17 + + <goal>enforce</goal> 18 + + </goals> 19 + + <configuration> 20 + + <rules> 21 + + <requirePluginVersions /> 22 + + </rules> 23 + + </configuration> 24 + + </execution> 25 + + </executions> 26 + + </plugin> 27 + + 28 + + <plugin> 29 + + <groupId>org.apache.maven.plugins</groupId> 30 + + <artifactId>maven-install-plugin</artifactId> 31 + + <version>3.1.3</version> 32 + + </plugin> 33 + + 34 + + <plugin> 35 + + <groupId>org.apache.maven.plugins</groupId> 36 + + <artifactId>maven-jar-plugin</artifactId> 37 + + <version>3.4.2</version> 38 + + </plugin> 39 + + 40 + <plugin> 41 + <groupId>org.apache.maven.plugins</groupId> 42 + <artifactId>maven-compiler-plugin</artifactId>