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