3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/jbake/default.nix
Ryan Mulligan b189247ba0 treewide: use more HTTPS URLs
Uses the HTTPS url for cases where the existing URL has a permanent
redirect. For each domain, at least one fixed derivation URL was
downloaded to test the domain is properly serving downloads.

Also fixes jbake source URL, which was broken.
2018-03-24 22:04:25 -07:00

27 lines
680 B
Nix

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