added dummy to flake
This commit is contained in:
parent
3534dee0f4
commit
3e80c6a896
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 = {
|
hydraJobs = {
|
||||||
inherit (self)
|
inherit (self)
|
||||||
packages;
|
packages;
|
||||||
|
|
Reference in a new issue