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