Merge master into staging-next

This commit is contained in:
Frederik Rietdijk 2020-04-21 19:59:56 +02:00
commit 23be4a8b4d
141 changed files with 481 additions and 484 deletions

View File

@ -1290,32 +1290,9 @@ self: super: {
### How to use Intel's MKL with numpy and scipy? ### How to use Intel's MKL with numpy and scipy?
A `site.cfg` is created that configures BLAS based on the `blas` parameter of MKL can be configured using an overlay. See the section “[Using
the `numpy` derivation. By passing in `mkl`, `numpy` and packages depending on overlays to configure
`numpy` will be built with `mkl`. alternatives](#sec-overlays-alternatives-blas-lapack)”.
The following is an overlay that configures `numpy` to use `mkl`:
```nix
self: super: {
python37 = super.python37.override {
packageOverrides = python-self: python-super: {
numpy = python-super.numpy.override {
blas = super.pkgs.mkl;
};
};
};
}
```
`mkl` requires an `openmp` implementation when running with multiple processors.
By default, `mkl` will use Intel's `iomp` implementation if no other is
specified, but this is a runtime-only dependency and binary compatible with the
LLVM implementation. To use that one instead, Intel recommends users set it with
`LD_PRELOAD`.
Note that `mkl` is only available on `x86_64-{linux,darwin}` platforms;
moreover, Hydra is not building and distributing pre-compiled binaries using it.
### What inputs do `setup_requires`, `install_requires` and `tests_require` map to? ### What inputs do `setup_requires`, `install_requires` and `tests_require` map to?

View File

@ -137,4 +137,118 @@ self: super:
Overlays are similar to other methods for customizing Nixpkgs, in particular the <literal>packageOverrides</literal> attribute described in <xref linkend="sec-modify-via-packageOverrides"/>. Indeed, <literal>packageOverrides</literal> acts as an overlay with only the <varname>super</varname> argument. It is therefore appropriate for basic use, but overlays are more powerful and easier to distribute. Overlays are similar to other methods for customizing Nixpkgs, in particular the <literal>packageOverrides</literal> attribute described in <xref linkend="sec-modify-via-packageOverrides"/>. Indeed, <literal>packageOverrides</literal> acts as an overlay with only the <varname>super</varname> argument. It is therefore appropriate for basic use, but overlays are more powerful and easier to distribute.
</para> </para>
</section> </section>
<section xml:id="sec-overlays-alternatives">
<title>Using overlays to configure alternatives</title>
<para>
Certain software has different implementations of the same
interface. Other distributions have functionality to switch
between these. For example, Debian provides <link
xlink:href="https://wiki.debian.org/DebianAlternatives">DebianAlternatives</link>.
Nixpkgs has what we call <literal>alternatives</literal>, which
are configured through overlays.
</para>
<section xml:id="sec-overlays-alternatives-blas-lapack">
<title>BLAS/LAPACK</title>
<para>
In Nixpkgs, we have multiple implementations of the BLAS/LAPACK
numerical linear algebra interfaces. They are:
</para>
<itemizedlist>
<listitem>
<para>
<link xlink:href="https://www.openblas.net/">OpenBLAS</link>
</para>
<para>
The Nixpkgs attribute is <literal>openblas</literal> for
ILP64 and <literal>openblasCompat</literal> for LP64. This
is the default.
</para>
</listitem>
<listitem>
<para>
<link xlink:href="http://www.netlib.org/lapack/">LAPACK
reference</link> (also provides BLAS)
</para>
<para>
The Nixpkgs attribute is <literal>lapack-reference</literal>.
</para>
</listitem>
<listitem>
<para>
<link
xlink:href="https://software.intel.com/en-us/mkl">Intel
MKL</link> (only works on x86 architecture, unfree)
</para>
<para>
The Nixpkgs attribute is <literal>mkl</literal>.
</para>
</listitem>
</itemizedlist>
<para>
Introduced in <link
xlink:href="https://github.com/NixOS/nixpkgs/pull/83888">PR
#83888</link>, we are able to override the blas and lapack
packages to use different implementations, through the
blasProvider and lapackProvider argument. This can be used
to select a different provider. For example, an overlay can be
created that looks like:
</para>
<programlisting>
self: super:
{
blas = super.blas.override {
blasProvider = self.mkl;
}
lapack = super.lapack.override {
lapackProvider = self.mkl;
}
}
</programlisting>
<para>
This overlay uses Intels MKL library for both BLAS and LAPACK
interfaces. Note that the same can be accomplished at runtime
using <literal>LD_PRELOAD</literal> of libblas.so.3 and
liblapack.so.3.
</para>
<para>
Intel MKL requires an <literal>openmp</literal> implementation
when running with multiple processors. By default,
<literal>mkl</literal> will use Intels <literal>iomp</literal>
implementation if no other is specified, but this is a
runtime-only dependency and binary compatible with the LLVM
implementation. To use that one instead, Intel recommends users
set it with <literal>LD_PRELOAD</literal>. Note that
<literal>mkl</literal> is only available on
<literal>x86_64-linux</literal> and
<literal>x86_64-darwin</literal>. Moreover, Hydra is not build
and distributing pre-compiled binaries using it.
</para>
<para>
For BLAS/LAPACK switching to work correctly, all packages must
depend on <literal>blas</literal> or <literal>lapack</literal>.
This ensures that only one BLAS/LAPACK library is used at one
time. There are two versions versions of BLAS/LAPACK currently
in the wild, <literal>LP64</literal> (integer size = 32 bits)
and <literal>ILP64</literal> (integer size = 64 bits). Some
software needs special flags or patches to work with
<literal>ILP64</literal>. You can check if
<literal>ILP64</literal> is used in Nixpkgs with
<varname>blas.isILP64</varname> and
<varname>lapack.isILP64</varname>. Some software does NOT work
with <literal>ILP64</literal>, and derivations need to specify
an assertion to prevent this. You can prevent
<literal>ILP64</literal> from being used with the following:
</para>
<programlisting>
{ stdenv, blas, lapack, ... }:
assert (!blas.isILP64) &amp;&amp; (!lapack.isILP64);
stdenv.mkDerivation {
...
}
</programlisting>
</section>
</section>
</chapter> </chapter>

View File

@ -111,10 +111,10 @@ in
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
# Select internationalisation properties. # Select internationalisation properties.
# i18n = { # i18n.defaultLocale = "en_US.UTF-8";
# consoleFont = "Lat2-Terminus16"; # console = {
# consoleKeyMap = "us"; # font = "Lat2-Terminus16";
# defaultLocale = "en_US.UTF-8"; # keyMap = "us";
# }; # };
# Set your time zone. # Set your time zone.

View File

@ -8,6 +8,7 @@ in {
options = { options = {
programs.cdemu = { programs.cdemu = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
<command>cdemu</command> for members of <command>cdemu</command> for members of

View File

@ -8,6 +8,7 @@ in {
options = { options = {
programs.criu = { programs.criu = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Install <command>criu</command> along with necessary kernel options. Install <command>criu</command> along with necessary kernel options.

View File

@ -8,6 +8,7 @@ in {
options = { options = {
programs.systemtap = { programs.systemtap = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Install <command>systemtap</command> along with necessary kernel options. Install <command>systemtap</command> along with necessary kernel options.

View File

@ -39,6 +39,7 @@ in
options = { options = {
programs.zsh.ohMyZsh = { programs.zsh.ohMyZsh = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable oh-my-zsh. Enable oh-my-zsh.

View File

@ -17,6 +17,7 @@ in {
options = { options = {
services.rabbitmq = { services.rabbitmq = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable the RabbitMQ server, an Advanced Message Whether to enable the RabbitMQ server, an Advanced Message

View File

@ -37,12 +37,7 @@ in
services.mysqlBackup = { services.mysqlBackup = {
enable = mkOption { enable = mkEnableOption "MySQL backups";
default = false;
description = ''
Whether to enable MySQL backups.
'';
};
calendar = mkOption { calendar = mkOption {
type = types.str; type = types.str;

View File

@ -44,12 +44,7 @@ in {
options = { options = {
services.postgresqlBackup = { services.postgresqlBackup = {
enable = mkOption { enable = mkEnableOption "PostgreSQL dumps";
default = false;
description = ''
Whether to enable PostgreSQL dumps.
'';
};
startAt = mkOption { startAt = mkOption {
default = "*-*-* 01:15:00"; default = "*-*-* 01:15:00";

View File

@ -11,10 +11,7 @@ with lib;
services.clickhouse = { services.clickhouse = {
enable = mkOption { enable = mkEnableOption "ClickHouse database server";
default = false;
description = "Whether to enable ClickHouse database server.";
};
}; };

View File

@ -40,12 +40,7 @@ in
services.firebird = { services.firebird = {
enable = mkOption { enable = mkEnableOption "the Firebird super server";
default = false;
description = ''
Whether to enable the Firebird super server.
'';
};
package = mkOption { package = mkOption {
default = pkgs.firebirdSuper; default = pkgs.firebirdSuper;

View File

@ -18,12 +18,7 @@ in
services.memcached = { services.memcached = {
enable = mkOption { enable = mkEnableOption "Memcached";
default = false;
description = "
Whether to enable Memcached.
";
};
user = mkOption { user = mkOption {
default = "memcached"; default = "memcached";

View File

@ -29,12 +29,7 @@ in
services.mongodb = { services.mongodb = {
enable = mkOption { enable = mkEnableOption "the MongoDB server";
default = false;
description = "
Whether to enable the MongoDB server.
";
};
package = mkOption { package = mkOption {
default = pkgs.mongodb; default = pkgs.mongodb;

View File

@ -13,10 +13,7 @@ with lib;
services.virtuoso = { services.virtuoso = {
enable = mkOption { enable = mkEnableOption "Virtuoso Opensource database server";
default = false;
description = "Whether to enable Virtuoso Opensource database server.";
};
config = mkOption { config = mkOption {
default = ""; default = "";

View File

@ -10,12 +10,7 @@ in
options = { options = {
services.ratbagd = { services.ratbagd = {
enable = mkOption { enable = mkEnableOption "ratbagd for configuring gaming mice";
default = false;
description = ''
Whether to enable ratbagd for configuring gaming mice.
'';
};
}; };
}; };

View File

@ -8,12 +8,7 @@ in {
###### interface ###### interface
options = { options = {
services.thermald = { services.thermald = {
enable = mkOption { enable = mkEnableOption "thermald, the temperature management daemon";
default = false;
description = ''
Whether to enable thermald, the temperature management daemon.
'';
};
debug = mkOption { debug = mkOption {
type = types.bool; type = types.bool;

View File

@ -12,10 +12,7 @@ in
options = { options = {
services.spamassassin = { services.spamassassin = {
enable = mkOption { enable = mkEnableOption "the SpamAssassin daemon";
default = false;
description = "Whether to run the SpamAssassin daemon";
};
debug = mkOption { debug = mkOption {
default = false; default = false;

View File

@ -19,6 +19,7 @@ in
services.autofs = { services.autofs = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Mount filesystems on demand. Unmount them automatically. Mount filesystems on demand. Unmount them automatically.

View File

@ -31,13 +31,7 @@ in
services.cgminer = { services.cgminer = {
enable = mkOption { enable = mkEnableOption "cgminer, an ASIC/FPGA/GPU miner for bitcoin and litecoin";
default = false;
description = ''
Whether to enable cgminer, an ASIC/FPGA/GPU miner for bitcoin and
litecoin.
'';
};
package = mkOption { package = mkOption {
default = pkgs.cgminer; default = pkgs.cgminer;

View File

@ -8,12 +8,7 @@ let
in { in {
options = { options = {
services.devmon = { services.devmon = {
enable = mkOption { enable = mkEnableOption "devmon, an automatic device mounting daemon";
default = false;
description = ''
Whether to enable devmon, an automatic device mounting daemon.
'';
};
}; };
}; };

View File

@ -17,10 +17,7 @@ in
services.disnix = { services.disnix = {
enable = mkOption { enable = mkEnableOption "Disnix";
default = false;
description = "Whether to enable Disnix";
};
enableMultiUser = mkOption { enableMultiUser = mkOption {
type = types.bool; type = types.bool;

View File

@ -17,10 +17,7 @@ in
services.felix = { services.felix = {
enable = mkOption { enable = mkEnableOption "the Apache Felix OSGi service";
default = false;
description = "Whether to enable the Apache Felix OSGi service";
};
bundles = mkOption { bundles = mkOption {
type = types.listOf types.package; type = types.listOf types.package;

View File

@ -15,6 +15,7 @@ in
options = { options = {
services.ihaskell = { services.ihaskell = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Autostart an IHaskell notebook service."; description = "Autostart an IHaskell notebook service.";
}; };

View File

@ -16,10 +16,7 @@ in
services.safeeyes = { services.safeeyes = {
enable = mkOption { enable = mkEnableOption "the safeeyes OSGi service";
default = false;
description = "Whether to enable the safeeyes OSGi service";
};
}; };

View File

@ -18,6 +18,7 @@ in
services.svnserve = { services.svnserve = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Whether to enable svnserve to serve Subversion repositories through the SVN protocol."; description = "Whether to enable svnserve to serve Subversion repositories through the SVN protocol.";
}; };

View File

@ -19,12 +19,8 @@ in
# !!! All these option descriptions needs to be cleaned up. # !!! All these option descriptions needs to be cleaned up.
client = { client = {
enable = mkOption { enable = mkEnableOption "the Synergy client (receive keyboard and mouse events from a Synergy server)";
default = false;
description = "
Whether to enable the Synergy client (receive keyboard and mouse events from a Synergy server).
";
};
screenName = mkOption { screenName = mkOption {
default = ""; default = "";
description = '' description = ''
@ -47,12 +43,8 @@ in
}; };
server = { server = {
enable = mkOption { enable = mkEnableOption "the Synergy server (send keyboard and mouse events)";
default = false;
description = ''
Whether to enable the Synergy server (send keyboard and mouse events).
'';
};
configFile = mkOption { configFile = mkOption {
default = "/etc/synergy-server.conf"; default = "/etc/synergy-server.conf";
description = "The Synergy server configuration file."; description = "The Synergy server configuration file.";

View File

@ -43,10 +43,7 @@ in
options = { options = {
services.netatalk = { services.netatalk = {
enable = mkOption { enable = mkEnableOption "the Netatalk AFP fileserver";
default = false;
description = "Whether to enable the Netatalk AFP fileserver.";
};
port = mkOption { port = mkOption {
default = 548; default = 548;
@ -65,6 +62,7 @@ in
homes = { homes = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Enable sharing of the UNIX server user home directories."; description = "Enable sharing of the UNIX server user home directories.";
}; };

View File

@ -29,10 +29,7 @@ in
options = { options = {
services.rsyncd = { services.rsyncd = {
enable = mkOption { enable = mkEnableOption "the rsync daemon";
default = false;
description = "Whether to enable the rsync daemon.";
};
motd = mkOption { motd = mkOption {
type = types.str; type = types.str;

View File

@ -100,11 +100,13 @@ in
dir = { dir = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = true; default = true;
description = '' description = ''
Whether to enable XtreemFS DIR service. Whether to enable XtreemFS DIR service.
''; '';
}; };
uuid = mkOption { uuid = mkOption {
example = "eacb6bab-f444-4ebf-a06a-3f72d7465e40"; example = "eacb6bab-f444-4ebf-a06a-3f72d7465e40";
description = '' description = ''
@ -218,11 +220,13 @@ in
mrc = { mrc = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = true; default = true;
description = '' description = ''
Whether to enable XtreemFS MRC service. Whether to enable XtreemFS MRC service.
''; '';
}; };
uuid = mkOption { uuid = mkOption {
example = "eacb6bab-f444-4ebf-a06a-3f72d7465e41"; example = "eacb6bab-f444-4ebf-a06a-3f72d7465e41";
description = '' description = ''
@ -354,11 +358,13 @@ in
osd = { osd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = true; default = true;
description = '' description = ''
Whether to enable XtreemFS OSD service. Whether to enable XtreemFS OSD service.
''; '';
}; };
uuid = mkOption { uuid = mkOption {
example = "eacb6bab-f444-4ebf-a06a-3f72d7465e42"; example = "eacb6bab-f444-4ebf-a06a-3f72d7465e42";
description = '' description = ''

View File

@ -21,6 +21,7 @@ in
services.yandex-disk = { services.yandex-disk = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = " description = "
Whether to enable Yandex-disk client. See https://disk.yandex.ru/ Whether to enable Yandex-disk client. See https://disk.yandex.ru/

View File

@ -16,6 +16,7 @@ in
services.amule = { services.amule = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to run the AMule daemon. You need to manually run "amuled --ec-config" to configure the service for the first time. Whether to run the AMule daemon. You need to manually run "amuled --ec-config" to configure the service for the first time.

View File

@ -35,12 +35,7 @@ in
services.babeld = { services.babeld = {
enable = mkOption { enable = mkEnableOption "the babeld network routing daemon";
default = false;
description = ''
Whether to run the babeld network routing daemon.
'';
};
interfaceDefaults = mkOption { interfaceDefaults = mkOption {
default = null; default = null;

View File

@ -68,12 +68,7 @@ in
services.bind = { services.bind = {
enable = mkOption { enable = mkEnableOption "BIND domain name server";
default = false;
description = "
Whether to enable BIND domain name server.
";
};
cacheNetworks = mkOption { cacheNetworks = mkOption {
default = ["127.0.0.0/24"]; default = ["127.0.0.0/24"];

View File

@ -48,6 +48,7 @@ in
services.bitlbee = { services.bitlbee = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to run the BitlBee IRC to other chat network gateway. Whether to run the BitlBee IRC to other chat network gateway.

View File

@ -33,12 +33,7 @@ in
options.services.cntlm = { options.services.cntlm = {
enable = mkOption { enable = mkEnableOption "cntlm, which starts a local proxy";
default = false;
description = ''
Whether to enable the cntlm, which start a local proxy.
'';
};
username = mkOption { username = mkOption {
description = '' description = ''

View File

@ -39,6 +39,7 @@ in
services.flashpolicyd = { services.flashpolicyd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = description =
'' ''

View File

@ -42,12 +42,8 @@ in
{ {
options = { options = {
services.gvpe = { services.gvpe = {
enable = mkOption { enable = lib.mkEnableOption "gvpe";
default = false;
description = ''
Whether to run gvpe
'';
};
nodename = mkOption { nodename = mkOption {
default = null; default = null;
description ='' description =''

View File

@ -49,6 +49,7 @@ in
services.hostapd = { services.hostapd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable putting a wireless interface into infrastructure mode, Enable putting a wireless interface into infrastructure mode,

View File

@ -36,12 +36,7 @@ in
services.ircdHybrid = { services.ircdHybrid = {
enable = mkOption { enable = mkEnableOption "IRCD";
default = false;
description = "
Enable IRCD.
";
};
serverName = mkOption { serverName = mkOption {
default = "hades.arpa"; default = "hades.arpa";

View File

@ -18,12 +18,8 @@ in
options = { options = {
services.mailpile = { services.mailpile = {
enable = mkOption { enable = mkEnableOption "Mailpile the mail client";
default = false;
description = "
Whether to enable Mailpile the mail client.
";
};
hostname = mkOption { hostname = mkOption {
default = "localhost"; default = "localhost";
description = "Listen to this hostname or ip."; description = "Listen to this hostname or ip.";

View File

@ -30,6 +30,7 @@ in
options = { options = {
services.chrony = { services.chrony = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to synchronise your machine's time using chrony. Whether to synchronise your machine's time using chrony.

View File

@ -40,6 +40,7 @@ in
services.ntp = { services.ntp = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to synchronise your machine's time using ntpd, as a peer in Whether to synchronise your machine's time using ntpd, as a peer in

View File

@ -9,12 +9,7 @@ with lib;
services.openfire = { services.openfire = {
enable = mkOption { enable = mkEnableOption "OpenFire XMPP server";
default = false;
description = "
Whether to enable OpenFire XMPP server.
";
};
usePostgreSQL = mkOption { usePostgreSQL = mkOption {
default = true; default = true;

View File

@ -41,12 +41,7 @@ in
services.prayer = { services.prayer = {
enable = mkOption { enable = mkEnableOption "the prayer webmail http server";
default = false;
description = ''
Whether to run the prayer webmail http server.
'';
};
port = mkOption { port = mkOption {
default = "2080"; default = "2080";

View File

@ -16,12 +16,7 @@ in
services.quassel = { services.quassel = {
enable = mkOption { enable = mkEnableOption "the Quassel IRC client daemon";
default = false;
description = ''
Whether to run the Quassel IRC client daemon.
'';
};
certificateFile = mkOption { certificateFile = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;

View File

@ -19,6 +19,7 @@ in
options = { options = {
services.radvd.enable = mkOption { services.radvd.enable = mkOption {
type = types.bool;
default = false; default = false;
description = description =
'' ''

View File

@ -17,6 +17,7 @@ in
options = { options = {
services.rdnssd.enable = mkOption { services.rdnssd.enable = mkOption {
type = types.bool;
default = false; default = false;
#default = config.networking.enableIPv6; #default = config.networking.enableIPv6;
description = description =

View File

@ -15,10 +15,8 @@ in
options = { options = {
services.sabnzbd = { services.sabnzbd = {
enable = mkOption { enable = mkEnableOption "the sabnzbd server";
default = false;
description = "Whether to enable the sabnzbd server.";
};
configFile = mkOption { configFile = mkOption {
default = "/var/lib/sabnzbd/sabnzbd.ini"; default = "/var/lib/sabnzbd/sabnzbd.ini";
description = "Path to config file."; description = "Path to config file.";

View File

@ -17,6 +17,7 @@ in
services.shairport-sync = { services.shairport-sync = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable the shairport-sync daemon. Enable the shairport-sync daemon.

View File

@ -19,6 +19,7 @@ in
services.lshd = { services.lshd = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable the GNU lshd SSH2 daemon, which allows Whether to enable the GNU lshd SSH2 daemon, which allows

View File

@ -44,12 +44,7 @@ in
options = { options = {
services.xinetd.enable = mkOption { services.xinetd.enable = mkEnableOption "the xinetd super-server daemon";
default = false;
description = ''
Whether to enable the xinetd super-server daemon.
'';
};
services.xinetd.extraDefaults = mkOption { services.xinetd.extraDefaults = mkOption {
default = ""; default = "";

View File

@ -10,12 +10,7 @@ in {
services.fprot = { services.fprot = {
updater = { updater = {
enable = mkOption { enable = mkEnableOption "automatic F-Prot virus definitions database updates";
default = false;
description = ''
Whether to enable automatic F-Prot virus definitions database updates.
'';
};
productData = mkOption { productData = mkOption {
description = '' description = ''

View File

@ -51,12 +51,7 @@ in
###### interface ###### interface
options = { options = {
services.kerberos_server = { services.kerberos_server = {
enable = mkOption { enable = lib.mkEnableOption "the kerberos authentification server";
default = false;
description = ''
Enable the kerberos authentification server.
'';
};
realms = mkOption { realms = mkOption {
type = types.attrsOf (types.submodule realm); type = types.attrsOf (types.submodule realm);

View File

@ -8,6 +8,7 @@ in {
options = { options = {
services.localtime = { services.localtime = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable <literal>localtime</literal>, simple daemon for keeping the system Enable <literal>localtime</literal>, simple daemon for keeping the system

View File

@ -10,6 +10,7 @@ in
options = { options = {
services.uptimed = { services.uptimed = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Enable <literal>uptimed</literal>, allowing you to track Enable <literal>uptimed</literal>, allowing you to track

View File

@ -24,6 +24,7 @@ in
services.jboss = { services.jboss = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Whether to enable JBoss. WARNING : this package is outdated and is known to have vulnerabilities."; description = "Whether to enable JBoss. WARNING : this package is outdated and is known to have vulnerabilities.";
}; };

View File

@ -23,6 +23,7 @@ in
options = { options = {
services.xserver.desktopManager.enlightenment.enable = mkOption { services.xserver.desktopManager.enlightenment.enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Enable the Enlightenment desktop environment."; description = "Enable the Enlightenment desktop environment.";
}; };

View File

@ -72,6 +72,7 @@ in
services.xserver.desktopManager.gnome3 = { services.xserver.desktopManager.gnome3 = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Enable Gnome 3 desktop manager."; description = "Enable Gnome 3 desktop manager.";
}; };

View File

@ -10,6 +10,7 @@ in
options = { options = {
services.xserver.desktopManager.kodi = { services.xserver.desktopManager.kodi = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = "Enable the kodi multimedia center."; description = "Enable the kodi multimedia center.";
}; };

View File

@ -15,6 +15,7 @@ in
options = { options = {
services.xserver.displayManager.startx = { services.xserver.displayManager.startx = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable the dummy "startx" pseudo-display manager, Whether to enable the dummy "startx" pseudo-display manager,

View File

@ -15,6 +15,7 @@ in
services.xserver.wacom = { services.xserver.wacom = {
enable = mkOption { enable = mkOption {
type = types.bool;
default = false; default = false;
description = '' description = ''
Whether to enable the Wacom touchscreen/digitizer/tablet. Whether to enable the Wacom touchscreen/digitizer/tablet.

View File

@ -20,11 +20,6 @@ let
else pkgs.lib.mapAttrs (n: v: removeMaintainers v) set else pkgs.lib.mapAttrs (n: v: removeMaintainers v) set
else set; else set;
allSupportedNixpkgs = builtins.removeAttrs (removeMaintainers (import ../pkgs/top-level/release.nix {
supportedSystems = supportedSystems ++ limitedSupportedSystems;
nixpkgs = nixpkgsSrc;
})) [ "unstable" ];
in rec { in rec {
nixos = removeMaintainers (import ./release.nix { nixos = removeMaintainers (import ./release.nix {

View File

@ -2,14 +2,14 @@
, usePulseAudio ? config.pulseaudio or false, libpulseaudio }: , usePulseAudio ? config.pulseaudio or false, libpulseaudio }:
let let
version = "0.4.11"; version = "0.4.12";
in stdenv.mkDerivation { in stdenv.mkDerivation {
pname = "openmpt123"; pname = "openmpt123";
inherit version; inherit version;
src = fetchurl { src = fetchurl {
url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"; url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz";
sha256 = "1g96bpwh419s429wb387lkmhjsn3ldsjrzrb8h9p3wva5z6943i6"; sha256 = "0q2yf9g6hcwvr2nk3zggkscyf0np6i03q2g7fx10i2kcdr3n9k8c";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -11,14 +11,14 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "apostrophe"; pname = "apostrophe";
version = "unstable-2020-03-29"; version = "2.2.0.2";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "somas"; owner = "somas";
repo = pname; repo = pname;
domain = "gitlab.gnome.org"; domain = "gitlab.gnome.org";
rev = "219fa8976e3b8a6f0cea15cfefe4e336423f2bdb"; rev = "v${version}";
sha256 = "192n5qs3x6rx62mqxd6wajwm453pns8kjyz5v3xc891an6bm1kqx"; sha256 = "13wvfkg0jw9mayd9ifzkqnhf8fmfjgr1lsj4niqbyrw130y9r9f6";
}; };
nativeBuildInputs = [ meson ninja cmake pkgconfig desktop-file-utils nativeBuildInputs = [ meson ninja cmake pkgconfig desktop-file-utils

View File

@ -11,8 +11,8 @@ let
archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz"; archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
sha256 = { sha256 = {
x86_64-linux = "15jg39hmlnicq0zrz77yar1bmn5y6gp2670dya2qm5klhva9hd0f"; x86_64-linux = "1n083pzp2dsz6z6rcl1ldcwhd4i03sjigdfslfardhc4v5lbvmv8";
x86_64-darwin = "1ghqhn46jpbj3is8q5zcj0biyc7gwinhiz3qdpcnf88ga2blcsz8"; x86_64-darwin = "1qk3gscyskf4fwc8i09afr3wsyd1lwwycx6rf02wwh4n9py50b20";
}.${system}; }.${system};
in in
callPackage ./generic.nix rec { callPackage ./generic.nix rec {
@ -21,7 +21,7 @@ in
# Please backport all compatible updates to the stable release. # Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem. # This is important for the extension ecosystem.
version = "1.44.1"; version = "1.44.2";
pname = "vscode"; pname = "vscode";
executableName = "code" + lib.optionalString isInsiders "-insiders"; executableName = "code" + lib.optionalString isInsiders "-insiders";

View File

@ -11,8 +11,8 @@ let
archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz"; archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";
sha256 = { sha256 = {
x86_64-linux = "16qwhnxpwarnwvlxwvy13g687g1cnfzysq16qkykkhqig0cnalmb"; x86_64-linux = "141hwj1a2bsgzpfk354dnnmg4ak00fss3xsgqplyk949pbk6v1af";
x86_64-darwin = "1p9qkbj59bfc0kn9fzg99gqxbzwxq297qxivxcjflsapd712s4vm"; x86_64-darwin = "0fi8nz1gayzw5dp6d3m7jsmij3jj4yjg5rk1s9w6falpgka76dm1";
}.${system}; }.${system};
sourceRoot = { sourceRoot = {
@ -27,7 +27,7 @@ in
# Please backport all compatible updates to the stable release. # Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem. # This is important for the extension ecosystem.
version = "1.44.1"; version = "1.44.2";
pname = "vscodium"; pname = "vscodium";
executableName = "codium"; executableName = "codium";

View File

@ -22,13 +22,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xournalpp"; pname = "xournalpp";
version = "1.0.17"; version = "1.0.18";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xournalpp"; owner = "xournalpp";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0xw2mcgnm4sa9hrhfgp669lfypw97drxjmz5w8i5whaprpvmkxzw"; sha256 = "0a9ygbmd4dwgck3k8wsrm2grynqa0adb12wwspzmzvpisbadffjy";
}; };
nativeBuildInputs = [ cmake gettext pkgconfig wrapGAppsHook ]; nativeBuildInputs = [ cmake gettext pkgconfig wrapGAppsHook ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "kanboard"; pname = "kanboard";
version = "1.2.13"; version = "1.2.14";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kanboard"; owner = "kanboard";
repo = "kanboard"; repo = "kanboard";
rev = "v${version}"; rev = "v${version}";
sha256 = "0mm5sx323v1rwykd1dhvk4d3ipgvgvi3wvhrlavbja3lgay3mdwk"; sha256 = "11bwajzidnyagdyip7i8rwni1f66acv0k4lybdm0mc4195anivjh";
}; };
dontBuild = true; dontBuild = true;

View File

@ -1,7 +1,7 @@
{ stdenv, lib, fetchurl, buildFHSUserEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, at-spi2-atk, icu, openssl, zlib }: { stdenv, lib, fetchurl, buildFHSUserEnv, makeDesktopItem, makeWrapper, atomEnv, libuuid, at-spi2-atk, icu, openssl, zlib }:
let let
pname = "sidequest"; pname = "sidequest";
version = "0.8.7"; version = "0.10.2";
desktopItem = makeDesktopItem rec { desktopItem = makeDesktopItem rec {
name = "SideQuest"; name = "SideQuest";
@ -16,7 +16,7 @@
src = fetchurl { src = fetchurl {
url = "https://github.com/the-expanse/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz"; url = "https://github.com/the-expanse/SideQuest/releases/download/v${version}/SideQuest-${version}.tar.xz";
sha256 = "1hbr6ml689zq4k3mzmn2xcn4r4dy717rgq3lgm32pzwgy5w92i2j"; sha256 = "1vfxn4gx5b138gj6nk4w3jlp2l56cqpb8hq2kn5mrf4dhjii8n88";
}; };
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];

View File

@ -1,22 +1,23 @@
{ stdenv, fetchFromGitHub, ocamlPackages }: { stdenv, fetchFromGitHub, ocamlPackages }:
assert stdenv.lib.versionAtLeast ocamlPackages.ocaml.version "4.02.2"; assert stdenv.lib.versionAtLeast ocamlPackages.ocaml.version "4.07";
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "jackline"; pname = "jackline";
version = "2019-08-08"; version = "unstable-2020-03-22";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hannesm"; owner = "hannesm";
repo = "jackline"; repo = "jackline";
rev = "b934594010a563ded9c0f436e3fab8f1cae29856"; rev = "52f84525c74c43e8d03fb1e6ff025ccb2699e4aa";
sha256 = "076h03jd970xlii90ax6kvgyq67g81gs30yvdzps366n7zzy3yfc"; sha256 = "0wir573ah1w16xzdn9rfwk3569zq4ff5frp0ywq70va4gdlb679c";
}; };
buildInputs = with ocamlPackages; [ buildInputs = with ocamlPackages; [
ocaml ocamlbuild findlib topkg ppx_sexp_conv ocaml ocamlbuild findlib topkg ppx_sexp_conv ppx_deriving
erm_xmpp tls nocrypto x509 ocaml_lwt otr astring erm_xmpp tls mirage-crypto mirage-crypto-pk x509 domain-name
ptime notty sexplib hex uutf ocaml_lwt otr astring ptime mtime notty sexplib hex uutf
dns-client base64
]; ];
buildPhase = "${ocamlPackages.topkg.run} build --pinned true"; buildPhase = "${ocamlPackages.topkg.run} build --pinned true";
@ -25,7 +26,7 @@ stdenv.mkDerivation {
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://github.com/hannesm/jackline"; homepage = "https://github.com/hannesm/jackline";
description = "Terminal-based XMPP client in OCaml"; description = "minimalistic secure XMPP client in OCaml";
license = licenses.bsd2; license = licenses.bsd2;
maintainers = with maintainers; [ sternenseemann ]; maintainers = with maintainers; [ sternenseemann ];
}; };

View File

@ -6,26 +6,15 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "psi-plus"; pname = "psi-plus";
version = "1.4.984"; version = "1.4.1086";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "psi-plus"; owner = "psi-plus";
repo = "psi-plus-snapshots"; repo = "psi-plus-snapshots";
rev = version; rev = version;
sha256 = "1nii2nfi37i6mn79xmygscmm8ax75ky244wxkzlga0ya8i8wfjh7"; sha256 = "0war4hbjs1m7ll6rvpl3lj44lb0p5fi0g2siinnxpjffz2ydi97p";
}; };
resources = fetchFromGitHub {
owner = "psi-plus";
repo = "resources";
rev = "2f1c12564f7506bf902a26040fdb47ead4df6b73";
sha256 = "1dgm9k052fq7f2bpx13kchg7sxb227dkn115lyspzvhnhprnypz2";
};
postUnpack = ''
cp -a "${resources}/iconsets" "$sourceRoot"
'';
cmakeFlags = [ cmakeFlags = [
"-DENABLE_PLUGINS=ON" "-DENABLE_PLUGINS=ON"
]; ];
@ -38,8 +27,6 @@ stdenv.mkDerivation rec {
libgcrypt libotr html-tidy libgpgerror libsignal-protocol-c libgcrypt libotr html-tidy libgpgerror libsignal-protocol-c
]; ];
enableParallelBuilding = true;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "XMPP (Jabber) client"; description = "XMPP (Jabber) client";
maintainers = with maintainers; [ orivej misuzu ]; maintainers = with maintainers; [ orivej misuzu ];

View File

@ -24,7 +24,7 @@
, gtk_engines , gtk_engines
, alsaLib , alsaLib
, zlib , zlib
, version ? "19.12.0" , version ? "20.04.0"
}: }:
let let
@ -71,7 +71,18 @@ let
x86hash = "07rfp90ksnvr8zv7ix7f0z6a59n48s7bd4kqbzilfwxgs4ddqmcy"; x86hash = "07rfp90ksnvr8zv7ix7f0z6a59n48s7bd4kqbzilfwxgs4ddqmcy";
x64suffix = "19"; x64suffix = "19";
x86suffix = "19"; x86suffix = "19";
homepage = "https://www.citrix.com/de-de/downloads/workspace-app/linux/workspace-app-for-linux-latest.html"; homepage = "https://www.citrix.com/downloads/workspace-app/legacy-workspace-app-for-linux/workspace-app-for-linux-1912.html";
};
"20.04.0" = {
major = "20";
minor = "04";
patch = "0";
x64hash = "E923592216F9541173846F932784E6C062CB09C9E8858219C7489607BF82A0FB";
x86hash = "A2E2E1882723DA6796E68916B3BB2B44DD575A83DEB03CA90A262F6C81B1A53F";
x64suffix = "21";
x86suffix = "21";
homepage = "https://www.citrix.com/downloads/workspace-app/linux/workspace-app-for-linux-latest.html";
}; };
}; };

View File

@ -19,7 +19,7 @@ let
maintainers = with maintainers; [ emmanuelrosa dtzWill kampka ]; maintainers = with maintainers; [ emmanuelrosa dtzWill kampka ];
}; };
version = "0.40.5"; version = "0.40.7";
in { in {
@ -30,7 +30,7 @@ in {
src = fetchurl { src = fetchurl {
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz"; url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.tar.xz";
sha256 = "02hmfgv8viy1hn2ix4b0gdzbcj7piddsmjdnb0b5hpwahqrikiyi"; sha256 = "0xi3bb0kbphbgpk2wlsad509g0hwwb259q2vkv0kgyr4i4wcyc1f";
}; };
# Fetch from source repo, no longer included in release. # Fetch from source repo, no longer included in release.
@ -78,7 +78,7 @@ in {
src = fetchurl { src = fetchurl {
url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz"; url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-server-${version}.tar.xz";
sha256 = "00b7qx2h26qrdhw2a7y0irhbr442yynnzpm1pz55hi33zpckbrc7"; sha256 = "15bspngnnbq6mhp1f82j9hccg0ymhm6i4rddpgz3n7dw5wxdj0sm";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -6,13 +6,13 @@
mkDerivation rec { mkDerivation rec {
pname = "stellarium"; pname = "stellarium";
version = "0.20.0"; version = "0.20.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Stellarium"; owner = "Stellarium";
repo = "stellarium"; repo = "stellarium";
rev = "v${version}"; rev = "v${version}";
sha256 = "1732dxkgyqd4xf0ry7v930vcbv60l8iry596869z1d47j2piibs4"; sha256 = "1x8svan03k1x9jwqflimbpj7jpg6mjrbz26bg1sbhsqdlc8rbhky";
}; };
nativeBuildInputs = [ cmake perl wrapQtAppsHook ]; nativeBuildInputs = [ cmake perl wrapQtAppsHook ];

View File

@ -4,8 +4,8 @@ let
hts-nim = fetchFromGitHub { hts-nim = fetchFromGitHub {
owner = "brentp"; owner = "brentp";
repo = "hts-nim"; repo = "hts-nim";
rev = "v0.2.14"; rev = "v0.3.4";
sha256 = "0d1z4b6mrppmz3hgkxd4wcy79w68icvhi7q7n3m2k17n8f3xbdx3"; sha256 = "0670phk1bq3l9j2zaa8i5wcpc5dyfrc0l2a6c21g0l2mmdczffa7";
}; };
docopt = fetchFromGitHub { docopt = fetchFromGitHub {
@ -17,13 +17,13 @@ let
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "mosdepth"; pname = "mosdepth";
version = "0.2.6"; version = "0.2.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "brentp"; owner = "brentp";
repo = "mosdepth"; repo = "mosdepth";
rev = "v${version}"; rev = "v${version}";
sha256 = "0i9pl9lsli3y84ygxanrr525gfg8fs9h481944cbzsmqmbldwvgk"; sha256 = "01gm9gj2x2zs4yx6wk761fi1papi7qr3gp4ln1kkn8n2f9y9h849";
}; };
buildInputs = [ nim ]; buildInputs = [ nim ];

View File

@ -2,7 +2,7 @@
, libyaml, libxc, fftw, blas, lapack, gsl, netcdf, arpack, autoreconfHook , libyaml, libxc, fftw, blas, lapack, gsl, netcdf, arpack, autoreconfHook
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "octopus"; pname = "octopus";

View File

@ -13,7 +13,7 @@
assert pythonSupport -> pythonPackages != null; assert pythonSupport -> pythonPackages != null;
assert opencvSupport -> opencv != null; assert opencvSupport -> opencv != null;
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
let let
pname = "shogun"; pname = "shogun";

View File

@ -9,7 +9,7 @@
, static ? false , static ? false
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "R-3.6.3"; name = "R-3.6.3";

View File

@ -5,7 +5,7 @@
}: }:
assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null; assert enableGUI -> libGLU != null && libGL != null && xorg != null && fltk != null;
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "giac${lib.optionalString enableGUI "-with-xcas"}"; pname = "giac${lib.optionalString enableGUI "-with-xcas"}";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg { stdenv, fetchurl, cmake, blas, lapack, gfortran, gmm, fltk, libjpeg
, zlib, libGL, libGLU, xorg, opencascade-occt }: , zlib, libGL, libGLU, xorg, opencascade-occt }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gmsh"; pname = "gmsh";

View File

@ -54,7 +54,7 @@
, less , less
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
# This generates a `sage-env` shell file that will be sourced by sage on startup. # This generates a `sage-env` shell file that will be sourced by sage on startup.
# It sets up various environment variables, telling sage where to find its # It sets up various environment variables, telling sage where to find its

View File

@ -23,7 +23,7 @@
}: }:
# lots of segfaults with (64 bit) blas # lots of segfaults with (64 bit) blas
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
# Wrapper that combined `sagelib` with `sage-env` to produce an actually # Wrapper that combined `sagelib` with `sage-env` to produce an actually
# executable sage. No tests are run yet and no documentation is built. # executable sage. No tests are run yet and no documentation is built.

View File

@ -53,7 +53,7 @@
, pplpy , pplpy
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
# This is the core sage python package. Everything else is just wrappers gluing # This is the core sage python package. Everything else is just wrappers gluing
# stuff together. It is not very useful on its own though, since it will not # stuff together. It is not very useful on its own though, since it will not

View File

@ -4,8 +4,8 @@
set -eu -o pipefail set -eu -o pipefail
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion git" | tr -d '"')" oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion git" | tr -d '"')"
latestTag="$(git ls-remote --tags --sort="v:refname" git://github.com/git/git.git | grep -v '\{\}' | grep -v '\-rc' | tail -1 | sed 's|^.*/v\(.*\)|\1|')" latestTag="$(git ls-remote --tags --sort="v:refname" https://github.com/git/git.git | grep -v '\{\}' | grep -v '\-rc' | tail -1 | sed 's|^.*/v\(.*\)|\1|')"
targetVersion="${1:-latestTag}" targetVersion="${1:-$latestTag}"
if [ ! "${oldVersion}" = "${targetVersion}" ]; then if [ ! "${oldVersion}" = "${targetVersion}" ]; then
update-source-version git "${targetVersion}" update-source-version git "${targetVersion}"

View File

@ -9,19 +9,19 @@ in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "dwm-status"; pname = "dwm-status";
version = "1.6.3"; version = "1.6.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Gerschtli"; owner = "Gerschtli";
repo = "dwm-status"; repo = "dwm-status";
rev = version; rev = version;
sha256 = "02sprsr7822ynkwpf3xdgmkdrgkw3vgijhlh65bayiv3b5lwb54n"; sha256 = "05dhd2gy7ysrnchdimrdd7jvzs1db9fyrk4ci7850jhrgavfd7c4";
}; };
nativeBuildInputs = [ makeWrapper pkgconfig ]; nativeBuildInputs = [ makeWrapper pkgconfig ];
buildInputs = [ dbus gdk-pixbuf libnotify xorg.libX11 ]; buildInputs = [ dbus gdk-pixbuf libnotify xorg.libX11 ];
cargoSha256 = "0xybd6110b29ghl66kxfs64704qlhnn9jb5vl7lfk9sv62cs564i"; cargoSha256 = "0zkbps8vsjcvy7x0sgb07kacszi57dlyq8j6ia6yy0jyqnvlaqa7";
postInstall = lib.optionalString (bins != []) '' postInstall = lib.optionalString (bins != []) ''
wrapProgram $out/bin/dwm-status --prefix "PATH" : "${stdenv.lib.makeBinPath bins}" wrapProgram $out/bin/dwm-status --prefix "PATH" : "${stdenv.lib.makeBinPath bins}"

View File

@ -1,7 +1,7 @@
{ lib, stdenv { lib, stdenv
, lapack-reference, openblasCompat, openblas , lapack-reference, openblasCompat, openblas
, is64bit ? false , isILP64 ? false
, blasProvider ? if is64bit then openblas else openblasCompat }: , blasProvider ? if isILP64 then openblas else openblasCompat }:
let let
blasFortranSymbols = [ blasFortranSymbols = [
@ -31,12 +31,12 @@ let
else stdenv.hostPlatform.extensions.sharedLibrary; else stdenv.hostPlatform.extensions.sharedLibrary;
is64bit = blasProvider.blas64 or false; isILP64 = blasProvider.blas64 or false;
blasImplementation = lib.getName blasProvider; blasImplementation = lib.getName blasProvider;
in in
assert is64bit -> (blasImplementation == "openblas" && blasProvider.blas64) || blasImplementation == "mkl"; assert isILP64 -> (blasImplementation == "openblas" && blasProvider.blas64) || blasImplementation == "mkl";
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "blas"; pname = "blas";
@ -49,7 +49,7 @@ stdenv.mkDerivation {
}; };
passthru = { passthru = {
inherit is64bit; inherit isILP64;
provider = blasProvider; provider = blasProvider;
implementation = blasImplementation; implementation = blasImplementation;
}; };
@ -58,6 +58,8 @@ stdenv.mkDerivation {
dontConfigure = true; dontConfigure = true;
unpackPhase = "src=$PWD"; unpackPhase = "src=$PWD";
dontPatchELF = true;
installPhase = ('' installPhase = (''
mkdir -p $out/lib $dev/include $dev/lib/pkgconfig mkdir -p $out/lib $dev/include $dev/lib/pkgconfig
@ -132,6 +134,8 @@ Libs: -L$out/lib -lcblas
EOF EOF
'' + stdenv.lib.optionalString (blasImplementation == "mkl") '' '' + stdenv.lib.optionalString (blasImplementation == "mkl") ''
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString is64bit "I"}LP64,GNU' > $out/nix-support/setup-hook echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
ln -s $out/lib/libblas${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
ln -sf ${blasProvider}/include/* $dev/include
''); '');
} }

View File

@ -1,7 +1,7 @@
{ lib, stdenv { lib, stdenv
, lapack-reference, openblasCompat, openblas , lapack-reference, openblasCompat, openblas
, is64bit ? false , isILP64 ? false
, lapackProvider ? if is64bit then openblas else openblasCompat }: , lapackProvider ? if isILP64 then openblas else openblasCompat }:
let let
@ -14,7 +14,7 @@ let
in in
assert is64bit -> (lapackImplementation == "openblas" && lapackProvider.blas64) || lapackImplementation == "mkl"; assert isILP64 -> (lapackImplementation == "openblas" && lapackProvider.blas64) || lapackImplementation == "mkl";
stdenv.mkDerivation { stdenv.mkDerivation {
pname = "lapack"; pname = "lapack";
@ -27,7 +27,7 @@ stdenv.mkDerivation {
}; };
passthru = { passthru = {
inherit is64bit; inherit isILP64;
provider = lapackProvider; provider = lapackProvider;
implementation = lapackImplementation; implementation = lapackImplementation;
}; };
@ -36,6 +36,8 @@ stdenv.mkDerivation {
dontConfigure = true; dontConfigure = true;
unpackPhase = "src=$PWD"; unpackPhase = "src=$PWD";
dontPatchELF = true;
installPhase = ('' installPhase = (''
mkdir -p $out/lib $dev/include $dev/lib/pkgconfig mkdir -p $out/lib $dev/include $dev/lib/pkgconfig
@ -106,6 +108,8 @@ Libs: -L$out/lib -llapacke
EOF EOF
'' + stdenv.lib.optionalString (lapackImplementation == "mkl") '' '' + stdenv.lib.optionalString (lapackImplementation == "mkl") ''
mkdir -p $out/nix-support mkdir -p $out/nix-support
echo 'export MKL_INTERFACE_LAYER=${lib.optionalString is64bit "I"}LP64,GNU' > $out/nix-support/setup-hook echo 'export MKL_INTERFACE_LAYER=${lib.optionalString isILP64 "I"}LP64,GNU' > $out/nix-support/setup-hook
ln -s $out/lib/liblapack${canonicalExtension} $out/lib/libmkl_rt${stdenv.hostPlatform.extensions.sharedLibrary}
ln -sf ${lapackProvider}/include/* $dev/include
''); '');
} }

View File

@ -52,7 +52,7 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp -rf jscomp lib ${bin_folder} vendor odoc_gen native bsb bsc bsrefmt $out cp -rf jscomp lib ${bin_folder} vendor odoc_gen native bsb bsc bsrefmt $out
mkdir $out/lib/ocaml mkdir -p $out/lib/ocaml
cp jscomp/runtime/js.* jscomp/runtime/*.cm* $out/lib/ocaml cp jscomp/runtime/js.* jscomp/runtime/*.cm* $out/lib/ocaml
cp jscomp/others/*.ml jscomp/others/*.mli jscomp/others/*.cm* $out/lib/ocaml cp jscomp/others/*.ml jscomp/others/*.mli jscomp/others/*.cm* $out/lib/ocaml
cp jscomp/stdlib-406/*.ml jscomp/stdlib-406/*.mli jscomp/stdlib-406/*.cm* $out/lib/ocaml cp jscomp/stdlib-406/*.ml jscomp/stdlib-406/*.mli jscomp/stdlib-406/*.cm* $out/lib/ocaml

View File

@ -4,14 +4,14 @@ let
in in
(build-bs-platform rec { (build-bs-platform rec {
inherit stdenv runCommand fetchFromGitHub ninja nodejs python3; inherit stdenv runCommand fetchFromGitHub ninja nodejs python3;
version = "7.2.0"; version = "7.3.1";
ocaml-version = "4.06.1"; ocaml-version = "4.06.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BuckleScript"; owner = "BuckleScript";
repo = "bucklescript"; repo = "bucklescript";
rev = version; rev = version;
sha256 = "1fsx7gvcp6rbqd0qf5fix02mbbmk9rgm09zbwjrx0lp5cjv3n2s4"; sha256 = "14vp6cl5ml7xb3pd0paqajb50qv62l8j5m8hi3b6fh0pm68j1yxd";
fetchSubmodules = true; fetchSubmodules = true;
}; };
}).overrideAttrs (attrs: { }).overrideAttrs (attrs: {

View File

@ -12,7 +12,7 @@
, CoreServices, ApplicationServices , CoreServices, ApplicationServices
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
with stdenv.lib; with stdenv.lib;
@ -88,7 +88,7 @@ stdenv.mkDerivation rec {
"SHELL=${stdenv.shell}" "SHELL=${stdenv.shell}"
"USE_SYSTEM_BLAS=1" "USE_SYSTEM_BLAS=1"
"USE_BLAS64=${if blas.is64bit then "1" else "0"}" "USE_BLAS64=${if blas.isILP64 then "1" else "0"}"
"USE_SYSTEM_LAPACK=1" "USE_SYSTEM_LAPACK=1"

View File

@ -22,7 +22,7 @@
with stdenv.lib; with stdenv.lib;
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
let let
dsfmtVersion = "2.2.3"; dsfmtVersion = "2.2.3";
@ -137,7 +137,7 @@ stdenv.mkDerivation rec {
"SHELL=${stdenv.shell}" "SHELL=${stdenv.shell}"
"USE_SYSTEM_BLAS=1" "USE_SYSTEM_BLAS=1"
"USE_BLAS64=${if blas.is64bit then "1" else "0"}" "USE_BLAS64=${if blas.isILP64 then "1" else "0"}"
"USE_SYSTEM_LAPACK=1" "USE_SYSTEM_LAPACK=1"

View File

@ -53,7 +53,7 @@
, darwin , darwin
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "5.2.0"; version = "5.2.0";
@ -125,12 +125,12 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
# See https://savannah.gnu.org/bugs/?50339 # See https://savannah.gnu.org/bugs/?50339
F77_INTEGER_8_FLAG = if blas.is64bit then "-fdefault-integer-8" else ""; F77_INTEGER_8_FLAG = if blas.isILP64 then "-fdefault-integer-8" else "";
configureFlags = [ configureFlags = [
"--with-blas=blas" "--with-blas=blas"
"--with-lapack=lapack" "--with-lapack=lapack"
(if blas.is64bit then "--enable-64" else "--disable-64") (if blas.isILP64 then "--enable-64" else "--disable-64")
] ]
++ (if stdenv.isDarwin then [ "--enable-link-all-dependencies" ] else [ ]) ++ (if stdenv.isDarwin then [ "--enable-link-all-dependencies" ] else [ ])
++ stdenv.lib.optionals enableReadline [ "--enable-readline" ] ++ stdenv.lib.optionals enableReadline [ "--enable-readline" ]

View File

@ -2,7 +2,7 @@
, gmpxx , gmpxx
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fflas-ffpack"; pname = "fflas-ffpack";

View File

@ -10,7 +10,7 @@
, withSage ? false # sage support , withSage ? false # sage support
}: }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "linbox"; pname = "linbox";

View File

@ -18,7 +18,7 @@ stdenv.mkDerivation {
-e 's,^LAPACK=.*,LAPACK=-L${lapack}/lib -llapack,' \ -e 's,^LAPACK=.*,LAPACK=-L${lapack}/lib -llapack,' \
Makeconf Makeconf
'' ''
+ stdenv.lib.optionalString blas.is64bit + stdenv.lib.optionalString blas.isILP64
'' ''
sed -i Makeconf -e '/^FFLAGS=.*/ s/$/-fdefault-integer-8/' sed -i Makeconf -e '/^FFLAGS=.*/ s/$/-fdefault-integer-8/'
''; '';

View File

@ -27,7 +27,7 @@ stdenv.mkDerivation {
cmakeFlags = [ cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
"-DINTERFACE64=${optionalString blas.is64bit "1"}" "-DINTERFACE64=${optionalString blas.isILP64 "1"}"
]; ];
preCheck = if stdenv.isDarwin then '' preCheck = if stdenv.isDarwin then ''

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, unzip, blas, lapack, gfortran }: { stdenv, fetchurl, unzip, blas, lapack, gfortran }:
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ipopt"; pname = "ipopt";

View File

@ -1,8 +1,4 @@
{ stdenv, fetchurl, cmake, gfortran, cudatoolkit, libpthreadstubs, lapack, blas { stdenv, fetchurl, cmake, gfortran, cudatoolkit, libpthreadstubs, lapack, blas }:
, mklSupport ? false, mkl ? null
}:
assert !mklSupport || mkl != null;
with stdenv.lib; with stdenv.lib;
@ -17,13 +13,10 @@ in stdenv.mkDerivation {
name = "magma-${version}.tar.gz"; name = "magma-${version}.tar.gz";
}; };
buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake ] buildInputs = [ gfortran cudatoolkit libpthreadstubs cmake lapack blas ];
++ (if mklSupport then [ mkl ] else [ lapack blas ]);
doCheck = false; doCheck = false;
MKLROOT = optionalString mklSupport mkl;
preConfigure = '' preConfigure = ''
export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++ export CC=${cudatoolkit.cc}/bin/gcc CXX=${cudatoolkit.cc}/bin/g++
''; '';

View File

@ -2,7 +2,7 @@
, gfortran, mpi, blas, lapack , gfortran, mpi, blas, lapack
} : } :
assert (!blas.is64bit) && (!lapack.is64bit); assert (!blas.isILP64) && (!lapack.isILP64);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "scalapack"; pname = "scalapack";

Some files were not shown because too many files have changed in this diff Show More