9 maven.buildMavenPackage rec {
13 src = fetchFromGitHub {
17 hash = "sha256-TIYV/V6vtGTTSLFf9dcKo8Ezx61e7Vvz3vQvbh0Kj/Y=";
20 patches = [ ./pin-default-maven-plugin-versions.patch ];
22 mvnHash = "sha256-f/Uwc0ynROEKl2+zsgqj5ctRu1QcNblF5suU/0+fvKw=";
24 mvnParameters = "-Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";
26 nativeBuildInputs = [ makeWrapper ];
31 install -Dm644 core/target/ktfmt-*-jar-with-dependencies.jar $out/share/ktfmt/ktfmt.jar
33 makeWrapper ${jre_headless}/bin/java $out/bin/ktfmt \
34 --add-flags "-jar $out/share/ktfmt/ktfmt.jar"
40 description = "Program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions";
41 homepage = "https://github.com/facebook/ktfmt";
42 license = licenses.asl20;
43 mainProgram = "ktfmt";
44 maintainers = with maintainers; [ ghostbuster91 ];
45 inherit (jre_headless.meta) platforms;