···288288 }).config;
289289 getSubOptions = prefix: (evalModules
290290 { modules = opts'; inherit prefix;
291291- # FIXME: hack to get shit to evaluate.
292292- args = { name = ""; }; }).options;
291291+ # This is a work-around due to the fact that some sub-modules,
292292+ # such as the one included in an attribute set, expects a "args"
293293+ # attribute to be given to the sub-module. As the option
294294+ # evaluation does not have any specific attribute name, we
295295+ # provide a default one for the documentation.
296296+ #
297297+ # This is mandatory as some option declaration might use the
298298+ # "name" attribute given as argument of the submodule and use it
299299+ # as the default of option declarations.
300300+ args.name = "<name>";
301301+ }).options;
293302 getSubModules = opts';
294303 substSubModules = m: submodule m;
295304 functor = (defaultFunctor name) // {
-3
nixos/modules/security/acme.xml
···8989 };
9090}
9191</programlisting>
9292-9393-<para>At the moment you still have to restart Nginx after the ACME
9494-certs arrive.</para>
9592</section>
9693</chapter>
+3-3
nixos/modules/services/misc/gitlab.nix
···572572 rm -rf ${cfg.statePath}/config ${cfg.statePath}/shell/hooks
573573 mkdir -p ${cfg.statePath}/config
574574575575- tr -dc A-Za-z0-9 < /dev/urandom | head -c 32 > ${cfg.statePath}/config/gitlab_shell_secret
575575+ ${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
576576577577 # The uploads directory is hardcoded somewhere deep in rails. It is
578578 # symlinked in the gitlab package to /run/gitlab/uploads to make it
···619619 fi
620620621621 # enable required pg_trgm extension for gitlab
622622- ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql gitlab -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
622622+ ${pkgs.sudo}/bin/sudo -u ${pgSuperUser} psql ${cfg.databaseName} -c "CREATE EXTENSION IF NOT EXISTS pg_trgm"
623623 # Always do the db migrations just to be sure the database is up-to-date
624624 ${gitlab-rake}/bin/gitlab-rake db:migrate RAILS_ENV=production
625625···634634635635 # The gitlab:shell:create_hooks task seems broken for fixing links
636636 # so we instead delete all the hooks and create them anew
637637- rm ${cfg.statePath}/repositories/**/*.git/hooks
637637+ rm -f ${cfg.statePath}/repositories/**/*.git/hooks
638638 ${gitlab-rake}/bin/gitlab-rake gitlab:shell:create_hooks RAILS_ENV=production
639639640640 # Change permissions in the last step because some of the
···1414 buildInputs = [ gmp readline libX11 libpthreadstubs tex perl ];
15151616 configureScript = "./Configure";
1717- configureFlags =
1818- "--mt=pthread" +
1919- "--with-gmp=${gmp.dev} " +
2020- "--with-readline=${readline.dev}";
1717+ configureFlags = [
1818+ "--mt=pthread"
1919+ "--with-gmp=${gmp.dev}"
2020+ "--with-readline=${readline.dev}"
2121+ ] ++ stdenv.lib.optional stdenv.isDarwin "--host=x86_64-darwin";
2222+2323+ preConfigure = ''
2424+ export LD=$CC
2525+ '';
2626+2727+ postConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
2828+ echo 'echo x86_64-darwin' > config/arch-osname
2929+ '';
21302222- makeFlags = "all";
3131+ makeFlags = [ "all" ];
23322433 meta = with stdenv.lib; {
2534 description = "Computer algebra system for high-performance number theory computations";
···3645 Bordeaux I, France), PARI is now under the GPL and maintained by Karim
3746 Belabas with the help of many volunteer contributors.
38473939- - PARI is a C library, allowing fast computations.
4848+ - PARI is a C library, allowing fast computations.
4049 - gp is an easy-to-use interactive shell giving access to the
4150 PARI functions.
4251 - GP is the name of gp's scripting language.
4343- - gp2c, the GP-to-C compiler, combines the best of both worlds
4444- by compiling GP scripts to the C language and transparently loading
5252+ - gp2c, the GP-to-C compiler, combines the best of both worlds
5353+ by compiling GP scripts to the C language and transparently loading
4554 the resulting functions into gp. (gp2c-compiled scripts will typically
4655 run 3 or 4 times faster.) gp2c currently only understands a subset
4756 of the GP language.
···5059 downloadPage = "http://pari.math.u-bordeaux.fr/download.html";
5160 license = licenses.gpl2Plus;
5261 maintainers = with maintainers; [ ertes raskin AndersonTorres ];
5353- platforms = platforms.linux;
6262+ platforms = platforms.linux ++ platforms.darwin;
5463 updateWalker = true;
5564 };
5665}