* Make system.fix a function of the high-level variation points in the
system. svn path=/nixpkgs/trunk/; revision=252
This commit is contained in:
parent
8aebc012a9
commit
5c88811954
@ -63,9 +63,10 @@ sub addPkg {
|
|||||||
|
|
||||||
foreach my $name (keys %ENV) {
|
foreach my $name (keys %ENV) {
|
||||||
|
|
||||||
next unless ($name =~ /^act.*$/);
|
next unless $name =~ /^act.*$/;
|
||||||
|
|
||||||
my $pkgdir = $ENV{$name};
|
my $pkgdir = $ENV{$name};
|
||||||
|
next unless $pkgdir =~ /^\//;
|
||||||
|
|
||||||
addPkg($pkgdir);
|
addPkg($pkgdir);
|
||||||
}
|
}
|
||||||
|
9
pkgs/system/system-template-everything.fix
Normal file
9
pkgs/system/system-template-everything.fix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Call(IncludeFix("system/system.fix"),
|
||||||
|
[ ("subversion", True)
|
||||||
|
, ("strategoxt", True)
|
||||||
|
, ("pan", True)
|
||||||
|
, ("mplayer", True)
|
||||||
|
, ("sylpheed", True)
|
||||||
|
, ("libxslt", True)
|
||||||
|
, ("docbook", True)
|
||||||
|
])
|
9
pkgs/system/system-template-server.fix
Normal file
9
pkgs/system/system-template-server.fix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Call(IncludeFix("system/system.fix"),
|
||||||
|
[ ("subversion", True)
|
||||||
|
, ("strategoxt", False)
|
||||||
|
, ("pan", False)
|
||||||
|
, ("mplayer", False)
|
||||||
|
, ("sylpheed", False)
|
||||||
|
, ("libxslt", False)
|
||||||
|
, ("docbook", False)
|
||||||
|
])
|
@ -1,22 +1,26 @@
|
|||||||
Package(
|
Function(["subversion", "strategoxt", "pan", "mplayer", "sylpheed", "libxslt", "docbook"],
|
||||||
[ ("name", "system")
|
Package(
|
||||||
, ("build", Relative("system/populate-linkdirs.pl"))
|
[ ("name", "system")
|
||||||
|
, ("build", Relative("system/populate-linkdirs.pl"))
|
||||||
|
|
||||||
, ("actSubversion",
|
, ("actSubversion",
|
||||||
Call(IncludeFix("subversion/subversion.fix"),
|
If(Var("subversion"),
|
||||||
[ ("localServer", True)
|
Call(IncludeFix("subversion/subversion.fix"),
|
||||||
, ("httpsClient", True)
|
[ ("localServer", True)
|
||||||
, ("httpServer", True)
|
, ("httpsClient", True)
|
||||||
, ("pythonBindings", True)
|
, ("httpServer", True)
|
||||||
]))
|
, ("pythonBindings", True)
|
||||||
|
]),
|
||||||
|
""))
|
||||||
|
|
||||||
, ("actStrategoXT", IncludeFix("strategoxt/strategoxt.fix"))
|
, ("actStrategoXT", If(Var("strategoxt"), IncludeFix("strategoxt/strategoxt.fix"), ""))
|
||||||
, ("actATerm", IncludeFix("aterm/aterm.fix"))
|
, ("actATerm", If(Var("strategoxt"), IncludeFix("aterm/aterm.fix"), ""))
|
||||||
, ("actPan", IncludeFix("pan/pan.fix"))
|
, ("actPan", If(Var("pan"), IncludeFix("pan/pan.fix"), ""))
|
||||||
, ("actMPlayer", IncludeFix("MPlayer/MPlayer.fix"))
|
, ("actMPlayer", If(Var("mplayer"), IncludeFix("MPlayer/MPlayer.fix"), ""))
|
||||||
, ("actSylpheed", IncludeFix("sylpheed/sylpheed.fix"))
|
, ("actSylpheed", If(Var("sylpheed"), IncludeFix("sylpheed/sylpheed.fix"), ""))
|
||||||
, ("actXslt", IncludeFix("libxslt/libxslt.fix"))
|
, ("actLibXslt", If(Var("libxslt"), IncludeFix("libxslt/libxslt.fix"), ""))
|
||||||
, ("actDocbookXml", IncludeFix("docbook-xml/docbook-xml.fix"))
|
, ("actDocbookXml", If(Var("docbook"), IncludeFix("docbook-xml/docbook-xml.fix"), ""))
|
||||||
, ("actDocbookXsl", IncludeFix("docbook-xsl/docbook-xsl.fix"))
|
, ("actDocbookXsl", If(Var("docbook"), IncludeFix("docbook-xsl/docbook-xsl.fix"), ""))
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
)
|
Loading…
Reference in New Issue
Block a user