2021-03-20 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, python2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-12-26 17:43:05 +00:00
|
|
|
pname = "clearsilver";
|
|
|
|
version = "0.10.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-26 17:43:05 +00:00
|
|
|
url = "http://www.clearsilver.net/downloads/clearsilver-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "1046m1dpq3nkgxbis2dr2x7hynmy51n64465q78d7pdgvqwa178y";
|
|
|
|
};
|
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
PYTHON_SITE = "${placeholder "out"}/${python2.sitePackages}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2021-03-20 04:20:00 +00:00
|
|
|
"--with-python=${python2.interpreter}"
|
2020-04-24 23:36:52 +00:00
|
|
|
"--disable-apache"
|
|
|
|
"--disable-perl"
|
|
|
|
"--disable-ruby"
|
|
|
|
"--disable-java"
|
|
|
|
"--disable-csharp"
|
|
|
|
];
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out
|
2021-03-20 04:20:00 +00:00
|
|
|
mkdir -p $out/${python2.sitePackages}
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast, powerful, and language-neutral HTML template system";
|
|
|
|
homepage = "http://www.clearsilver.net/";
|
|
|
|
license = licenses.free;
|
|
|
|
};
|
|
|
|
}
|