2017-02-28 14:12:45 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, python }:
|
2006-04-22 19:08:37 +01:00
|
|
|
|
2014-11-14 11:25:01 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clearsilver-0.10.5";
|
2014-06-22 21:51:14 +01:00
|
|
|
|
2006-05-07 22:58:31 +01:00
|
|
|
src = fetchurl {
|
2014-11-14 11:25:01 +00:00
|
|
|
url = "http://www.clearsilver.net/downloads/${name}.tar.gz";
|
|
|
|
sha256 = "1046m1dpq3nkgxbis2dr2x7hynmy51n64465q78d7pdgvqwa178y";
|
2006-05-07 22:58:31 +01:00
|
|
|
};
|
2014-06-22 21:51:14 +01:00
|
|
|
|
2017-02-28 14:12:45 +00:00
|
|
|
PYTHON_SITE = "$(out)/site-packages";
|
2006-04-22 19:08:37 +01:00
|
|
|
|
2017-02-28 14:12:45 +00:00
|
|
|
configureFlags = "--with-python=${python}/bin/python --disable-apache --disable-perl --disable-ruby --disable-java --disable-csharp";
|
2014-06-22 21:51:14 +01:00
|
|
|
|
2017-02-28 14:12:45 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out
|
|
|
|
mkdir -p $out/site-packages
|
|
|
|
'';
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/clang-gcc5.patch";
|
|
|
|
sha256 = "0d44v9jx0b6k8nvrhknd958i9rs59kdh73z0lb4f1mzi8if16c38";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/c/clearsilver/0.10.5-1.6/debian/patches/CVE-2011-4357.diff";
|
|
|
|
sha256 = "1lfncavxdqckrz03gv97lcliygbpi9lnih944vmdbn9zw6fwcipi";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-06-22 21:51:14 +01:00
|
|
|
description = "Fast, powerful, and language-neutral HTML template system";
|
|
|
|
homepage = http://www.clearsilver.net/;
|
2017-02-28 14:12:45 +00:00
|
|
|
license = licenses.free;
|
2014-06-22 21:51:14 +01:00
|
|
|
};
|
2006-04-22 19:08:37 +01:00
|
|
|
}
|