jbake: cleanup
This commit is contained in:
parent
78d76e4b55
commit
5908726117
@ -1,27 +1,26 @@
|
||||
{stdenv, fetchurl, unzip, jre, ...}:
|
||||
{ stdenv, fetchzip, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.5.1";
|
||||
name = "jbake-${version}";
|
||||
src = fetchurl {
|
||||
url = "http://jbake.org/files/jbake-${version}-bin.zip";
|
||||
sha256="1r46y84q5x915055hx2vxydaqng3cz0clwz0yhwapgmi4sliygjd";
|
||||
};
|
||||
version = "2.5.1";
|
||||
name = "jbake-${version}";
|
||||
|
||||
buildInputs = [ unzip jre ];
|
||||
src = fetchzip {
|
||||
url = "http://jbake.org/files/jbake-${version}-bin.zip";
|
||||
sha256 = "1ib5gvz6sl7k0ywx22anhz69i40wc6jj5lxjxj2aa14qf4lrw912";
|
||||
};
|
||||
|
||||
unpackPhase = "unzip ${src}";
|
||||
buildInputs = [ jre ];
|
||||
|
||||
installPhase = ''
|
||||
substituteInPlace $name/bin/jbake --replace "java" "${jre}/bin/java"
|
||||
mkdir -p $out
|
||||
cp -r $name/* $out
|
||||
'';
|
||||
installPhase = ''
|
||||
substituteInPlace bin/jbake --replace "java" "${jre}/bin/java"
|
||||
mkdir -p $out
|
||||
cp -vr * $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];
|
||||
};
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user