1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 16:42:09 +00:00
nixpkgs/pkgs/development/tools/jbake/default.nix

28 lines
790 B
Nix
Raw Normal View History

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