1 { lib, stdenv, fetchzip, makeWrapper, jre }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/jbake-org/jbake/releases/download/v${version}/jbake-${version}-bin.zip";
9 sha256 = "sha256-kikGnFsParq8g0dzzYtMr2vIJD2ie8PeF6TG2G5K7KE=";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ jre ];
15 postPatch = "patchShebangs .";
20 wrapProgram $out/bin/jbake --set JAVA_HOME "${jre}"
24 export JAVA_HOME=${jre}
25 bin/jbake | grep -q "${version}" || (echo "jbake did not return correct version"; exit 1)
30 description = "Java based, open source, static site/blog generator for developers & designers";
31 homepage = "https://jbake.org/";
32 license = licenses.mit;
33 maintainers = with maintainers; [ moaxcp ];