nixpkgs/pkgs/development/tools/jbake/default.nix

27 lines
693 B
Nix
Raw Normal View History

{ stdenv, fetchzip, makeWrapper, jre }:
2017-12-27 02:06:19 +01:00
stdenv.mkDerivation rec {
version = "2.6.1";
2017-12-29 03:24:47 +01:00
name = "jbake-${version}";
2017-12-27 02:06:19 +01:00
2017-12-29 03:24:47 +01:00
src = fetchzip {
url = "https://dl.bintray.com/jbake/binary/${name}-bin.zip";
sha256 = "0zlh2azmv8gj3c4d4ndivar31wd42nmvhxq6xhn09cib9kffxbc7";
2017-12-29 03:24:47 +01:00
};
2017-12-27 02:06:19 +01:00
buildInputs = [ makeWrapper jre ];
2017-12-27 02:06:19 +01:00
2017-12-29 03:24:47 +01:00
installPhase = ''
mkdir -p $out
cp -vr * $out
wrapProgram $out/bin/jbake --set JAVA_HOME "${jre}"
2017-12-29 03:24:47 +01:00
'';
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 = "https://jbake.org/";
2017-12-29 03:24:47 +01:00
license = licenses.mit;
maintainers = with maintainers; [ moaxcp ];
};
2017-12-27 02:06:19 +01:00
}