-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.nix
41 lines (29 loc) · 867 Bytes
/
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
{ pkgs, sbt, self, ... }:
sbt.lib.mkSbtDerivation {
inherit pkgs;
pname = "photoprism-slideshow";
version = "0.2.4";
depsSha256 = "sha256-SdrAk1e0YN5yWEpx0j9lflNbjuxf2damPKXb/yM6erc=";
buildInputs = [ ];
src = self;
nativeBuildInputs = [ ];
depsWarmupCommand = ''
sbt 'managedClasspath; compilers'
'';
startScript = ''
#!${pkgs.runtimeShell}
exec ${pkgs.jdk22_headless}/bin/java ''${JAVA_OPTS:-} -cp "${
placeholder "out"
}/share/photoprism-slideshow/lib/*" photoprism.slideshow.PhotoprismSlideshowApp "$@"
'';
buildPhase = ''
sbt stage
'';
installPhase = ''
libs_dir="$out/share/photoprism-slideshow/lib"
mkdir -p "$libs_dir"
cp -ar target/universal/stage/lib/. "$libs_dir"
install -T -D -m755 $startScriptPath $out/bin/photoprism-slideshow
'';
passAsFile = ["startScript"];
}