dev to basic spring #9
19
flake.nix
19
flake.nix
|
@ -55,7 +55,26 @@
|
|||
'';
|
||||
};
|
||||
|
||||
learningpulse-dummy = pkgs.maven.buildMavenPackage rec {
|
||||
pname = "dummy";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./.;
|
||||
# todo get automatically
|
||||
mvnHash = "sha256-YCK1Qujgx73cZdEx2mRip+y+66px5TxL247fBIMyoy4=";
|
||||
|
||||
nativeBuildInputs = buildPackages;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/share/${pname}
|
||||
install -Dm644 ${pname}/target/${pname}-${version}.jar $out/share/${pname}-${version}
|
||||
|
||||
makeWrapper ${pkgs.jre8}/bin/java $out/bin/${pname}- \
|
||||
--add-flags "-jar $out/share/${pname}/${pname}-${version}.jar"
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
hydraJobs = {
|
||||
inherit (self)
|
||||
packages;
|
||||
|
|
Reference in a new issue