tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
ktfmt: make deterministic
TomaSajt
2 years ago
9808effe
65d8de75
+65
-2
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
kt
ktfmt
package.nix
pin-default-maven-plugin-versions.patch
+5
-2
pkgs/by-name/kt/ktfmt/package.nix
···
11
hash = "sha256-vdvKHTTD84OAQacv/VE/5BxYdW4n3bxPUHF2MdH+sQQ=";
12
};
13
14
-
mvnHash = "sha256-Cl7P2i4VFJ/yk7700u62YPcacfKkhBztFvcDkYBfZEA=";
0
0
0
0
15
16
nativeBuildInputs = [ makeWrapper ];
17
18
installPhase = ''
19
runHook preInstall
20
21
-
mkdir -p $out/bin
22
install -Dm644 core/target/ktfmt-*-jar-with-dependencies.jar $out/share/ktfmt/ktfmt.jar
23
24
makeWrapper ${jre_headless}/bin/java $out/bin/ktfmt \
···
11
hash = "sha256-vdvKHTTD84OAQacv/VE/5BxYdW4n3bxPUHF2MdH+sQQ=";
12
};
13
14
+
patches = [ ./pin-default-maven-plugin-versions.patch ];
15
+
16
+
mvnHash = "sha256-iw28HS0WMFC9BKQKr0v33D77rMQeIMKjXduqPcYU1XA=";
17
+
18
+
mvnParameters = "-Dproject.build.outputTimestamp=1980-01-01T00:00:02Z";
19
20
nativeBuildInputs = [ makeWrapper ];
21
22
installPhase = ''
23
runHook preInstall
24
0
25
install -Dm644 core/target/ktfmt-*-jar-with-dependencies.jar $out/share/ktfmt/ktfmt.jar
26
27
makeWrapper ${jre_headless}/bin/java $out/bin/ktfmt \
+60
pkgs/by-name/kt/ktfmt/pin-default-maven-plugin-versions.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/core/pom.xml b/core/pom.xml
2
+
index 267689e..6b6e04d 100644
3
+
--- a/core/pom.xml
4
+
+++ b/core/pom.xml
5
+
@@ -34,6 +34,55 @@
6
+
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
7
+
<testSourceDirectory>${project.basedir}/src/test/java</testSourceDirectory>
8
+
<plugins>
9
+
+ <plugin>
10
+
+ <groupId>org.apache.maven.plugins</groupId>
11
+
+ <artifactId>maven-enforcer-plugin</artifactId>
12
+
+ <version>3.4.1</version>
13
+
+ <executions>
14
+
+ <execution>
15
+
+ <id>require-all-plugin-versions-to-be-set</id>
16
+
+ <phase>validate</phase>
17
+
+ <goals>
18
+
+ <goal>enforce</goal>
19
+
+ </goals>
20
+
+ <configuration>
21
+
+ <rules>
22
+
+ <requirePluginVersions />
23
+
+ </rules>
24
+
+ </configuration>
25
+
+ </execution>
26
+
+ </executions>
27
+
+ </plugin>
28
+
+ <plugin>
29
+
+ <groupId>org.apache.maven.plugins</groupId>
30
+
+ <artifactId>maven-surefire-plugin</artifactId>
31
+
+ <version>3.2.5</version>
32
+
+ </plugin>
33
+
+ <plugin>
34
+
+ <groupId>org.apache.maven.plugins</groupId>
35
+
+ <artifactId>maven-clean-plugin</artifactId>
36
+
+ <version>3.3.2</version>
37
+
+ </plugin>
38
+
+ <plugin>
39
+
+ <groupId>org.apache.maven.plugins</groupId>
40
+
+ <artifactId>maven-install-plugin</artifactId>
41
+
+ <version>3.1.1</version>
42
+
+ </plugin>
43
+
+ <plugin>
44
+
+ <groupId>org.apache.maven.plugins</groupId>
45
+
+ <artifactId>maven-site-plugin</artifactId>
46
+
+ <version>4.0.0-M13</version>
47
+
+ </plugin>
48
+
+ <plugin>
49
+
+ <groupId>org.apache.maven.plugins</groupId>
50
+
+ <artifactId>maven-resources-plugin</artifactId>
51
+
+ <version>3.3.1</version>
52
+
+ </plugin>
53
+
+ <plugin>
54
+
+ <groupId>org.apache.maven.plugins</groupId>
55
+
+ <artifactId>maven-deploy-plugin</artifactId>
56
+
+ <version>3.1.1</version>
57
+
+ </plugin>
58
+
<plugin>
59
+
<groupId>org.jetbrains.kotlin</groupId>
60
+
<artifactId>kotlin-maven-plugin</artifactId>