jbake: cleanup

This commit is contained in:
Robin Gloster 2017-12-29 03:24:47 +01:00
parent 78d76e4b55
commit 5908726117
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF

View File

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