-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.nix
57 lines (57 loc) · 1.43 KB
/
package.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
lib,
version,
buildGradleApplication,
buildNpmPackage,
}: let
frontend =
(buildNpmPackage {
src = ./.; # TODO: Filter!
npmBuild = "npm run build";
})
.overrideAttrs {
installPhase = ''
runHook preInstall
mv dist $out
runHook postInstall
'';
};
in
(buildGradleApplication
{
pname = "kotlin-ssr-showcase";
version = version;
buildTask = ":check :installDist";
src = ./.; # TODO: Filter ci config, docs, nix tests etc.
dependencyFilter = depSpec:
# kotlin-result-metadata-x.y.z.jar is not uploaded to m2...
!(
depSpec.component.group
== "com.michael-bull.kotlin-result"
&& depSpec.component.name == "kotlin-result"
&& lib.strings.match "^kotlin-result-metadata-[0-9]+\.[0-9]+\.[0-9]+\.jar$" depSpec.name != null
);
meta = {
description = "Kotlin SSR Showcase";
maintainers = [
{
email = "[email protected]";
github = "raphiz";
githubId = 605630;
name = "Raphael Zimmermann";
}
];
sourceProvenance = with lib.sourceTypes; [
fromSource
binaryBytecode
];
license = lib.licenses.mit;
};
})
.overrideAttrs {
preBuild = ''
mkdir -p build/resources
ln -s ${frontend} build/resources/assets
ls -al build/resources/assets
'';
}