···408 from nixpkgs due to the lack of maintainers.
409 </para>
410 </listitem>
411- <listitem>
412- <para>
413- The <option>powerManagement.cpuFreqGovernor</option> option has been
414- aliased to <option>powerManagement.cpufreq.governor</option>. On laptops,
415- <option>powerManagement.cpuFreqGovernor</option> is sometimes set in
416- <literal>/etc/nixos/hardware-configuration.nix</literal>, so you can
417- rename it to the new name, or run
418- <literal>nixos-generate-config</literal> again.
419- </para>
420- </listitem>
421 </itemizedlist>
422 </section>
423</section>
···408 from nixpkgs due to the lack of maintainers.
409 </para>
410 </listitem>
0000000000411 </itemizedlist>
412 </section>
413</section>
···20 '';
2122 meta = with stdenv.lib; {
23- homepage = http://davmail.sourceforce.net/;
24 description = "A Java application which presents a Microsoft Exchange server as local CALDAV, IMAP and SMTP servers";
25 maintainers = [ maintainers.hinton ];
26 platforms = platforms.all;
···20 '';
2122 meta = with stdenv.lib; {
23+ homepage = http://davmail.sourceforge.net/;
24 description = "A Java application which presents a Microsoft Exchange server as local CALDAV, IMAP and SMTP servers";
25 maintainers = [ maintainers.hinton ];
26 platforms = platforms.all;
···112 # Set compiler for NVCC.
113 wrapProgram $out/bin/nvcc \
114 --prefix PATH : ${gcc}/bin
0000115 '' + lib.optionalString (lib.versionOlder version "8.0") ''
116 # Hack to fix building against recent Glibc/GCC.
117 echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
···112 # Set compiler for NVCC.
113 wrapProgram $out/bin/nvcc \
114 --prefix PATH : ${gcc}/bin
115+116+ # nvprof do not find any program to profile if LD_LIBRARY_PATH is not set
117+ wrapProgram $out/bin/nvprof \
118+ --prefix LD_LIBRARY_PATH : $out/lib
119 '' + lib.optionalString (lib.versionOlder version "8.0") ''
120 # Hack to fix building against recent Glibc/GCC.
121 echo "NIX_CFLAGS_COMPILE+=' -D_FORCE_INLINES'" >> $out/nix-support/setup-hook
···152let
153 inherit (stdenv) lib;
154155- # make sure a plugin is a derivation. If plugin already is a derivation, this
156- # is a no-op. If it is a string, it is looked up in knownPlugins.
0157 pluginToDrv = knownPlugins: plugin:
158- if builtins.isString plugin then
159- # make sure `pname` is set to that we are able to convert the derivation
160- # back to a string.
161- ( knownPlugins.${plugin} // { pname = plugin; })
162- else
163- plugin;
00000164165 # transitive closure of plugin dependencies (plugin needs to be a derivation)
166 transitiveClosure = plugin:
···169 );
170171 findDependenciesRecursively = plugins: lib.concatMap transitiveClosure plugins;
172-173- attrnamesToPlugins = { knownPlugins, names }:
174- map (name: if builtins.isString name then knownPlugins.${name} else name) knownPlugins;
175-176- pluginToAttrname = plugin:
177- plugin.pname;
178-179- pluginsToAttrnames = plugins: map pluginToAttrname plugins;
180181 vamDictToNames = x:
182 if builtins.isString x then [x]
···429 if vam != null && vam ? knownPlugins then vam.knownPlugins else
430 if pathogen != null && pathogen ? knownPlugins then pathogen.knownPlugins else
431 vimPlugins;
432- pathogenPlugins = findDependenciesRecursively ((map pluginToDrv knownPlugins) pathogen.pluginNames);
433 vamPlugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) (lib.concatMap vamDictToNames vam.pluginDictionaries));
434 nonNativePlugins = (lib.optionals (pathogen != null) pathogenPlugins)
435 ++ (lib.optionals (vam != null) vamPlugins)
···482 rev = "4c596548216b7c19971f8fc94e38ef1a2b55fee6";
483 sha256 = "0f1cpnp1nxb4i5hgymjn2yn3k1jwkqmlgw1g02sq270lavp2dzs9";
484 };
485- dependencies = [];
0486 };
487 });
488 vimrcConfig.vam.pluginDictionaries = [ { names = [ "vim-trailing-whitespace" ]; } ];
···152let
153 inherit (stdenv) lib;
154155+ # make sure a plugin is a derivation and its dependencies are derivations. If
156+ # plugin already is a derivation, this is a no-op. If it is a string, it is
157+ # looked up in knownPlugins.
158 pluginToDrv = knownPlugins: plugin:
159+ let
160+ drv =
161+ if builtins.isString plugin then
162+ # make sure `pname` is set to that we are able to convert the derivation
163+ # back to a string.
164+ ( knownPlugins.${plugin} // { pname = plugin; })
165+ else
166+ plugin;
167+ in
168+ # make sure all the dependencies of the plugin are also derivations
169+ drv // { dependencies = map (pluginToDrv knownPlugins) (drv.dependencies or []); };
170171 # transitive closure of plugin dependencies (plugin needs to be a derivation)
172 transitiveClosure = plugin:
···175 );
176177 findDependenciesRecursively = plugins: lib.concatMap transitiveClosure plugins;
00000000178179 vamDictToNames = x:
180 if builtins.isString x then [x]
···427 if vam != null && vam ? knownPlugins then vam.knownPlugins else
428 if pathogen != null && pathogen ? knownPlugins then pathogen.knownPlugins else
429 vimPlugins;
430+ pathogenPlugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) pathogen.pluginNames);
431 vamPlugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) (lib.concatMap vamDictToNames vam.pluginDictionaries));
432 nonNativePlugins = (lib.optionals (pathogen != null) pathogenPlugins)
433 ++ (lib.optionals (vam != null) vamPlugins)
···480 rev = "4c596548216b7c19971f8fc94e38ef1a2b55fee6";
481 sha256 = "0f1cpnp1nxb4i5hgymjn2yn3k1jwkqmlgw1g02sq270lavp2dzs9";
482 };
483+ # make sure string dependencies are handled
484+ dependencies = [ "vim-nix" ];
485 };
486 });
487 vimrcConfig.vam.pluginDictionaries = [ { names = [ "vim-trailing-whitespace" ]; } ];