2017-12-29 03:24:47 +01:00
|
|
|
{ stdenv, fetchzip, jre }:
|
2017-12-27 02:06:19 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-29 03:24:47 +01:00
|
|
|
version = "2.5.1";
|
|
|
|
name = "jbake-${version}";
|
2017-12-27 02:06:19 +01:00
|
|
|
|
2017-12-29 03:24:47 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://jbake.org/files/jbake-${version}-bin.zip";
|
|
|
|
sha256 = "1ib5gvz6sl7k0ywx22anhz69i40wc6jj5lxjxj2aa14qf4lrw912";
|
|
|
|
};
|
2017-12-27 02:06:19 +01:00
|
|
|
|
2017-12-29 03:24:47 +01:00
|
|
|
buildInputs = [ jre ];
|
2017-12-27 02:06:19 +01:00
|
|
|
|
2017-12-29 03:24:47 +01:00
|
|
|
installPhase = ''
|
|
|
|
substituteInPlace bin/jbake --replace "java" "${jre}/bin/java"
|
|
|
|
mkdir -p $out
|
|
|
|
cp -vr * $out
|
|
|
|
'';
|
2017-12-27 02:06:19 +01:00
|
|
|
|
2017-12-29 03:24:47 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "JBake is a Java based, open source, static site/blog generator for developers & designers";
|
|
|
|
homepage = "http://jbake.org/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ moaxcp ];
|
|
|
|
};
|
2017-12-27 02:06:19 +01:00
|
|
|
}
|