···288 }).config;
289 getSubOptions = prefix: (evalModules
290 { modules = opts'; inherit prefix;
291- # FIXME: hack to get shit to evaluate.
292- args = { name = ""; }; }).options;
000000000293 getSubModules = opts';
294 substSubModules = m: submodule m;
295 functor = (defaultFunctor name) // {
···288 }).config;
289 getSubOptions = prefix: (evalModules
290 { modules = opts'; inherit prefix;
291+ # This is a work-around due to the fact that some sub-modules,
292+ # such as the one included in an attribute set, expects a "args"
293+ # attribute to be given to the sub-module. As the option
294+ # evaluation does not have any specific attribute name, we
295+ # provide a default one for the documentation.
296+ #
297+ # This is mandatory as some option declaration might use the
298+ # "name" attribute given as argument of the submodule and use it
299+ # as the default of option declarations.
300+ args.name = "<name>";
301+ }).options;
302 getSubModules = opts';
303 substSubModules = m: submodule m;
304 functor = (defaultFunctor name) // {
-3
nixos/modules/security/acme.xml
···89 };
90}
91</programlisting>
92-93-<para>At the moment you still have to restart Nginx after the ACME
94-certs arrive.</para>
95</section>
96</chapter>
···572 rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
573 mkdir -p ${cfg.statePath}/config
574575- tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 > ${cfg.statePath}/config/gitlab_shell_secret
576577 # The uploads directory is hardcoded somewhere deep in rails. It is
578 # symlinked in the gitlab package to /run/gitlab/uploads to make it
···619 fi
620621 # enable required pg_trgm extension for gitlab
622- ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
623 # Always do the db migrations just to be sure the database is up-to-date
624 ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
625···634635 # The gitlab:shell:create_hooks task seems broken for fixing links
636 # so we instead delete all the hooks and create them anew
637- rm ${cfg.statePath}/repositories/**/*.git/hooks
638 ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
639640 # Change permissions in the last step because some of the
···572 rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
573 mkdir -p ${cfg.statePath}/config
574575+ ${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
576577 # The uploads directory is hardcoded somewhere deep in rails. It is
578 # symlinked in the gitlab package to /run/gitlab/uploads to make it
···619 fi
620621 # enable required pg_trgm extension for gitlab
622+ ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
623 # Always do the db migrations just to be sure the database is up-to-date
624 ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
625···634635 # The gitlab:shell:create_hooks task seems broken for fixing links
636 # so we instead delete all the hooks and create them anew
637+ rm -f ${cfg.statePath}/repositories/**/*.git/hooks
638 ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
639640 # Change permissions in the last step because some of the
···14 buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
1516 configureScript = "./Configure";
17- configureFlags =
18- "--mt=pthread" +
19- "--with-gmp=${gmp.dev} " +
20- "--with-readline=${readline.dev}";
0000000002122- makeFlags = "all";
2324 meta = with stdenv.lib; {
25 description = "Computer algebra system for high-performance number theory computations";
···36 Bordeaux I, France), PARI is now under the GPL and maintained by Karim
37 Belabas with the help of many volunteer contributors.
3839- - PARI is a C library, allowing fast computations.
40 - gp is an easy-to-use interactive shell giving access to the
41 PARI functions.
42 - GP is the name of gp's scripting language.
43- - gp2c, the GP-to-C compiler, combines the best of both worlds
44- by compiling GP scripts to the C language and transparently loading
45 the resulting functions into gp. (gp2c-compiled scripts will typically
46 run 3 or 4 times faster.) gp2c currently only understands a subset
47 of the GP language.
···50 downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
51 license = licenses.gpl2Plus;
52 maintainers = with maintainers; [ ertes raskin AndersonTorres ];
53- platforms = platforms.linux;
54 updateWalker = true;
55 };
56}
···14 buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
1516 configureScript = "./Configure";
17+ configureFlags = [
18+ "--mt=pthread"
19+ "--with-gmp=${gmp.dev}"
20+ "--with-readline=${readline.dev}"
21+ ] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin";
22+23+ preConfigure = ''
24+ export LD=$CC
25+ '';
26+27+ postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
28+ echo 'echo x86_64-darwin' > config/arch-osname
29+ '';
3031+ makeFlags = [ "all" ];
3233 meta = with stdenv.lib; {
34 description = "Computer algebra system for high-performance number theory computations";
···45 Bordeaux I, France), PARI is now under the GPL and maintained by Karim
46 Belabas with the help of many volunteer contributors.
4748+ - PARI is a C library, allowing fast computations.
49 - gp is an easy-to-use interactive shell giving access to the
50 PARI functions.
51 - GP is the name of gp's scripting language.
52+ - gp2c, the GP-to-C compiler, combines the best of both worlds
53+ by compiling GP scripts to the C language and transparently loading
54 the resulting functions into gp. (gp2c-compiled scripts will typically
55 run 3 or 4 times faster.) gp2c currently only understands a subset
56 of the GP language.
···59 downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
60 license = licenses.gpl2Plus;
61 maintainers = with maintainers; [ ertes raskin AndersonTorres ];
62+ platforms = platforms.linux ++ platforms.darwin;
63 updateWalker = true;
64 };
65}