forked from mirrors/nixpkgs
Made ikiwiki work at least using 'git'. I tested the CGI this time.
I had to add some perl modules again. svn path=/nixpkgs/trunk/; revision=17838
This commit is contained in:
parent
ffe3d65986
commit
54a04a789a
|
@ -1,5 +1,7 @@
|
|||
{stdenv, fetchurl, perl, gettext, makeWrapper,
|
||||
TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate}:
|
||||
TextMarkdown, URI, HTMLParser, HTMLScrubber, HTMLTemplate, TimeDate,
|
||||
CGISession, CGIFormBuilder, DBFile,
|
||||
git}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "ikiwiki_3.20091009";
|
||||
|
@ -10,19 +12,22 @@ stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
buildInputs = [ perl TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate
|
||||
TimeDate gettext makeWrapper ];
|
||||
TimeDate gettext makeWrapper DBFile CGISession CGIFormBuilder ];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i s@/usr/bin/perl@${perl}/bin/perl@ pm_filter mdwn2man
|
||||
sed -i s@/etc/ikiwiki@$out/etc@ Makefile.PL
|
||||
sed -i /ENV{PATH}/d ikiwiki.in
|
||||
# State the gcc dependency, and make the cgi use our wrapper
|
||||
sed -i -e 's@$0@"'$out/bin/ikiwiki'"@' \
|
||||
-e "s@'cc'@'${stdenv.gcc}/bin/gcc'@" IkiWiki/Wrapper.pm
|
||||
'';
|
||||
|
||||
configurePhase = "perl Makefile.PL PREFIX=$out";
|
||||
|
||||
postInstall = ''
|
||||
for a in $out/bin/*; do
|
||||
wrapProgram $a --suffix PERL5LIB : $PERL5LIB --prefix PATH : ${perl}/bin:$out/bin
|
||||
wrapProgram $a --suffix PERL5LIB : $PERL5LIB --prefix PATH : ${perl}/bin:$out/bin:${git}/bin
|
||||
done
|
||||
'';
|
||||
|
||||
|
|
|
@ -7130,7 +7130,8 @@ let
|
|||
|
||||
ikiwiki = import ../applications/misc/ikiwiki {
|
||||
inherit fetchurl stdenv perl gettext makeWrapper;
|
||||
inherit (perlPackages) TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate TimeDate;
|
||||
inherit (perlPackages) TextMarkdown URI HTMLParser HTMLScrubber HTMLTemplate TimeDate CGISession DBFile CGIFormBuilder;
|
||||
inherit git; # The RCS should be optional
|
||||
};
|
||||
|
||||
imagemagick = import ../applications/graphics/ImageMagick {
|
||||
|
|
|
@ -453,14 +453,23 @@ rec {
|
|||
};
|
||||
};
|
||||
|
||||
CGISession = buildPerlPackage {
|
||||
name = "CGI-Session-3.95";
|
||||
CGIFormBuilder = buildPerlPackage rec {
|
||||
name = "CGI-FormBuilder-3.0501";
|
||||
src = fetchurl {
|
||||
url = mirror://cpan/authors/id/S/SH/SHERZODR/CGI-Session-3.95.tar.gz;
|
||||
md5 = "fe9e46496c7c711c54ca13209ded500b";
|
||||
url = "mirror://cpan/authors/id/N/NW/NWIGER/${name}.tgz";
|
||||
sha256 = "031sgxifl2dq8d4s4d9vnixvqdd3p952k0jrkyqp823k74glps25";
|
||||
};
|
||||
};
|
||||
|
||||
CGISession = buildPerlPackage rec {
|
||||
name = "CGI-Session-4.42";
|
||||
src = fetchurl {
|
||||
url = "mirror://cpan/authors/id/M/MA/MARKSTOS/${name}.tar.gz";
|
||||
sha256 = "186lqqmfvisw3i74anvnsaqlbp6ww3wyhlsgdpni0mlcnh56h4gw";
|
||||
};
|
||||
buildInputs = [ DBFile ];
|
||||
};
|
||||
|
||||
CGISimple = buildPerlPackage {
|
||||
name = "CGI-Simple-1.106";
|
||||
src = fetchurl {
|
||||
|
|
Loading…
Reference in a new issue