Compare commits

..

No commits in common. "9b23cd16c277b1b425966b4c71926c788084f3ce" and "fbfa29a8676b07203801c83e184c0bb0652a2827" have entirely different histories.

View file

@ -10,7 +10,6 @@
, nixpkgs
, maven
, makeWrapper
, stdenv
, ...
}:
let
@ -33,29 +32,32 @@
in
{
packages = {
learningpulse-discovery = stdenv.mkDerivation rec {
pname = "gateway";
version = "1.0";
src = ./.;
buildInputs = [ maven ];
learningpulse-discovery = with lib; maven.buildMavenPackage {
pname = "learningpulse-discovery";
version = "1.1.1";
buildPhase = ''
mvn --offline -Dmaven.repo.local=gateway package;
'';
src = ./eurika;
# todo get hash from package
mvnHash = lib.fakeSha256;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
install -Dm644 target/${pname}-${version}.jar $out/share/java
mkdir -p $out/bin $out/share/jd-cli
install -Dm644 jd-cli/target/jd-cli.jar $out/share/jd-cli
makeWrapper ${nixpkgs.pkgs.jre8}/bin/java $out/bin/jd-cli \
--add-flags "-jar $out/share/jd-cli/jd-cli.jar"
'';
};
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
jdk
maven
];
};
});
};
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell {
packages = with pkgs; [
jdk
maven
];
};
});
};
}