Merge remote-tracking branch 'origin/master' into staging-next
Conflicts: pkgs/development/tools/rust/cargo-cache/default.nix pkgs/development/tools/rust/cargo-embed/default.nix pkgs/development/tools/rust/cargo-flash/default.nix pkgs/servers/nosql/influxdb2/default.nix
This commit is contained in:
commit
c227fb4b17
|
@ -50,3 +50,50 @@ Many more commands wrap `writeTextFile` including `writeText`, `writeTextDir`, `
|
||||||
## `symlinkJoin` {#trivial-builder-symlinkJoin}
|
## `symlinkJoin` {#trivial-builder-symlinkJoin}
|
||||||
|
|
||||||
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
|
This can be used to put many derivations into the same directory structure. It works by creating a new derivation and adding symlinks to each of the paths listed. It expects two arguments, `name`, and `paths`. `name` is the name used in the Nix store path for the created derivation. `paths` is a list of paths that will be symlinked. These paths can be to Nix store derivations or any other subdirectory contained within.
|
||||||
|
|
||||||
|
## `writeReferencesToFile` {#trivial-builder-writeReferencesToFile}
|
||||||
|
|
||||||
|
Writes the closure of transitive dependencies to a file.
|
||||||
|
|
||||||
|
This produces the equivalent of `nix-store -q --requisites`.
|
||||||
|
|
||||||
|
For example,
|
||||||
|
|
||||||
|
```nix
|
||||||
|
writeReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
|
||||||
|
```
|
||||||
|
|
||||||
|
produces an output path `/nix/store/<hash>-runtime-deps` containing
|
||||||
|
|
||||||
|
```nix
|
||||||
|
/nix/store/<hash>-hello-2.10
|
||||||
|
/nix/store/<hash>-hi
|
||||||
|
/nix/store/<hash>-libidn2-2.3.0
|
||||||
|
/nix/store/<hash>-libunistring-0.9.10
|
||||||
|
/nix/store/<hash>-glibc-2.32-40
|
||||||
|
```
|
||||||
|
|
||||||
|
You can see that this includes `hi`, the original input path,
|
||||||
|
`hello`, which is a direct reference, but also
|
||||||
|
the other paths that are indirectly required to run `hello`.
|
||||||
|
|
||||||
|
## `writeDirectReferencesToFile` {#trivial-builder-writeDirectReferencesToFile}
|
||||||
|
|
||||||
|
Writes the set of references to the output file, that is, their immediate dependencies.
|
||||||
|
|
||||||
|
This produces the equivalent of `nix-store -q --references`.
|
||||||
|
|
||||||
|
For example,
|
||||||
|
|
||||||
|
```nix
|
||||||
|
writeDirectReferencesToFile (writeScriptBin "hi" ''${hello}/bin/hello'')
|
||||||
|
```
|
||||||
|
|
||||||
|
produces an output path `/nix/store/<hash>-runtime-references` containing
|
||||||
|
|
||||||
|
```nix
|
||||||
|
/nix/store/<hash>-hello-2.10
|
||||||
|
```
|
||||||
|
|
||||||
|
but none of `hello`'s dependencies, because those are not referenced directly
|
||||||
|
by `hi`'s output.
|
||||||
|
|
|
@ -5,7 +5,7 @@ support for importing Dhall expressions, which is documented here:
|
||||||
|
|
||||||
* [`dhall-lang.org` - Installing packages](https://docs.dhall-lang.org/tutorials/Language-Tour.html#installing-packages)
|
* [`dhall-lang.org` - Installing packages](https://docs.dhall-lang.org/tutorials/Language-Tour.html#installing-packages)
|
||||||
|
|
||||||
## Remote imports
|
## Remote imports {#ssec-dhall-remote-imports}
|
||||||
|
|
||||||
Nixpkgs bypasses Dhall's support for remote imports using Dhall's
|
Nixpkgs bypasses Dhall's support for remote imports using Dhall's
|
||||||
semantic integrity checks. Specifically, any Dhall import can be protected by
|
semantic integrity checks. Specifically, any Dhall import can be protected by
|
||||||
|
@ -32,7 +32,7 @@ example, the Prelude Dhall package uses `pkgs.fetchFromGitHub` to fetch the
|
||||||
to fetch Dhall code ensures that Dhall packages built using Nix remain pure and
|
to fetch Dhall code ensures that Dhall packages built using Nix remain pure and
|
||||||
also behave well when built within a sandbox.
|
also behave well when built within a sandbox.
|
||||||
|
|
||||||
## Packaging a Dhall expression from scratch
|
## Packaging a Dhall expression from scratch {#ssec-dhall-packaging-expression}
|
||||||
|
|
||||||
We can illustrate how Nixpkgs integrates Dhall by beginning from the following
|
We can illustrate how Nixpkgs integrates Dhall by beginning from the following
|
||||||
trivial Dhall expression with one dependency (the Prelude):
|
trivial Dhall expression with one dependency (the Prelude):
|
||||||
|
@ -117,7 +117,7 @@ in
|
||||||
$ nix build --file ./example.nix dhallPackages.true
|
$ nix build --file ./example.nix dhallPackages.true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contents of a Dhall package
|
## Contents of a Dhall package {#ssec-dhall-package-contents}
|
||||||
|
|
||||||
The above package produces the following directory tree:
|
The above package produces the following directory tree:
|
||||||
|
|
||||||
|
@ -224,7 +224,7 @@ $ cat ./result/source.dhall
|
||||||
…
|
…
|
||||||
```
|
```
|
||||||
|
|
||||||
## Packaging functions
|
## Packaging functions {#ssec-dhall-packaging-functions}
|
||||||
|
|
||||||
We already saw an example of using `buildDhallPackage` to create a Dhall
|
We already saw an example of using `buildDhallPackage` to create a Dhall
|
||||||
package from a single file, but most Dhall packages consist of more than one
|
package from a single file, but most Dhall packages consist of more than one
|
||||||
|
@ -297,7 +297,7 @@ terms of `buildDhallPackage` that accepts the following arguments:
|
||||||
Additionally, `buildDhallGitHubPackage` accepts the same arguments as
|
Additionally, `buildDhallGitHubPackage` accepts the same arguments as
|
||||||
`fetchFromGitHub`, such as `sha256` or `fetchSubmodules`.
|
`fetchFromGitHub`, such as `sha256` or `fetchSubmodules`.
|
||||||
|
|
||||||
## `dhall-to-nixpkgs`
|
## `dhall-to-nixpkgs` {#ssec-dhall-dhall-to-nixpkgs}
|
||||||
|
|
||||||
You can use the `dhall-to-nixpkgs` command-line utility to automate
|
You can use the `dhall-to-nixpkgs` command-line utility to automate
|
||||||
packaging Dhall code. For example:
|
packaging Dhall code. For example:
|
||||||
|
@ -342,7 +342,7 @@ $ dhall-to-nixpkgs directory ~/proj/dhall-semver
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Overriding dependency versions
|
## Overriding dependency versions {#ssec-dhall-overriding-dependency-versions}
|
||||||
|
|
||||||
Suppose that we change our `true.dhall` example expression to depend on an older
|
Suppose that we change our `true.dhall` example expression to depend on an older
|
||||||
version of the Prelude (19.0.0):
|
version of the Prelude (19.0.0):
|
||||||
|
@ -415,7 +415,7 @@ like this:
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
## Overrides
|
## Overrides {#ssec-dhall-overrides}
|
||||||
|
|
||||||
You can override any of the arguments to `buildDhallGitHubPackage` or
|
You can override any of the arguments to `buildDhallGitHubPackage` or
|
||||||
`buildDhallDirectoryPackage` using the `overridePackage` attribute of a package.
|
`buildDhallDirectoryPackage` using the `overridePackage` attribute of a package.
|
||||||
|
|
|
@ -2511,6 +2511,12 @@
|
||||||
githubId = 1316469;
|
githubId = 1316469;
|
||||||
name = "Naomi Morse";
|
name = "Naomi Morse";
|
||||||
};
|
};
|
||||||
|
dlesl = {
|
||||||
|
email = "dlesl@dlesl.com";
|
||||||
|
github = "dlesl";
|
||||||
|
githubId = 28980797;
|
||||||
|
name = "David Leslie";
|
||||||
|
};
|
||||||
dmalikov = {
|
dmalikov = {
|
||||||
email = "malikov.d.y@gmail.com";
|
email = "malikov.d.y@gmail.com";
|
||||||
github = "dmalikov";
|
github = "dmalikov";
|
||||||
|
|
|
@ -54,6 +54,8 @@ in
|
||||||
|
|
||||||
services.dbus.packages = [ pkgs.dconf ];
|
services.dbus.packages = [ pkgs.dconf ];
|
||||||
|
|
||||||
|
systemd.packages = [ pkgs.dconf ];
|
||||||
|
|
||||||
# For dconf executable
|
# For dconf executable
|
||||||
environment.systemPackages = [ pkgs.dconf ];
|
environment.systemPackages = [ pkgs.dconf ];
|
||||||
|
|
||||||
|
|
|
@ -10,15 +10,10 @@ let
|
||||||
blacklist = cfg.caCertificateBlacklist;
|
blacklist = cfg.caCertificateBlacklist;
|
||||||
};
|
};
|
||||||
|
|
||||||
caCertificates = pkgs.runCommand "ca-certificates.crt"
|
caCertificates = pkgs.runCommand "ca-certificates.crt" {
|
||||||
{ files =
|
files = cfg.certificateFiles ++ [ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ];
|
||||||
cfg.certificateFiles ++
|
preferLocalBuild = true;
|
||||||
[ (builtins.toFile "extra.crt" (concatStringsSep "\n" cfg.certificates)) ];
|
} "awk 1 $files > $out"; # awk ensures a newline between each pair of consecutive files
|
||||||
preferLocalBuild = true;
|
|
||||||
}
|
|
||||||
''
|
|
||||||
cat $files > $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ in
|
||||||
For more information on how to specify the target
|
For more information on how to specify the target
|
||||||
and on which privileges exist, see the
|
and on which privileges exist, see the
|
||||||
<link xlink:href="https://www.postgresql.org/docs/current/sql-grant.html">GRANT syntax</link>.
|
<link xlink:href="https://www.postgresql.org/docs/current/sql-grant.html">GRANT syntax</link>.
|
||||||
The attributes are used as <code>GRANT ''${attrName} ON ''${attrValue}</code>.
|
The attributes are used as <code>GRANT ''${attrValue} ON ''${attrName}</code>.
|
||||||
'';
|
'';
|
||||||
example = literalExample ''
|
example = literalExample ''
|
||||||
{
|
{
|
||||||
|
|
|
@ -331,7 +331,7 @@ in {
|
||||||
PrivateMounts = true;
|
PrivateMounts = true;
|
||||||
# System Call Filtering
|
# System Call Filtering
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = "~@clock @cpu-emulation @debug @keyring @memlock @module @mount @obsolete @privileged @raw-io @reboot @resources @setuid @swap";
|
SystemCallFilter = "~@cpu-emulation @debug @keyring @memlock @mount @obsolete @privileged @resources @setuid";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -131,7 +131,7 @@ in {
|
||||||
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
||||||
ipykernel
|
ipykernel
|
||||||
pandas
|
pandas
|
||||||
scikitlearn
|
scikit-learn
|
||||||
]));
|
]));
|
||||||
in {
|
in {
|
||||||
displayName = "Python 3 for machine learning";
|
displayName = "Python 3 for machine learning";
|
||||||
|
|
|
@ -117,7 +117,7 @@ in {
|
||||||
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
|
||||||
ipykernel
|
ipykernel
|
||||||
pandas
|
pandas
|
||||||
scikitlearn
|
scikit-learn
|
||||||
]));
|
]));
|
||||||
in {
|
in {
|
||||||
displayName = "Python 3 for machine learning";
|
displayName = "Python 3 for machine learning";
|
||||||
|
|
|
@ -31,16 +31,6 @@ in
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
users = {
|
|
||||||
groups.lm_sensors = {};
|
|
||||||
|
|
||||||
users.fancontrol = {
|
|
||||||
isSystemUser = true;
|
|
||||||
group = "lm_sensors";
|
|
||||||
description = "fan speed controller";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.services.fancontrol = {
|
systemd.services.fancontrol = {
|
||||||
documentation = [ "man:fancontrol(8)" ];
|
documentation = [ "man:fancontrol(8)" ];
|
||||||
description = "software fan control";
|
description = "software fan control";
|
||||||
|
@ -49,8 +39,6 @@ in
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
|
ExecStart = "${pkgs.lm_sensors}/sbin/fancontrol ${configFile}";
|
||||||
Group = "lm_sensors";
|
|
||||||
User = "fancontrol";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -92,9 +92,7 @@ in
|
||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
|
"~@cpu-emulation" "~@debug" "~@keyring" "~@memlock" "~@obsolete" "~@privileged" "~@setuid"
|
||||||
"~@chown" "~@cpu-emulation" "~@debug" "~@keyring" "~@memlock" "~@module"
|
|
||||||
"~@obsolete" "~@privileged" "~@setuid"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -117,7 +117,7 @@ in {
|
||||||
PrivateMounts = true;
|
PrivateMounts = true;
|
||||||
# System Call Filtering
|
# System Call Filtering
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = "~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @resources @swap";
|
SystemCallFilter = "~@cpu-emulation @debug @mount @obsolete @privileged @resources";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,9 +72,7 @@ in
|
||||||
RuntimeDirectoryMode = "700";
|
RuntimeDirectoryMode = "700";
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
"~@aio" "~@chown" "~@keyring" "~@memlock"
|
"~@aio" "~@keyring" "~@memlock" "~@privileged" "~@resources" "~@setuid" "~@sync" "~@timer"
|
||||||
"~@privileged" "~@resources" "~@setuid"
|
|
||||||
"~@sync" "~@timer"
|
|
||||||
];
|
];
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
|
|
|
@ -86,10 +86,7 @@ in {
|
||||||
SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
SystemCallFilter = [
|
SystemCallFilter = [
|
||||||
"@system-service"
|
"@system-service"
|
||||||
|
"~@cpu-emulation" "~@debug" "~@keyring" "~@memlock" "~@obsolete" "~@privileged" "~@resources" "~@setuid"
|
||||||
"~@chown" "~@cpu-emulation" "~@debug" "~@keyring" "~@memlock"
|
|
||||||
"~@module" "~@obsolete" "~@privileged" "~@raw-io"
|
|
||||||
"~@resources" "~@setuid"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -41,7 +41,6 @@ in {
|
||||||
|
|
||||||
As an example:
|
As an example:
|
||||||
<programlisting>
|
<programlisting>
|
||||||
security.acme.certs."example.com".allowKeysForGroup = true;
|
|
||||||
systemd.services.molly-brown.serviceConfig.SupplementaryGroups =
|
systemd.services.molly-brown.serviceConfig.SupplementaryGroups =
|
||||||
[ config.security.acme.certs."example.com".group ];
|
[ config.security.acme.certs."example.com".group ];
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
|
@ -859,7 +859,7 @@ in
|
||||||
PrivateMounts = true;
|
PrivateMounts = true;
|
||||||
# System Call Filtering
|
# System Call Filtering
|
||||||
SystemCallArchitectures = "native";
|
SystemCallArchitectures = "native";
|
||||||
SystemCallFilter = "~@chown @cpu-emulation @debug @keyring @ipc @module @mount @obsolete @privileged @raw-io @reboot @setuid @swap";
|
SystemCallFilter = "~@cpu-emulation @debug @keyring @ipc @mount @obsolete @privileged @setuid";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -867,8 +867,9 @@ in
|
||||||
source = configFile;
|
source = configFile;
|
||||||
};
|
};
|
||||||
|
|
||||||
# postRun hooks on cert renew can't be used to restart Nginx since renewal
|
# This service waits for all certificates to be available
|
||||||
# runs as the unprivileged acme user. sslTargets are added to wantedBy + before
|
# before reloading nginx configuration.
|
||||||
|
# sslTargets are added to wantedBy + before
|
||||||
# which allows the acme-finished-$cert.target to signify the successful updating
|
# which allows the acme-finished-$cert.target to signify the successful updating
|
||||||
# of certs end-to-end.
|
# of certs end-to-end.
|
||||||
systemd.services.nginx-config-reload = let
|
systemd.services.nginx-config-reload = let
|
||||||
|
|
|
@ -309,7 +309,7 @@ in
|
||||||
"mount-pstore" = {
|
"mount-pstore" = {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.utillinux}/bin/mount -t pstore -o nosuid,noexec,nodev pstore /sys/fs/pstore";
|
ExecStart = "${pkgs.util-linux}/bin/mount -t pstore -o nosuid,noexec,nodev pstore /sys/fs/pstore";
|
||||||
ExecStartPost = pkgs.writeShellScript "wait-for-pstore.sh" ''
|
ExecStartPost = pkgs.writeShellScript "wait-for-pstore.sh" ''
|
||||||
set -eu
|
set -eu
|
||||||
TRIES=0
|
TRIES=0
|
||||||
|
|
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "spotify-qt";
|
pname = "spotify-qt";
|
||||||
version = "3.5";
|
version = "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kraxarn";
|
owner = "kraxarn";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1bgd0q4sbbww3lbrx2zwgaz0sl7qh195s4kvgsq16gv7ij82bskn";
|
sha256 = "mKHyE6ZffMYYRLMpzMX53chyJyWxhTAaGvtBI3l6wkI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libxcb qtbase qtsvg ];
|
buildInputs = [ libxcb qtbase qtsvg ];
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "ghostwriter";
|
pname = "ghostwriter";
|
||||||
version = "2.0.0";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wereturtle";
|
owner = "wereturtle";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-5O2W7ZQeDkNzwi6t9MfNbv4fmNvak1AcMnzJTE1F9L8=";
|
sha256 = "sha256-bNVhYwX60F3lrP9UmZSntfz83vbmHe9tu/4nUgzUWR4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake pkg-config qttools ];
|
nativeBuildInputs = [ qmake pkg-config qttools ];
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
, qtsvg
|
, qtsvg
|
||||||
, qtx11extras
|
, qtx11extras
|
||||||
, quazip
|
, quazip
|
||||||
|
, readline
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, yubikey-personalization
|
, yubikey-personalization
|
||||||
, zlib
|
, zlib
|
||||||
|
@ -51,13 +52,13 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "02ajfkw818cmalvkl0kqvza85rgdgs59kw2v7b3c4v8kv00c41j3";
|
sha256 = "02ajfkw818cmalvkl0kqvza85rgdgs59kw2v7b3c4v8kv00c41j3";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang [
|
NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang [
|
||||||
"-Wno-old-style-cast"
|
"-Wno-old-style-cast"
|
||||||
"-Wno-error"
|
"-Wno-error"
|
||||||
"-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
|
"-D__BIG_ENDIAN__=${if stdenv.isBigEndian then "1" else "0"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
|
NIX_LDFLAGS = optionalString stdenv.isDarwin "-rpath ${libargon2}/lib";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./darwin.patch
|
./darwin.patch
|
||||||
|
@ -108,12 +109,14 @@ stdenv.mkDerivation rec {
|
||||||
qtbase
|
qtbase
|
||||||
qtsvg
|
qtsvg
|
||||||
qtx11extras
|
qtx11extras
|
||||||
|
readline
|
||||||
yubikey-personalization
|
yubikey-personalization
|
||||||
zlib
|
zlib
|
||||||
]
|
]
|
||||||
++ lib.optional withKeePassKeeShareSecure quazip
|
++ optional withKeePassKeeShareSecure quazip
|
||||||
++ lib.optional stdenv.isDarwin qtmacextras
|
++ optional stdenv.isDarwin qtmacextras
|
||||||
++ lib.optional (stdenv.isDarwin && withKeePassTouchID) darwin.apple_sdk.frameworks.LocalAuthentication;
|
++ optional (stdenv.isDarwin && withKeePassTouchID)
|
||||||
|
darwin.apple_sdk.frameworks.LocalAuthentication;
|
||||||
|
|
||||||
preFixup = optionalString stdenv.isDarwin ''
|
preFixup = optionalString stdenv.isDarwin ''
|
||||||
# Make it work without Qt in PATH.
|
# Make it work without Qt in PATH.
|
||||||
|
@ -123,8 +126,14 @@ stdenv.mkDerivation rec {
|
||||||
passthru.tests = nixosTests.keepassxc;
|
passthru.tests = nixosTests.keepassxc;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Password manager to store your passwords safely and auto-type them into your everyday websites and applications";
|
description = "Offline password manager with many features.";
|
||||||
longDescription = "A community fork of KeePassX, which is itself a port of KeePass Password Safe. The goal is to extend and improve KeePassX with new features and bugfixes to provide a feature-rich, fully cross-platform and modern open-source password manager. Accessible via native cross-platform GUI, CLI, and browser integration with the KeePassXC Browser Extension (https://github.com/keepassxreboot/keepassxc-browser).";
|
longDescription = ''
|
||||||
|
A community fork of KeePassX, which is itself a port of KeePass Password Safe.
|
||||||
|
The goal is to extend and improve KeePassX with new features and bugfixes,
|
||||||
|
to provide a feature-rich, fully cross-platform and modern open-source password manager.
|
||||||
|
Accessible via native cross-platform GUI, CLI, has browser integration
|
||||||
|
using the KeePassXC Browser Extension (https://github.com/keepassxreboot/keepassxc-browser)
|
||||||
|
'';
|
||||||
homepage = "https://keepassxc.org/";
|
homepage = "https://keepassxc.org/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ jonafato turion ];
|
maintainers = with maintainers; [ jonafato turion ];
|
||||||
|
|
|
@ -1,18 +1,36 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, wxGTK, gtk2, sfml, fluidsynth, curl, freeimage, ftgl, glew, zip }:
|
{ lib, stdenv, fetchFromGitHub
|
||||||
|
, cmake
|
||||||
|
, pkg-config
|
||||||
|
, wxGTK
|
||||||
|
, sfml
|
||||||
|
, fluidsynth
|
||||||
|
, curl
|
||||||
|
, freeimage
|
||||||
|
, ftgl
|
||||||
|
, glew
|
||||||
|
, zip
|
||||||
|
, lua
|
||||||
|
, fmt
|
||||||
|
, mpg123
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "slade-git-3.1.2.2018.01.29";
|
name = "slade-git-3.2.0.2021.05.13";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "sirjuddington";
|
owner = "sirjuddington";
|
||||||
repo = "SLADE";
|
repo = "SLADE";
|
||||||
rev = "f7409c504b40c4962f419038db934c32688ddd2e";
|
rev = "d2e249c89062a44c912a9b86951526edc8735ba0";
|
||||||
sha256 = "14icxiy0r9rlcc10skqs1ylnxm1f0f3irhzfmx4sazq0pjv5ivld";
|
sha256 = "08dsvx7m7c97jm8fxzivmi1fr47hj53y0lv57clqc35bh2gi62dg";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = ["-DNO_WEBVIEW=1"];
|
cmakeFlags = [
|
||||||
|
"-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
|
||||||
|
"-DWX_GTK3=OFF"
|
||||||
|
"-DNO_WEBVIEW=1"
|
||||||
|
];
|
||||||
nativeBuildInputs = [ cmake pkg-config zip ];
|
nativeBuildInputs = [ cmake pkg-config zip ];
|
||||||
buildInputs = [ wxGTK gtk2 sfml fluidsynth curl freeimage ftgl glew ];
|
buildInputs = [ wxGTK wxGTK.gtk sfml fluidsynth curl freeimage ftgl glew lua fmt mpg123 ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Doom editor";
|
description = "Doom editor";
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
, libXrandr
|
, libXrandr
|
||||||
, libXrender
|
, libXrender
|
||||||
, libXtst
|
, libXtst
|
||||||
|
, libxkbcommon
|
||||||
, libsecret
|
, libsecret
|
||||||
, libuuid
|
, libuuid
|
||||||
, libxcb
|
, libxcb
|
||||||
|
@ -81,6 +82,7 @@ let
|
||||||
libXrandr
|
libXrandr
|
||||||
libXrender
|
libXrender
|
||||||
libXtst
|
libXtst
|
||||||
|
libxkbcommon
|
||||||
libsecret
|
libsecret
|
||||||
libuuid
|
libuuid
|
||||||
libxcb
|
libxcb
|
||||||
|
@ -97,11 +99,11 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "appgate-sdp";
|
pname = "appgate-sdp";
|
||||||
version = "5.3.3";
|
version = "5.4.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://bin.appgate-sdp.com/${lib.versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb";
|
url = "https://bin.appgate-sdp.com/${lib.versions.majorMinor version}/client/appgate-sdp_${version}_amd64.deb";
|
||||||
sha256 = "1854m93mr2crg68zhh1pgwwis0dqdv0778wqrb8dz9sdz940rza8";
|
sha256 = "sha256-2DzZ5JnFGBeaHtDf7CAXb/qv6kVI+sYMW5Nc25E3eNA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
@ -170,9 +172,14 @@ stdenv.mkDerivation rec {
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "$ORIGIN:$out/opt/appgate/service/:$out/opt/appgate/:${rpath}" $binary
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath "$ORIGIN:$out/opt/appgate/service/:$out/opt/appgate/:${rpath}" $binary
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# fail if there are missing dependencies
|
||||||
|
ldd $out/opt/appgate/appgate | grep -i 'not found' && exit 1
|
||||||
|
ldd $out/opt/appgate/service/appgateservice.bin | grep -i 'not found' && exit 1
|
||||||
|
ldd $out/opt/appgate/appgate-driver | grep -i 'not found' && exit 1
|
||||||
|
|
||||||
wrapProgram $out/opt/appgate/appgate-driver --prefix PATH : ${lib.makeBinPath [ iproute2 networkmanager dnsmasq ]}
|
wrapProgram $out/opt/appgate/appgate-driver --prefix PATH : ${lib.makeBinPath [ iproute2 networkmanager dnsmasq ]}
|
||||||
wrapProgram $out/opt/appgate/linux/set_dns --set PYTHONPATH $PYTHONPATH
|
wrapProgram $out/opt/appgate/linux/set_dns --set PYTHONPATH $PYTHONPATH
|
||||||
wrapProgram $out/bin/appgate --prefix PATH : ${xdg-utils}/bin
|
wrapProgram $out/bin/appgate --prefix PATH : ${lib.makeBinPath [ xdg-utils ]}
|
||||||
'';
|
'';
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Appgate SDP (Software Defined Perimeter) desktop client";
|
description = "Appgate SDP (Software Defined Perimeter) desktop client";
|
||||||
|
|
|
@ -11,6 +11,13 @@ buildGoModule rec {
|
||||||
sha256 = "1iqgpmljqx6rhmvsir2675waj78amcfiw08knwvlmavjgpxx2ysw";
|
sha256 = "1iqgpmljqx6rhmvsir2675waj78amcfiw08knwvlmavjgpxx2ysw";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Use $HOME instead of the OS user database.
|
||||||
|
# Upstream PR: https://github.com/xetys/hetzner-kube/pull/346
|
||||||
|
# Unfortunately, the PR patch does not apply against release.
|
||||||
|
./fix-home.patch
|
||||||
|
];
|
||||||
|
|
||||||
vendorSha256 = "1jh2f66ys6rmrrwrf5zqfprgcvziyq6l4z8bfqwxgf1ysnxx525h";
|
vendorSha256 = "1jh2f66ys6rmrrwrf5zqfprgcvziyq6l4z8bfqwxgf1ysnxx525h";
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
@ -25,6 +32,8 @@ buildGoModule rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# Need a writable home, because it fails if unable to write config.
|
||||||
|
export HOME=$TMP
|
||||||
$out/bin/hetzner-kube completion bash > hetzner-kube
|
$out/bin/hetzner-kube completion bash > hetzner-kube
|
||||||
$out/bin/hetzner-kube completion zsh > _hetzner-kube
|
$out/bin/hetzner-kube completion zsh > _hetzner-kube
|
||||||
installShellCompletion --zsh _hetzner-kube
|
installShellCompletion --zsh _hetzner-kube
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
diff --git a/cmd/cluster_kubeconfig.go b/cmd/cluster_kubeconfig.go
|
||||||
|
index 54cc0c9..fab288a 100644
|
||||||
|
--- a/cmd/cluster_kubeconfig.go
|
||||||
|
+++ b/cmd/cluster_kubeconfig.go
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
- "os/user"
|
||||||
|
+ "path/filepath"
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"github.com/spf13/cobra"
|
||||||
|
@@ -52,9 +52,8 @@ Example 4: hetzner-kube cluster kubeconfig -n my-cluster -p > my-conf.yaml # pri
|
||||||
|
} else {
|
||||||
|
fmt.Println("create file")
|
||||||
|
|
||||||
|
- usr, _ := user.Current()
|
||||||
|
- dir := usr.HomeDir
|
||||||
|
- path := fmt.Sprintf("%s/.kube", dir)
|
||||||
|
+ dir, _ := os.UserHomeDir()
|
||||||
|
+ path := filepath.Join(dir, ".kube")
|
||||||
|
|
||||||
|
if _, err := os.Stat(path); os.IsNotExist(err) {
|
||||||
|
os.MkdirAll(path, 0755)
|
||||||
|
diff --git a/cmd/config.go b/cmd/config.go
|
||||||
|
index ce0f3e5..a03c4ba 100644
|
||||||
|
--- a/cmd/config.go
|
||||||
|
+++ b/cmd/config.go
|
||||||
|
@@ -8,7 +8,6 @@ import (
|
||||||
|
"io/ioutil"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
- "os/user"
|
||||||
|
"path/filepath"
|
||||||
|
|
||||||
|
"github.com/hetznercloud/hcloud-go/hcloud"
|
||||||
|
@@ -28,13 +27,8 @@ type AppSSHClient struct {
|
||||||
|
// NewAppConfig creates a new AppConfig struct using the locally saved configuration file. If no local
|
||||||
|
// configuration file is found a new config will be created.
|
||||||
|
func NewAppConfig() AppConfig {
|
||||||
|
- usr, err := user.Current()
|
||||||
|
- if err != nil {
|
||||||
|
- return AppConfig{}
|
||||||
|
- }
|
||||||
|
- if usr.HomeDir != "" {
|
||||||
|
- DefaultConfigPath = filepath.Join(usr.HomeDir, ".hetzner-kube")
|
||||||
|
- }
|
||||||
|
+ dir, _ := os.UserHomeDir()
|
||||||
|
+ DefaultConfigPath = filepath.Join(dir, ".hetzner-kube")
|
||||||
|
|
||||||
|
appConf := AppConfig{
|
||||||
|
Context: context.Background(),
|
|
@ -436,6 +436,15 @@
|
||||||
"sha256": "0jhx9rap4128j8sfkvpp8lbdmvdba0rkd3nxvy38wr3n18m7v1xg",
|
"sha256": "0jhx9rap4128j8sfkvpp8lbdmvdba0rkd3nxvy38wr3n18m7v1xg",
|
||||||
"version": "1.2.0"
|
"version": "1.2.0"
|
||||||
},
|
},
|
||||||
|
"hydra": {
|
||||||
|
"owner": "DeterminateSystems",
|
||||||
|
"provider-source-address": "registry.terraform.io/DeterminateSystems/hydra",
|
||||||
|
"repo": "terraform-provider-hydra",
|
||||||
|
"rev": "v0.1.0",
|
||||||
|
"sha256": "18c9j54fy1f2sfz317rlv8z7fb18bpc1a0baw1bgl72x5sgil5kv",
|
||||||
|
"vendorSha256": null,
|
||||||
|
"version": "0.1.0"
|
||||||
|
},
|
||||||
"ibm": {
|
"ibm": {
|
||||||
"owner": "IBM-Cloud",
|
"owner": "IBM-Cloud",
|
||||||
"provider-source-address": "registry.terraform.io/IBM-Cloud/ibm",
|
"provider-source-address": "registry.terraform.io/IBM-Cloud/ibm",
|
||||||
|
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "nextdns";
|
pname = "nextdns";
|
||||||
version = "1.10.1";
|
version = "1.11.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nextdns";
|
owner = "nextdns";
|
||||||
repo = "nextdns";
|
repo = "nextdns";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-hMI6zq176p7MI4cjMSeQ8T8UvibJW60lzsPmeAOi3ow=";
|
sha256 = "sha256-gnWFgzfMMnn8O7zDN5LW3cMIz5/wmgEW9fI9aJBEah8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorSha256 = "sha256-kmszMqkDMaL+Z6GcZmQyeRShKKS/VGdn9vabYPW/kCc=";
|
vendorSha256 = "sha256-kmszMqkDMaL+Z6GcZmQyeRShKKS/VGdn9vabYPW/kCc=";
|
||||||
|
|
|
@ -21,6 +21,7 @@ It performs nonlinear dc and transient analyses, fourier analysis, and ac analys
|
||||||
changelog = "https://git.savannah.gnu.org/cgit/gnucap.git/plain/NEWS?h=v${version}";
|
changelog = "https://git.savannah.gnu.org/cgit/gnucap.git/plain/NEWS?h=v${version}";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
|
broken = stdenv.isDarwin; # Relies on LD_LIBRARY_PATH
|
||||||
maintainers = [ maintainers.raboof ];
|
maintainers = [ maintainers.raboof ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,9 @@ stdenv.mkDerivation rec {
|
||||||
tllist
|
tllist
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
pkg-config
|
pkg-config
|
||||||
] ++ lib.optional stdenv.cc.isClang stdenv.cc.cc.llvm;
|
] ++ lib.optionals (compilerName == "clang") [
|
||||||
|
stdenv.cc.cc.libllvm.out
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fontconfig
|
fontconfig
|
||||||
|
|
|
@ -13,11 +13,11 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gitkraken";
|
pname = "gitkraken";
|
||||||
version = "7.5.5";
|
version = "7.6.0";
|
||||||
|
|
||||||
src = fetchzip {
|
src = fetchzip {
|
||||||
url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
|
url = "https://release.axocdn.com/linux/GitKraken-v${version}.tar.gz";
|
||||||
sha256 = "0l40ap0ck2ywjarmn7lmpw4qbsdkx717d9kmx67p4qlmbwpimqhg";
|
sha256 = "11818d8ph9qqisdpkv46afhr79qq128gaz5d0n7b48dx25ih1jb9";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
|
@ -438,6 +438,35 @@ rec {
|
||||||
done < graph
|
done < graph
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
/*
|
||||||
|
Write the set of references to a file, that is, their immediate dependencies.
|
||||||
|
|
||||||
|
This produces the equivalent of `nix-store -q --references`.
|
||||||
|
*/
|
||||||
|
writeDirectReferencesToFile = path: runCommand "runtime-references"
|
||||||
|
{
|
||||||
|
exportReferencesGraph = ["graph" path];
|
||||||
|
inherit path;
|
||||||
|
}
|
||||||
|
''
|
||||||
|
touch ./references
|
||||||
|
while read p; do
|
||||||
|
read dummy
|
||||||
|
read nrRefs
|
||||||
|
if [[ $p == $path ]]; then
|
||||||
|
for ((i = 0; i < nrRefs; i++)); do
|
||||||
|
read ref;
|
||||||
|
echo $ref >>./references
|
||||||
|
done
|
||||||
|
else
|
||||||
|
for ((i = 0; i < nrRefs; i++)); do
|
||||||
|
read ref;
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
done < graph
|
||||||
|
sort ./references >$out
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
/* Print an error message if the file with the specified name and
|
/* Print an error message if the file with the specified name and
|
||||||
* hash doesn't exist in the Nix store. This function should only
|
* hash doesn't exist in the Nix store. This function should only
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ lib, nixosTest, path, writeText, hello, figlet, stdenvNoCC }:
|
||||||
|
|
||||||
|
nixosTest {
|
||||||
|
name = "nixpkgs-trivial-builders";
|
||||||
|
nodes.machine = { ... }: {
|
||||||
|
virtualisation.writableStore = true;
|
||||||
|
|
||||||
|
# Test runs without network, so we don't substitute and prepare our deps
|
||||||
|
nix.binaryCaches = lib.mkForce [];
|
||||||
|
environment.etc."pre-built-paths".source = writeText "pre-built-paths" (
|
||||||
|
builtins.toJSON [hello figlet stdenvNoCC]
|
||||||
|
);
|
||||||
|
};
|
||||||
|
testScript = ''
|
||||||
|
machine.succeed("""
|
||||||
|
cd ${lib.cleanSource path}
|
||||||
|
./pkgs/build-support/trivial-builders/test.sh 2>/dev/console
|
||||||
|
""")
|
||||||
|
'';
|
||||||
|
}
|
|
@ -0,0 +1,57 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# -------------------------------------------------------------------------- #
|
||||||
|
#
|
||||||
|
# trivial-builders test
|
||||||
|
#
|
||||||
|
# -------------------------------------------------------------------------- #
|
||||||
|
#
|
||||||
|
# This file can be run independently (quick):
|
||||||
|
#
|
||||||
|
# $ pkgs/build-support/trivial-builders/test.sh
|
||||||
|
#
|
||||||
|
# or in the build sandbox with a ~20s VM overhead
|
||||||
|
#
|
||||||
|
# $ nix-build -A tests.trivial-builders
|
||||||
|
#
|
||||||
|
# -------------------------------------------------------------------------- #
|
||||||
|
|
||||||
|
# strict bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# debug
|
||||||
|
# set -x
|
||||||
|
# PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
|
||||||
|
|
||||||
|
cd "$(dirname ${BASH_SOURCE[0]})" # nixpkgs root
|
||||||
|
|
||||||
|
testDirectReferences() {
|
||||||
|
expr="$1"
|
||||||
|
diff -U3 \
|
||||||
|
<(sort <$(nix-build --no-out-link --expr "with import ../../.. {}; writeDirectReferencesToFile ($expr)")) \
|
||||||
|
<(nix-store -q --references $(nix-build --no-out-link --expr "with import ../../.. {}; ($expr)") | sort)
|
||||||
|
}
|
||||||
|
|
||||||
|
testDirectReferences 'hello'
|
||||||
|
testDirectReferences 'figlet'
|
||||||
|
testDirectReferences 'writeText "hi" "hello"'
|
||||||
|
testDirectReferences 'writeText "hi" "hello ${hello}"'
|
||||||
|
testDirectReferences 'writeText "hi" "hello ${hello} ${figlet}"'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
testClosure() {
|
||||||
|
expr="$1"
|
||||||
|
diff -U3 \
|
||||||
|
<(sort <$(nix-build --no-out-link --expr "with import ../../.. {}; writeReferencesToFile ($expr)")) \
|
||||||
|
<(nix-store -q --requisites $(nix-build --no-out-link --expr "with import ../../.. {}; ($expr)") | sort)
|
||||||
|
}
|
||||||
|
|
||||||
|
testClosure 'hello'
|
||||||
|
testClosure 'figlet'
|
||||||
|
testClosure 'writeText "hi" "hello"'
|
||||||
|
testClosure 'writeText "hi" "hello ${hello}"'
|
||||||
|
testClosure 'writeText "hi" "hello ${hello} ${figlet}"'
|
||||||
|
|
||||||
|
|
||||||
|
echo 'OK!'
|
|
@ -1,9 +1,25 @@
|
||||||
{ stdenv, lib, buildPythonApplication, bottle
|
{ stdenv, lib, buildPythonApplication
|
||||||
, click, click-completion, colorama, semantic-version
|
, ajsonrpc
|
||||||
, lockfile, pyserial, requests
|
, bottle
|
||||||
, tabulate, pyelftools, marshmallow
|
, click
|
||||||
, pytest, tox, jsondiff
|
, click-completion
|
||||||
, git, spdx-license-list-data
|
, colorama
|
||||||
|
, git
|
||||||
|
, jsondiff
|
||||||
|
, lockfile
|
||||||
|
, marshmallow
|
||||||
|
, pyelftools
|
||||||
|
, pyserial
|
||||||
|
, pytest
|
||||||
|
, requests
|
||||||
|
, semantic-version
|
||||||
|
, spdx-license-list-data
|
||||||
|
, starlette
|
||||||
|
, tabulate
|
||||||
|
, tox
|
||||||
|
, uvicorn
|
||||||
|
, wsproto
|
||||||
|
, zeroconf
|
||||||
, version, src
|
, version, src
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -78,10 +94,24 @@ in buildPythonApplication rec {
|
||||||
pname = "platformio";
|
pname = "platformio";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
bottle click click-completion colorama git
|
ajsonrpc
|
||||||
lockfile pyserial requests semantic-version
|
bottle
|
||||||
tabulate pyelftools marshmallow
|
click
|
||||||
|
click-completion
|
||||||
|
colorama
|
||||||
|
git
|
||||||
|
lockfile
|
||||||
|
marshmallow
|
||||||
|
pyelftools
|
||||||
|
pyserial
|
||||||
|
requests
|
||||||
|
semantic-version
|
||||||
|
starlette
|
||||||
|
tabulate
|
||||||
|
uvicorn
|
||||||
|
wsproto
|
||||||
|
zeroconf
|
||||||
];
|
];
|
||||||
|
|
||||||
HOME = "/tmp";
|
HOME = "/tmp";
|
||||||
|
|
|
@ -4,14 +4,14 @@
|
||||||
let
|
let
|
||||||
callPackage = newScope self;
|
callPackage = newScope self;
|
||||||
|
|
||||||
version = "5.0.4";
|
version = "5.1.1";
|
||||||
|
|
||||||
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
|
# pypi tarballs don't contain tests - https://github.com/platformio/platformio-core/issues/1964
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "platformio";
|
owner = "platformio";
|
||||||
repo = "platformio-core";
|
repo = "platformio-core";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "15jnhlhkk9z6cyzxw065r3080dqan951klwf65p152vfzg79wf84";
|
sha256 = "1m9vq5r4g04n3ckmb3hrrc4ar5v31k6isc76bw4glrn2xb7r8c00";
|
||||||
};
|
};
|
||||||
|
|
||||||
self = {
|
self = {
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
diff --git a/platformio/package/manifest/schema.py b/platformio/package/manifest/schema.py
|
||||||
index f293ba5a..a818271f 100644
|
index addc4c5..514b0ad 100644
|
||||||
--- a/platformio/package/manifest/schema.py
|
--- a/platformio/package/manifest/schema.py
|
||||||
+++ b/platformio/package/manifest/schema.py
|
+++ b/platformio/package/manifest/schema.py
|
||||||
@@ -252,5 +252,4 @@ class ManifestSchema(BaseSchema):
|
@@ -253,9 +253,4 @@ class ManifestSchema(BaseSchema):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@memoized(expire="1h")
|
@memoized(expire="1h")
|
||||||
def load_spdx_licenses():
|
def load_spdx_licenses():
|
||||||
- spdx_data_url = "https://dl.bintray.com/platformio/dl-misc/spdx-licenses-3.json"
|
- version = "3.12"
|
||||||
|
- spdx_data_url = (
|
||||||
|
- "https://raw.githubusercontent.com/spdx/license-list-data/"
|
||||||
|
- "v%s/json/licenses.json" % version
|
||||||
|
- )
|
||||||
- return json.loads(fetch_remote_content(spdx_data_url))
|
- return json.loads(fetch_remote_content(spdx_data_url))
|
||||||
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))
|
+ return json.load(open("@SPDX_LICENSE_LIST_DATA@/json/licenses.json"))
|
||||||
|
|
|
@ -23,6 +23,7 @@ let
|
||||||
|
|
||||||
# rebar3 port compiler plugin is required by buildRebar3
|
# rebar3 port compiler plugin is required by buildRebar3
|
||||||
pc = callPackage ./pc { };
|
pc = callPackage ./pc { };
|
||||||
|
rebar3-nix = callPackage ./rebar3-nix { };
|
||||||
|
|
||||||
fetchHex = callPackage ./fetch-hex.nix { };
|
fetchHex = callPackage ./fetch-hex.nix { };
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
{ lib, buildRebar3, fetchFromGitHub }:
|
||||||
|
buildRebar3 rec {
|
||||||
|
name = "rebar3_nix";
|
||||||
|
version = "0.1.0";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "erlang-nix";
|
||||||
|
repo = name;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "17w8m4aqqgvhpx3xyc7x2qzsrd3ybzc83ay50zs1gyd1b8csh2wf";
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "nix integration for rebar3";
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
homepage = "https://github.com/erlang-nix/rebar3_nix";
|
||||||
|
maintainers = with lib.maintainers; [ dlesl gleber ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,72 @@
|
||||||
|
{ autoPatchelfHook, fetchurl, lib, makeWrapper, openssl, stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "julia-bin";
|
||||||
|
version = "1.0.5";
|
||||||
|
|
||||||
|
src = {
|
||||||
|
x86_64-linux = fetchurl {
|
||||||
|
url = "https://julialang-s3.julialang.org/bin/linux/x64/${lib.versions.majorMinor version}/julia-${version}-linux-x86_64.tar.gz";
|
||||||
|
sha256 = "00vbszpjmz47nqy19v83xa463ajhzwanjyg5mvcfp9kvfw9xdvcx";
|
||||||
|
};
|
||||||
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
|
# Julia’s source files are in different locations for source and binary
|
||||||
|
# releases. Thus we temporarily create symlinks to allow us to share patches
|
||||||
|
# with source releases.
|
||||||
|
prePatch = ''
|
||||||
|
ln -s share/julia/stdlib/v${lib.versions.majorMinor version} stdlib
|
||||||
|
ln -s share/julia/test
|
||||||
|
'';
|
||||||
|
patches = [
|
||||||
|
# Source release Nix patch(es) relevant for binary releases as well.
|
||||||
|
./patches/1.0-bin/0002-nix-Skip-tests-that-require-network-access.patch
|
||||||
|
];
|
||||||
|
postPatch = ''
|
||||||
|
# Revert symlink hack.
|
||||||
|
rm stdlib test
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
cp -r . $out
|
||||||
|
# Setting `LD_LIBRARY_PATH` resolves `Libdl` failures. Not sure why this is
|
||||||
|
# only necessary on v1.0.x and a cleaner solution is welcome, but after
|
||||||
|
# staring at `strace` for a few hours this is as clean as I could make it.
|
||||||
|
wrapProgram $out/bin/julia \
|
||||||
|
--suffix LD_LIBRARY_PATH : $out/lib
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Breaks backtraces, etc.
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
installCheckInputs = [ openssl ];
|
||||||
|
preInstallCheck = ''
|
||||||
|
# Some tests require read/write access to $HOME.
|
||||||
|
export HOME="$TMPDIR"
|
||||||
|
'';
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
# Command lifted from `test/Makefile`.
|
||||||
|
$out/bin/julia \
|
||||||
|
--check-bounds=yes \
|
||||||
|
--startup-file=no \
|
||||||
|
--depwarn=error \
|
||||||
|
$out/share/julia/test/runtests.jl
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "High-level, high-performance dynamic language for technical computing";
|
||||||
|
homepage = "https://julialang.org";
|
||||||
|
# Bundled and linked with various GPL code, although Julia itself is MIT.
|
||||||
|
license = lib.licenses.gpl2Plus;
|
||||||
|
maintainers = with lib.maintainers; [ ninjin raskin ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,73 @@
|
||||||
|
{ autoPatchelfHook, fetchurl, lib, stdenv }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "julia-bin";
|
||||||
|
version = "1.6.1";
|
||||||
|
|
||||||
|
src = {
|
||||||
|
x86_64-linux = fetchurl {
|
||||||
|
url = "https://julialang-s3.julialang.org/bin/linux/x64/${lib.versions.majorMinor version}/julia-${version}-linux-x86_64.tar.gz";
|
||||||
|
sha256 = "01i5sm4vqb0y5qznql571zap19b42775drrcxnzsyhpaqgg8m23w";
|
||||||
|
};
|
||||||
|
}.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
||||||
|
|
||||||
|
# Julia’s source files are in different locations for source and binary
|
||||||
|
# releases. Thus we temporarily create a symlink to allow us to share patches
|
||||||
|
# with source releases.
|
||||||
|
prePatch = ''
|
||||||
|
ln -s share/julia/test
|
||||||
|
'';
|
||||||
|
patches = [
|
||||||
|
# Source release Nix patch(es) relevant for binary releases as well.
|
||||||
|
./patches/1.6-bin/0002-nix-Skip-tempname-test-broken-in-sandbox.patch
|
||||||
|
./patches/1.6-bin/0003-nix-Skip-chown-tests-broken-in-sandbox.patch
|
||||||
|
./patches/1.6-bin/0005-nix-Enable-parallel-unit-tests-for-sandbox.patch
|
||||||
|
];
|
||||||
|
postPatch = ''
|
||||||
|
# Revert symlink hack.
|
||||||
|
rm test
|
||||||
|
|
||||||
|
# Julia fails to pick up our Certification Authority root certificates, but
|
||||||
|
# it provides its own so we can simply disable the test. Patching in the
|
||||||
|
# dynamic path to ours require us to rebuild the Julia system image.
|
||||||
|
substituteInPlace share/julia/stdlib/v${lib.versions.majorMinor version}/NetworkOptions/test/runtests.jl \
|
||||||
|
--replace '@test ca_roots_path() != bundled_ca_roots()' \
|
||||||
|
'@test_skip ca_roots_path() != bundled_ca_roots()'
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ autoPatchelfHook ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
cp -r . $out
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Breaks backtraces, etc.
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
preInstallCheck = ''
|
||||||
|
# Some tests require read/write access to $HOME.
|
||||||
|
export HOME="$TMPDIR"
|
||||||
|
'';
|
||||||
|
installCheckPhase = ''
|
||||||
|
runHook preInstallCheck
|
||||||
|
# Command lifted from `test/Makefile`.
|
||||||
|
$out/bin/julia \
|
||||||
|
--check-bounds=yes \
|
||||||
|
--startup-file=no \
|
||||||
|
--depwarn=error \
|
||||||
|
$out/share/julia/test/runtests.jl
|
||||||
|
runHook postInstallCheck
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "High-level, high-performance dynamic language for technical computing.";
|
||||||
|
homepage = "https://julialang.org";
|
||||||
|
# Bundled and linked with various GPL code, although Julia itself is MIT.
|
||||||
|
license = lib.licenses.gpl2Plus;
|
||||||
|
maintainers = with lib.maintainers; [ ninjin raskin ];
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,87 @@
|
||||||
|
From 4954b99efae367da49412edd31a7bd832ec62c69 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pontus Stenetorp <pontus@stenetorp.se>
|
||||||
|
Date: Mon, 15 Mar 2021 05:55:18 +0000
|
||||||
|
Subject: [PATCH 2/3] nix: Skip tests that require network access
|
||||||
|
|
||||||
|
Necessary as the Nix build sandbox does not permit network access.
|
||||||
|
---
|
||||||
|
stdlib/Sockets/test/runtests.jl | 40 ++++++++++++++++-----------------
|
||||||
|
test/file.jl | 4 ++--
|
||||||
|
2 files changed, 22 insertions(+), 22 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/stdlib/Sockets/test/runtests.jl b/stdlib/Sockets/test/runtests.jl
|
||||||
|
index 6145f87616..9cc7a001e5 100644
|
||||||
|
--- a/stdlib/Sockets/test/runtests.jl
|
||||||
|
+++ b/stdlib/Sockets/test/runtests.jl
|
||||||
|
@@ -151,33 +151,33 @@ defaultport = rand(2000:4000)
|
||||||
|
end
|
||||||
|
|
||||||
|
@testset "getnameinfo on some unroutable IP addresses (RFC 5737)" begin
|
||||||
|
- @test getnameinfo(ip"192.0.2.1") == "192.0.2.1"
|
||||||
|
- @test getnameinfo(ip"198.51.100.1") == "198.51.100.1"
|
||||||
|
- @test getnameinfo(ip"203.0.113.1") == "203.0.113.1"
|
||||||
|
- @test getnameinfo(ip"0.1.1.1") == "0.1.1.1"
|
||||||
|
- @test getnameinfo(ip"::ffff:0.1.1.1") == "::ffff:0.1.1.1"
|
||||||
|
- @test getnameinfo(ip"::ffff:192.0.2.1") == "::ffff:192.0.2.1"
|
||||||
|
- @test getnameinfo(ip"2001:db8::1") == "2001:db8::1"
|
||||||
|
+ @test_skip getnameinfo(ip"192.0.2.1") == "192.0.2.1"
|
||||||
|
+ @test_skip getnameinfo(ip"198.51.100.1") == "198.51.100.1"
|
||||||
|
+ @test_skip getnameinfo(ip"203.0.113.1") == "203.0.113.1"
|
||||||
|
+ @test_skip getnameinfo(ip"0.1.1.1") == "0.1.1.1"
|
||||||
|
+ @test_skip getnameinfo(ip"::ffff:0.1.1.1") == "::ffff:0.1.1.1"
|
||||||
|
+ @test_skip getnameinfo(ip"::ffff:192.0.2.1") == "::ffff:192.0.2.1"
|
||||||
|
+ @test_skip getnameinfo(ip"2001:db8::1") == "2001:db8::1"
|
||||||
|
end
|
||||||
|
|
||||||
|
@testset "getnameinfo on some valid IP addresses" begin
|
||||||
|
@test !isempty(getnameinfo(ip"::")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"0.0.0.0")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"10.1.0.0")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"10.1.0.255")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"10.1.255.1")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"255.255.255.255")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"255.255.255.0")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"192.168.0.1")::String)
|
||||||
|
- @test !isempty(getnameinfo(ip"::1")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"0.0.0.0")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"10.1.0.0")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"10.1.0.255")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"10.1.255.1")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"255.255.255.255")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"255.255.255.0")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"192.168.0.1")::String)
|
||||||
|
+ @test_skip !isempty(getnameinfo(ip"::1")::String)
|
||||||
|
end
|
||||||
|
|
||||||
|
@testset "getaddrinfo" begin
|
||||||
|
- let localhost = getnameinfo(ip"127.0.0.1")::String
|
||||||
|
- @test !isempty(localhost) && localhost != "127.0.0.1"
|
||||||
|
- @test !isempty(getalladdrinfo(localhost)::Vector{IPAddr})
|
||||||
|
- @test getaddrinfo(localhost, IPv4)::IPv4 != ip"0.0.0.0"
|
||||||
|
- @test try
|
||||||
|
+ let localhost = getnameinfo(ip"::")::String
|
||||||
|
+ @test_skip !isempty(localhost) && localhost != "127.0.0.1"
|
||||||
|
+ @test_skip !isempty(getalladdrinfo(localhost)::Vector{IPAddr})
|
||||||
|
+ @test_skip getaddrinfo(localhost, IPv4)::IPv4 != ip"0.0.0.0"
|
||||||
|
+ @test_skip try
|
||||||
|
getaddrinfo(localhost, IPv6)::IPv6 != ip"::"
|
||||||
|
catch ex
|
||||||
|
isa(ex, Sockets.DNSError) && ex.code == Base.UV_EAI_NONAME && ex.host == localhost
|
||||||
|
diff --git a/test/file.jl b/test/file.jl
|
||||||
|
index e86476f975..579276f82c 100644
|
||||||
|
--- a/test/file.jl
|
||||||
|
+++ b/test/file.jl
|
||||||
|
@@ -874,8 +874,8 @@ if !Sys.iswindows() || (Sys.windows_version() >= Sys.WINDOWS_VISTA_VER)
|
||||||
|
else
|
||||||
|
@test_throws ErrorException symlink(file, "ba\0d")
|
||||||
|
end
|
||||||
|
-@test_throws ArgumentError download("good", "ba\0d")
|
||||||
|
-@test_throws ArgumentError download("ba\0d", "good")
|
||||||
|
+@test_skip @test_throws ArgumentError download("good", "ba\0d")
|
||||||
|
+@test_skip @test_throws ArgumentError download("ba\0d", "good")
|
||||||
|
|
||||||
|
###################
|
||||||
|
# walkdir #
|
||||||
|
--
|
||||||
|
2.29.3
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
From ffe227676352a910754d96d92e9b06e475f28ff1 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pontus Stenetorp <pontus@stenetorp.se>
|
||||||
|
Date: Thu, 8 Apr 2021 04:25:19 +0000
|
||||||
|
Subject: [PATCH 2/6] nix: Skip `tempname` test broken in sandbox
|
||||||
|
|
||||||
|
Reported upstream:
|
||||||
|
|
||||||
|
https://github.com/JuliaLang/julia/issues/38873
|
||||||
|
---
|
||||||
|
test/file.jl | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/test/file.jl b/test/file.jl
|
||||||
|
index 0f39bc7c14..bd4dd78f62 100644
|
||||||
|
--- a/test/file.jl
|
||||||
|
+++ b/test/file.jl
|
||||||
|
@@ -95,7 +95,7 @@ end
|
||||||
|
@test dirname(t) == tempdir()
|
||||||
|
mktempdir() do d
|
||||||
|
t = tempname(d)
|
||||||
|
- @test dirname(t) == d
|
||||||
|
+ @test_skip dirname(t) == d
|
||||||
|
end
|
||||||
|
@test_throws ArgumentError tempname(randstring())
|
||||||
|
end
|
||||||
|
--
|
||||||
|
2.29.3
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
From b20357fb1044d2c100172b1d5cbdf6c6d9bd3590 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pontus Stenetorp <pontus@stenetorp.se>
|
||||||
|
Date: Thu, 8 Apr 2021 05:10:39 +0000
|
||||||
|
Subject: [PATCH 3/6] nix: Skip `chown` tests broken in sandbox
|
||||||
|
|
||||||
|
---
|
||||||
|
test/file.jl | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/file.jl b/test/file.jl
|
||||||
|
index bd4dd78f62..06fd4e49da 100644
|
||||||
|
--- a/test/file.jl
|
||||||
|
+++ b/test/file.jl
|
||||||
|
@@ -503,8 +503,8 @@ if !Sys.iswindows()
|
||||||
|
@test stat(file).gid == 0
|
||||||
|
@test stat(file).uid == 0
|
||||||
|
else
|
||||||
|
- @test_throws Base._UVError("chown($(repr(file)), -2, -1)", Base.UV_EPERM) chown(file, -2, -1) # Non-root user cannot change ownership to another user
|
||||||
|
- @test_throws Base._UVError("chown($(repr(file)), -1, -2)", Base.UV_EPERM) chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
|
||||||
|
+ @test_skip @test_throws Base._UVError("chown($(repr(file)), -2, -1)", Base.UV_EPERM) chown(file, -2, -1) # Non-root user cannot change ownership to another user
|
||||||
|
+ @test_skip @test_throws Base._UVError("chown($(repr(file)), -1, -2)", Base.UV_EPERM) chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
# test that chown doesn't cause any errors for Windows
|
||||||
|
--
|
||||||
|
2.29.3
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
From 44c2c979c4f2222567ce65f506cf47fb87482348 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Pontus Stenetorp <pontus@stenetorp.se>
|
||||||
|
Date: Thu, 8 Apr 2021 04:37:44 +0000
|
||||||
|
Subject: [PATCH 5/6] nix: Enable parallel unit tests for sandbox
|
||||||
|
|
||||||
|
Disabled by default due to lack of networking in the Nix sandbox. This
|
||||||
|
greatly speeds up the build process on a multi-core system.
|
||||||
|
---
|
||||||
|
test/runtests.jl | 5 +++--
|
||||||
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/test/runtests.jl b/test/runtests.jl
|
||||||
|
index 2f9cd058bb..2f8c19fa32 100644
|
||||||
|
--- a/test/runtests.jl
|
||||||
|
+++ b/test/runtests.jl
|
||||||
|
@@ -83,8 +83,9 @@ prepend!(tests, linalg_tests)
|
||||||
|
import LinearAlgebra
|
||||||
|
cd(@__DIR__) do
|
||||||
|
n = 1
|
||||||
|
- if net_on
|
||||||
|
- n = min(Sys.CPU_THREADS, length(tests))
|
||||||
|
+ if net_on || haskey(ENV, "NIX_BUILD_CORES")
|
||||||
|
+ x = haskey(ENV, "NIX_BUILD_CORES") ? parse(Int, ENV["NIX_BUILD_CORES"]) : Sys.CPU_THREADS
|
||||||
|
+ n = min(x, Sys.CPU_THREADS, length(tests))
|
||||||
|
n > 1 && addprocs_with_testenv(n)
|
||||||
|
LinearAlgebra.BLAS.set_num_threads(1)
|
||||||
|
end
|
||||||
|
--
|
||||||
|
2.29.3
|
||||||
|
|
|
@ -0,0 +1,46 @@
|
||||||
|
{ lib, mkCoqDerivation, coq, version ? null }:
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
mkCoqDerivation {
|
||||||
|
pname = "aac-tactics";
|
||||||
|
|
||||||
|
releaseRev = v: "v${v}";
|
||||||
|
|
||||||
|
release."8.13.0".sha256 = "sha256-MAnMc4KzC551JInrRcfKED4nz04FO0GyyyuDVRmnYTY=";
|
||||||
|
release."8.12.0".sha256 = "sha256-dPNA19kZo/2t3rbyX/R5yfGcaEfMhbm9bo71Uo4ZwoM=";
|
||||||
|
release."8.11.0".sha256 = "sha256-CKKMiJLltIb38u+ZKwfQh/NlxYawkafp+okY34cGCYU=";
|
||||||
|
release."8.10.0".sha256 = "sha256-Ny3AgfLAzrz3FnoUqejXLApW+krlkHBmYlo3gAG0JsM=";
|
||||||
|
release."8.9.0".sha256 = "sha256-6Pp0dgYEnVaSnkJR/2Cawt5qaxWDpBI4m0WAbQboeWY=";
|
||||||
|
release."8.8.0".sha256 = "sha256-mwIKp3kf/6i9IN3cyIWjoRtW8Yf8cc3MV744zzFM3u4=";
|
||||||
|
release."8.6.1".sha256 = "sha256-PfovQ9xJnzr0eh/tO66yJ3Yp7A5E1SQG46jLIrrbZFg=";
|
||||||
|
release."8.5.0".sha256 = "sha256-7yNxJn6CH5xS5w/zsXfcZYORa6e5/qS9v8PUq2o02h4=";
|
||||||
|
|
||||||
|
inherit version;
|
||||||
|
defaultVersion = with versions; switch coq.coq-version [
|
||||||
|
{ case = "8.13"; out = "8.13.0"; }
|
||||||
|
{ case = "8.12"; out = "8.12.0"; }
|
||||||
|
{ case = "8.11"; out = "8.11.0"; }
|
||||||
|
{ case = "8.10"; out = "8.10.0"; }
|
||||||
|
{ case = "8.9"; out = "8.9.0"; }
|
||||||
|
{ case = "8.8"; out = "8.8.0"; }
|
||||||
|
{ case = "8.6"; out = "8.6.1"; }
|
||||||
|
{ case = "8.5"; out = "8.5.0"; }
|
||||||
|
] null;
|
||||||
|
|
||||||
|
mlPlugin = true;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Coq plugin providing tactics for rewriting universally quantified equations";
|
||||||
|
longDescription = ''
|
||||||
|
This Coq plugin provides tactics for rewriting universally quantified
|
||||||
|
equations, modulo associativity and commutativity of some operator.
|
||||||
|
The tactics can be applied for custom operators by registering the
|
||||||
|
operators and their properties as type class instances. Many common
|
||||||
|
operator instances, such as for Z binary arithmetic and booleans, are
|
||||||
|
provided with the plugin.
|
||||||
|
'';
|
||||||
|
maintainers = with maintainers; [ siraben ];
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib, mkCoqDerivation, coq, aac-tactics, mathcomp, version ? null }:
|
||||||
|
with lib;
|
||||||
|
|
||||||
|
mkCoqDerivation {
|
||||||
|
pname = "relation-algebra";
|
||||||
|
owner = "damien-pous";
|
||||||
|
|
||||||
|
releaseRev = v: "v${v}";
|
||||||
|
|
||||||
|
release."1.7.5".sha256 = "sha256-XdO8agoJmNXPv8Ho+KTlLCB4oRlQsb0w06aM9M16ZBU=";
|
||||||
|
release."1.7.4".sha256 = "sha256-o+v2CIAa2+9tJ/V8DneDTf4k31KMHycgMBLaQ+A4ufM=";
|
||||||
|
release."1.7.3".sha256 = "sha256-4feSNfi7h4Yhwn5L+9KP9K1S7HCPvsvaVWwoQSTFvos=";
|
||||||
|
release."1.7.2".sha256 = "sha256-f4oNjXspNMEz3AvhIeYO3avbUa1AThoC9DbcHMb5A2o=";
|
||||||
|
release."1.7.1".sha256 = "sha256-WWVMcR6z8rT4wzZPb8SlaVWGe7NC8gScPqawd7bltQA=";
|
||||||
|
|
||||||
|
inherit version;
|
||||||
|
defaultVersion = with versions; switch coq.coq-version [
|
||||||
|
{ case = isGe "8.13"; out = "1.7.5"; }
|
||||||
|
{ case = isGe "8.12"; out = "1.7.4"; }
|
||||||
|
{ case = isGe "8.11"; out = "1.7.3"; }
|
||||||
|
{ case = isGe "8.10"; out = "1.7.2"; }
|
||||||
|
{ case = isGe "8.9"; out = "1.7.1"; }
|
||||||
|
] null;
|
||||||
|
|
||||||
|
mlPlugin = true;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ aac-tactics mathcomp.ssreflect ];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Relation algebra library for Coq";
|
||||||
|
maintainers = with maintainers; [ siraben ];
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
platforms = platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
|
@ -3,13 +3,13 @@
|
||||||
stdenv.mkDerivation rec
|
stdenv.mkDerivation rec
|
||||||
{
|
{
|
||||||
pname = "alembic";
|
pname = "alembic";
|
||||||
version = "1.8.0";
|
version = "1.8.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alembic";
|
owner = "alembic";
|
||||||
repo = "alembic";
|
repo = "alembic";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-c4SN3kNY8415+O/2AYuHNQFEmuTBtLaWj5fsj0yJ2vs=";
|
sha256 = "sha256-ObjpWreabeVzKYVgC62JaoGUf1BZCxP0STjox3akDvo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" "lib" ];
|
outputs = [ "bin" "dev" "out" "lib" ];
|
||||||
|
|
|
@ -12,13 +12,12 @@
|
||||||
, libical
|
, libical
|
||||||
, python3
|
, python3
|
||||||
, tzdata
|
, tzdata
|
||||||
|
, fixDarwinDylibNames
|
||||||
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
, introspectionSupport ? stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
, gobject-introspection ? null
|
, gobject-introspection
|
||||||
, vala ? null
|
, vala
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert introspectionSupport -> gobject-introspection != null && vala != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "libical";
|
pname = "libical";
|
||||||
version = "3.0.10";
|
version = "3.0.10";
|
||||||
|
@ -47,6 +46,8 @@ stdenv.mkDerivation rec {
|
||||||
] ++ lib.optionals introspectionSupport [
|
] ++ lib.optionals introspectionSupport [
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
vala
|
vala
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
fixDarwinDylibNames
|
||||||
];
|
];
|
||||||
installCheckInputs = [
|
installCheckInputs = [
|
||||||
# running libical-glib tests
|
# running libical-glib tests
|
||||||
|
@ -80,6 +81,13 @@ stdenv.mkDerivation rec {
|
||||||
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
enableParallelChecking = false;
|
enableParallelChecking = false;
|
||||||
|
preInstallCheck = if stdenv.isDarwin then ''
|
||||||
|
for testexe in $(find ./src/test -maxdepth 1 -type f -executable); do
|
||||||
|
for lib in $(cd lib && ls *.3.dylib); do
|
||||||
|
install_name_tool -change $lib $out/lib/$lib $testexe
|
||||||
|
done
|
||||||
|
done
|
||||||
|
'' else null;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
runHook preInstallCheck
|
runHook preInstallCheck
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, lib, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchgit, fetchFromGitHub
|
||||||
, gn, ninja, python, glib, pkg-config, icu
|
, gn, ninja, python, pythonPackages, glib, pkg-config, icu
|
||||||
, xcbuild, darwin
|
, xcbuild, darwin
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
}:
|
}:
|
||||||
|
@ -55,6 +55,11 @@ stdenv.mkDerivation rec {
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
# Remove unrecognized clang debug flags
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://raw.githubusercontent.com/saiarcot895/chromium-ubuntu-build/663dbfc492fd2f8ba28d9af40fb3b1327e6aa56e/debian/patches/revert-Xclang-instcombine-lower-dbg-declare.patch";
|
||||||
|
sha256 = "07qp4bjgbwbdrzqslvl2bgbzr3v97b9isbp0539x3lc8cy3h02g1";
|
||||||
|
})
|
||||||
./darwin.patch
|
./darwin.patch
|
||||||
./gcc_arm.patch # Fix building zlib with gcc on aarch64, from https://gist.github.com/Adenilson/d973b6fd96c7709d33ddf08cf1dcb149
|
./gcc_arm.patch # Fix building zlib with gcc on aarch64, from https://gist.github.com/Adenilson/d973b6fd96c7709d33ddf08cf1dcb149
|
||||||
];
|
];
|
||||||
|
@ -78,6 +83,13 @@ stdenv.mkDerivation rec {
|
||||||
postPatch = lib.optionalString stdenv.isAarch64 ''
|
postPatch = lib.optionalString stdenv.isAarch64 ''
|
||||||
substituteInPlace build/toolchain/linux/BUILD.gn \
|
substituteInPlace build/toolchain/linux/BUILD.gn \
|
||||||
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
|
--replace 'toolprefix = "aarch64-linux-gnu-"' 'toolprefix = ""'
|
||||||
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
|
substituteInPlace build/config/compiler/compiler.gni \
|
||||||
|
--replace 'strip_absolute_paths_from_debug_symbols = true' \
|
||||||
|
'strip_absolute_paths_from_debug_symbols = false'
|
||||||
|
substituteInPlace build/config/compiler/BUILD.gn \
|
||||||
|
--replace 'current_toolchain == host_toolchain || !use_xcode_clang' \
|
||||||
|
'false'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
gnFlags = [
|
gnFlags = [
|
||||||
|
@ -85,6 +97,7 @@ stdenv.mkDerivation rec {
|
||||||
"is_clang=${lib.boolToString stdenv.cc.isClang}"
|
"is_clang=${lib.boolToString stdenv.cc.isClang}"
|
||||||
"use_sysroot=false"
|
"use_sysroot=false"
|
||||||
# "use_system_icu=true"
|
# "use_system_icu=true"
|
||||||
|
"clang_use_chrome_plugins=false"
|
||||||
"is_component_build=false"
|
"is_component_build=false"
|
||||||
"v8_use_external_startup_data=false"
|
"v8_use_external_startup_data=false"
|
||||||
"v8_monolithic=true"
|
"v8_monolithic=true"
|
||||||
|
@ -93,16 +106,25 @@ stdenv.mkDerivation rec {
|
||||||
"treat_warnings_as_errors=false"
|
"treat_warnings_as_errors=false"
|
||||||
"v8_enable_i18n_support=true"
|
"v8_enable_i18n_support=true"
|
||||||
"use_gold=false"
|
"use_gold=false"
|
||||||
"use_system_xcode=true"
|
"init_stack_vars=false"
|
||||||
# ''custom_toolchain="//build/toolchain/linux/unbundle:default"''
|
# ''custom_toolchain="//build/toolchain/linux/unbundle:default"''
|
||||||
''host_toolchain="//build/toolchain/linux/unbundle:default"''
|
''host_toolchain="//build/toolchain/linux/unbundle:default"''
|
||||||
''v8_snapshot_toolchain="//build/toolchain/linux/unbundle:default"''
|
''v8_snapshot_toolchain="//build/toolchain/linux/unbundle:default"''
|
||||||
] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${stdenv.cc}"'';
|
] ++ lib.optional stdenv.cc.isClang ''clang_base_path="${stdenv.cc}"'';
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-O2";
|
NIX_CFLAGS_COMPILE = "-O2";
|
||||||
|
FORCE_MAC_SDK_MIN = stdenv.targetPlatform.sdkVer or "10.12";
|
||||||
|
|
||||||
nativeBuildInputs = [ gn ninja pkg-config python ]
|
nativeBuildInputs = [
|
||||||
++ lib.optionals stdenv.isDarwin [ xcbuild darwin.DarwinTools ];
|
gn
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
python
|
||||||
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
|
xcbuild
|
||||||
|
darwin.DarwinTools
|
||||||
|
pythonPackages.setuptools
|
||||||
|
];
|
||||||
buildInputs = [ glib icu ];
|
buildInputs = [ glib icu ];
|
||||||
|
|
||||||
ninjaFlags = [ ":d8" "v8_monolith" ];
|
ninjaFlags = [ ":d8" "v8_monolith" ];
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
, pyyaml
|
, pyyaml
|
||||||
, prance
|
, prance
|
||||||
, marshmallow
|
, marshmallow
|
||||||
|
@ -11,16 +12,20 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "apispec";
|
pname = "apispec";
|
||||||
version = "4.3.0";
|
version = "4.4.1";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "5ec0fe72f1422a1198973fcbb48d0eb5c7390f4b0fbe55474fce999ad6826a9b";
|
sha256 = "sha256-qt7UrkUXUsWLcOV5kj2Nt9rwtx9i3vjI/noqUr18BqI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [
|
propagatedBuildInputs = [
|
||||||
pyyaml
|
pyyaml
|
||||||
prance
|
prance
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
openapi-spec-validator
|
openapi-spec-validator
|
||||||
marshmallow
|
marshmallow
|
||||||
mock
|
mock
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pillow
|
, pillow
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scikitimage
|
, scikitimage
|
||||||
, threadpoolctl
|
, threadpoolctl
|
||||||
}:
|
}:
|
||||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
future numpy pillow scipy scikitlearn scikitimage threadpoolctl
|
future numpy pillow scipy scikit-learn scikitimage threadpoolctl
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook unittest2 ];
|
checkInputs = [ pytestCheckHook unittest2 ];
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python
|
, python
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, pytest
|
, pytest
|
||||||
, isPy27
|
, isPy27
|
||||||
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, biopython
|
, biopython
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pandas
|
, pandas
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, reportlab
|
, reportlab
|
||||||
|
@ -42,7 +42,7 @@ buildPythonPackage rec {
|
||||||
biopython
|
biopython
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
pandas
|
pandas
|
||||||
matplotlib
|
matplotlib
|
||||||
reportlab
|
reportlab
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
, multipledispatch
|
, multipledispatch
|
||||||
, setuptools-scm
|
, setuptools-scm
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
checkInputs = [ pytestCheckHook ];
|
checkInputs = [ pytestCheckHook ];
|
||||||
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikitlearn ];
|
propagatedBuildInputs = [ cloudpickle dask numpy toolz multipledispatch scipy scikit-learn ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/dask/dask-glm/";
|
homepage = "https://github.com/dask/dask-glm/";
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, numpy, toolz # dask[array]
|
, numpy, toolz # dask[array]
|
||||||
, numba
|
, numba
|
||||||
, pandas
|
, pandas
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, dask-glm
|
, dask-glm
|
||||||
, six
|
, six
|
||||||
|
@ -39,7 +39,7 @@ buildPythonPackage rec {
|
||||||
numpy
|
numpy
|
||||||
packaging
|
packaging
|
||||||
pandas
|
pandas
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
six
|
six
|
||||||
toolz
|
toolz
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, pandas
|
, pandas
|
||||||
, scipy
|
, scipy
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, lammps-cython
|
, lammps-cython
|
||||||
, pymatgen-lammps
|
, pymatgen-lammps
|
||||||
, pytestrunner
|
, pytestrunner
|
||||||
|
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||||
pandas
|
pandas
|
||||||
scipy
|
scipy
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
lammps-cython
|
lammps-cython
|
||||||
pymatgen-lammps
|
pymatgen-lammps
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, six
|
, six
|
||||||
, scipy
|
, scipy
|
||||||
, smart_open
|
, smart_open
|
||||||
, scikitlearn, testfixtures, unittest2
|
, scikit-learn, testfixtures, unittest2
|
||||||
, isPy3k
|
, isPy3k
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [ smart_open numpy six scipy ];
|
propagatedBuildInputs = [ smart_open numpy six scipy ];
|
||||||
|
|
||||||
checkInputs = [ scikitlearn testfixtures unittest2 ];
|
checkInputs = [ scikit-learn testfixtures unittest2 ];
|
||||||
|
|
||||||
# Two tests fail.
|
# Two tests fail.
|
||||||
#
|
#
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, networkx
|
, networkx
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, seaborn
|
, seaborn
|
||||||
}:
|
}:
|
||||||
|
@ -31,7 +31,7 @@ buildPythonPackage rec {
|
||||||
matplotlib
|
matplotlib
|
||||||
networkx
|
networkx
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
seaborn
|
seaborn
|
||||||
];
|
];
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, joblib
|
, joblib
|
||||||
, six
|
, six
|
||||||
|
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
propagatedBuildInputs = [ numpy scipy scikitlearn joblib six ];
|
propagatedBuildInputs = [ numpy scipy scikit-learn joblib six ];
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
cd hdbscan/tests
|
cd hdbscan/tests
|
||||||
rm __init__.py
|
rm __init__.py
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchurl, buildPythonPackage, numpy, scikitlearn, setuptools_scm, cython, pytest }:
|
{ lib, fetchurl, buildPythonPackage, numpy, scikit-learn, setuptools_scm, cython, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "hmmlearn";
|
pname = "hmmlearn";
|
||||||
|
@ -10,7 +10,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ setuptools_scm cython ];
|
buildInputs = [ setuptools_scm cython ];
|
||||||
propagatedBuildInputs = [ numpy scikitlearn ];
|
propagatedBuildInputs = [ numpy scikit-learn ];
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pytestCheckHook , pytestcov , numba
|
, pytestCheckHook , pytestcov , numba
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, seaborn
|
, seaborn
|
||||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numba
|
numba
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, mock
|
, mock
|
||||||
, pytorch
|
, pytorch
|
||||||
, pynvml
|
, pynvml
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, tqdm
|
, tqdm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytestCheckHook matplotlib mock pytest_xdist ];
|
checkInputs = [ pytestCheckHook matplotlib mock pytest_xdist ];
|
||||||
propagatedBuildInputs = [ pytorch scikitlearn tqdm pynvml ];
|
propagatedBuildInputs = [ pytorch scikit-learn tqdm pynvml ];
|
||||||
|
|
||||||
# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
|
# runs succesfully in 3.9, however, async isn't correctly closed so it will fail after test suite.
|
||||||
doCheck = pythonOlder "3.9";
|
doCheck = pythonOlder "3.9";
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, scikitlearn, pandas, nose, pytest }:
|
{ lib, buildPythonPackage, fetchPypi, scikit-learn, pandas, nose, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "imbalanced-learn";
|
pname = "imbalanced-learn";
|
||||||
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083";
|
sha256 = "5bd9e86e40ce4001a57426541d7c79b18143cbd181e3330c1a3e5c5c43287083";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ scikitlearn ];
|
propagatedBuildInputs = [ scikit-learn ];
|
||||||
checkInputs = [ nose pytest pandas ];
|
checkInputs = [ nose pytest pandas ];
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export HOME=$PWD
|
export HOME=$PWD
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, isPy27
|
, isPy27
|
||||||
, pandas
|
, pandas
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -17,7 +17,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "0a9xrw4qsh95g85pg2611hvj6xcfncw646si2icaz22haw1x410w";
|
sha256 = "0a9xrw4qsh95g85pg2611hvj6xcfncw646si2icaz22haw1x410w";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ scikitlearn ];
|
propagatedBuildInputs = [ scikit-learn ];
|
||||||
checkInputs = [ pytestCheckHook pandas ];
|
checkInputs = [ pytestCheckHook pandas ];
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMPDIR
|
export HOME=$TMPDIR
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, jinja2
|
, jinja2
|
||||||
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
scikitlearn
|
scikit-learn
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
jinja2
|
jinja2
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, joblib
|
, joblib
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, six
|
, six
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, decorator
|
, decorator
|
||||||
, audioread
|
, audioread
|
||||||
, resampy
|
, resampy
|
||||||
|
@ -21,7 +21,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "af0b9f2ed4bbf6aecbc448a4cd27c16453c397cb6bef0f0cfba0e63afea2b839";
|
sha256 = "af0b9f2ed4bbf6aecbc448a4cd27c16453c397cb6bef0f0cfba0e63afea2b839";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ joblib matplotlib six scikitlearn decorator audioread resampy soundfile pooch ];
|
propagatedBuildInputs = [ joblib matplotlib six scikit-learn decorator audioread resampy soundfile pooch ];
|
||||||
|
|
||||||
# No tests
|
# No tests
|
||||||
# 1. Internet connection is required
|
# 1. Internet connection is required
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, cmake
|
, cmake
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, llvmPackages ? null
|
, llvmPackages ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
];
|
];
|
||||||
|
|
||||||
postConfigure = ''
|
postConfigure = ''
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytest-randomly
|
, pytest-randomly
|
||||||
}:
|
}:
|
||||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ scikitlearn ];
|
propagatedBuildInputs = [ scikit-learn ];
|
||||||
checkInputs = [ pytest-randomly pytestCheckHook ];
|
checkInputs = [ pytest-randomly pytestCheckHook ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, scipy
|
, scipy
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pandas
|
, pandas
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, joblib
|
, joblib
|
||||||
|
@ -33,7 +33,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
scipy
|
scipy
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
pandas
|
pandas
|
||||||
matplotlib
|
matplotlib
|
||||||
joblib
|
joblib
|
||||||
|
@ -45,7 +45,7 @@ buildPythonPackage rec {
|
||||||
license= licenses.bsd3;
|
license= licenses.bsd3;
|
||||||
maintainers = with maintainers; [ evax ];
|
maintainers = with maintainers; [ evax ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
# incompatible with nixpkgs scikitlearn version
|
# incompatible with nixpkgs scikit-learn version
|
||||||
broken = true;
|
broken = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, nibabel
|
, nibabel
|
||||||
, pandas
|
, pandas
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -40,7 +40,7 @@ buildPythonPackage rec {
|
||||||
matplotlib
|
matplotlib
|
||||||
nibabel
|
nibabel
|
||||||
pandas
|
pandas
|
||||||
scikitlearn
|
scikit-learn
|
||||||
];
|
];
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
export HOME=$TMP
|
export HOME=$TMP
|
||||||
|
|
|
@ -13,14 +13,14 @@
|
||||||
, advancedProcessing ? false
|
, advancedProcessing ? false
|
||||||
, opencv3 ? null
|
, opencv3 ? null
|
||||||
, scikitimage ? null
|
, scikitimage ? null
|
||||||
, scikitlearn ? null
|
, scikit-learn ? null
|
||||||
, scipy ? null
|
, scipy ? null
|
||||||
, matplotlib ? null
|
, matplotlib ? null
|
||||||
, youtube-dl ? null
|
, youtube-dl ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert advancedProcessing -> (
|
assert advancedProcessing -> (
|
||||||
opencv3 != null && scikitimage != null && scikitlearn != null
|
opencv3 != null && scikitimage != null && scikit-learn != null
|
||||||
&& scipy != null && matplotlib != null && youtube-dl != null);
|
&& scipy != null && matplotlib != null && youtube-dl != null);
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -40,7 +40,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy decorator imageio imageio-ffmpeg tqdm requests proglog
|
numpy decorator imageio imageio-ffmpeg tqdm requests proglog
|
||||||
] ++ (lib.optionals advancedProcessing [
|
] ++ (lib.optionals advancedProcessing [
|
||||||
opencv3 scikitimage scikitlearn scipy matplotlib youtube-dl
|
opencv3 scikitimage scikit-learn scipy matplotlib youtube-dl
|
||||||
]);
|
]);
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, matplotlib
|
{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, matplotlib
|
||||||
, nibabel, numpy, pandas, scikitlearn, scipy, joblib, requests }:
|
, nibabel, numpy, pandas, scikit-learn, scipy, joblib, requests }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "nilearn";
|
pname = "nilearn";
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
numpy
|
numpy
|
||||||
pandas
|
pandas
|
||||||
requests
|
requests
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
|
{ lib, buildPythonPackage, fetchFromGitHub, geopandas, descartes, matplotlib, networkx, numpy
|
||||||
, pandas, requests, Rtree, shapely, folium, scikitlearn, scipy}:
|
, pandas, requests, Rtree, shapely, folium, scikit-learn, scipy}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "osmnx";
|
pname = "osmnx";
|
||||||
|
@ -12,7 +12,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
|
sha256 = "1k3y5kl4k93vxaxyanc040x44s2fyyc3m1ndy2j3kg0037z8ad4z";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikitlearn scipy ];
|
propagatedBuildInputs = [ geopandas descartes matplotlib networkx numpy pandas requests Rtree shapely folium scikit-learn scipy ];
|
||||||
|
|
||||||
# requires network
|
# requires network
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
, joblib
|
, joblib
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
joblib
|
joblib
|
||||||
matplotlib
|
matplotlib
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy27
|
, isPy27
|
||||||
, pandas
|
, pandas
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pandas
|
pandas
|
||||||
scikitlearn
|
scikit-learn
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, scipy
|
, scipy
|
||||||
, numpy
|
, numpy
|
||||||
, numba
|
, numba
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pytest
|
, pytest
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
@ -25,7 +25,7 @@ buildPythonPackage rec {
|
||||||
scipy
|
scipy
|
||||||
numpy
|
numpy
|
||||||
numba
|
numba
|
||||||
scikitlearn
|
scikit-learn
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, nose
|
, nose
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, numba
|
, numba
|
||||||
, llvmlite
|
, llvmlite
|
||||||
|
@ -19,7 +19,7 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
numba
|
numba
|
||||||
llvmlite
|
llvmlite
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy27
|
, isPy27
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pytorch
|
, pytorch
|
||||||
, torchvision
|
, torchvision
|
||||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
pytorch
|
pytorch
|
||||||
scikitlearn
|
scikit-learn
|
||||||
torchvision
|
torchvision
|
||||||
tqdm
|
tqdm
|
||||||
];
|
];
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
, qiskit-ignis
|
, qiskit-ignis
|
||||||
, qiskit-terra
|
, qiskit-terra
|
||||||
, quandl
|
, quandl
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, yfinance
|
, yfinance
|
||||||
# Optional inputs
|
# Optional inputs
|
||||||
, withTorch ? false
|
, withTorch ? false
|
||||||
|
@ -59,7 +59,7 @@ buildPythonPackage rec {
|
||||||
qiskit-terra
|
qiskit-terra
|
||||||
qiskit-ignis
|
qiskit-ignis
|
||||||
quandl
|
quandl
|
||||||
scikitlearn
|
scikit-learn
|
||||||
yfinance
|
yfinance
|
||||||
] ++ lib.optionals (withTorch) [ pytorch ]
|
] ++ lib.optionals (withTorch) [ pytorch ]
|
||||||
++ lib.optionals (withPyscf) [ pyscf ]
|
++ lib.optionals (withPyscf) [ pyscf ]
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, python
|
, python
|
||||||
, numpy
|
, numpy
|
||||||
, qiskit-terra
|
, qiskit-terra
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
# Optional package inputs
|
# Optional package inputs
|
||||||
, withVisualization ? false
|
, withVisualization ? false
|
||||||
|
@ -44,7 +44,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
qiskit-terra
|
qiskit-terra
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
] ++ lib.optionals (withCvx) [ cvxpy ]
|
] ++ lib.optionals (withCvx) [ cvxpy ]
|
||||||
++ lib.optionals (withVisualization) [ matplotlib ]
|
++ lib.optionals (withVisualization) [ matplotlib ]
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, cython
|
, cython
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, persim
|
, persim
|
||||||
, pytest
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
@ -28,7 +28,7 @@ buildPythonPackage rec {
|
||||||
cython
|
cython
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
persim
|
persim
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
, pandas
|
, pandas
|
||||||
, scipy
|
, scipy
|
||||||
, hdmedians
|
, hdmedians
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, coverage
|
, coverage
|
||||||
, python
|
, python
|
||||||
, isPy3k
|
, isPy3k
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
buildInputs = [ cython ];
|
buildInputs = [ cython ];
|
||||||
checkInputs = [ coverage ];
|
checkInputs = [ coverage ];
|
||||||
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikitlearn ];
|
propagatedBuildInputs = [ lockfile cachecontrol decorator ipython matplotlib natsort numpy pandas scipy hdmedians scikit-learn ];
|
||||||
|
|
||||||
# cython package not included for tests
|
# cython package not included for tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
|
@ -7,7 +7,8 @@
|
||||||
, glibcLocales
|
, glibcLocales
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, pytest
|
, pytestCheckHook
|
||||||
|
, pytest-xdist
|
||||||
, pillow
|
, pillow
|
||||||
, cython
|
, cython
|
||||||
, joblib
|
, joblib
|
||||||
|
@ -54,17 +55,30 @@ buildPythonPackage rec {
|
||||||
joblib
|
joblib
|
||||||
threadpoolctl
|
threadpoolctl
|
||||||
];
|
];
|
||||||
checkInputs = [ pytest ];
|
|
||||||
|
checkInputs = [ pytestCheckHook pytest-xdist ];
|
||||||
|
|
||||||
LC_ALL="en_US.UTF-8";
|
LC_ALL="en_US.UTF-8";
|
||||||
|
|
||||||
doCheck = !stdenv.isAarch64;
|
preBuild = ''
|
||||||
# Skip test_feature_importance_regression - does web fetch
|
export SKLEARN_BUILD_PARALLEL=$NIX_BUILD_CORES
|
||||||
checkPhase = ''
|
|
||||||
cd $TMPDIR
|
|
||||||
HOME=$TMPDIR OMP_NUM_THREADS=1 pytest -k "not test_feature_importance_regression" --pyargs sklearn
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = !stdenv.isAarch64;
|
||||||
|
|
||||||
|
# Skip test_feature_importance_regression - does web fetch
|
||||||
|
disabledTests = [ "test_feature_importance_regression" ];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "-n" "$NIX_BUILD_CORES" "--pyargs" "sklearn" ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
cd $TMPDIR
|
||||||
|
export HOME=$TMPDIR
|
||||||
|
export OMP_NUM_THREADS=1
|
||||||
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "sklearn" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A set of python modules for machine learning and data mining";
|
description = "A set of python modules for machine learning and data mining";
|
||||||
changelog = let
|
changelog = let
|
|
@ -5,7 +5,7 @@
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pyaml
|
, pyaml
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
@ -26,7 +26,7 @@ buildPythonPackage rec {
|
||||||
matplotlib
|
matplotlib
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
pyaml
|
pyaml
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, matplotlib
|
, matplotlib
|
||||||
, numba
|
, numba
|
||||||
, umap-learn
|
, umap-learn
|
||||||
|
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
matplotlib
|
matplotlib
|
||||||
numba
|
numba
|
||||||
umap-learn
|
umap-learn
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, perl
|
, perl
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
@ -27,7 +27,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, pandas
|
, pandas
|
||||||
, tqdm
|
, tqdm
|
||||||
, slicer
|
, slicer
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scipy
|
scipy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
pandas
|
pandas
|
||||||
tqdm
|
tqdm
|
||||||
slicer
|
slicer
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, numpy, scipy, deap, scikitlearn, python }:
|
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, numpy, scipy, deap, scikit-learn, python }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "sklearn-deap";
|
pname = "sklearn-deap";
|
||||||
|
@ -20,7 +20,7 @@ buildPythonPackage rec {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy scipy deap scikitlearn ];
|
propagatedBuildInputs = [ numpy scipy deap scikit-learn ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
${python.interpreter} test.py
|
${python.interpreter} test.py
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
, numpy
|
, numpy
|
||||||
, pandas
|
, pandas
|
||||||
, pytorch
|
, pytorch
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, tabulate
|
, tabulate
|
||||||
, tqdm
|
, tqdm
|
||||||
|
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||||
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
|
sha256 = "9910f97339e654c8d38e0075d87b735e69e5eb11db59c527fb36705b30c8d0a4";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy pytorch scikitlearn scipy tabulate tqdm ];
|
propagatedBuildInputs = [ numpy pytorch scikit-learn scipy tabulate tqdm ];
|
||||||
checkInputs = [ pytest pytestcov flaky pandas pytestCheckHook ];
|
checkInputs = [ pytest pytestcov flaky pandas pytestCheckHook ];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
, pyphen
|
, pyphen
|
||||||
, pytest
|
, pytest
|
||||||
, requests
|
, requests
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, spacy
|
, spacy
|
||||||
, srsly
|
, srsly
|
||||||
|
@ -35,7 +35,7 @@ buildPythonPackage rec {
|
||||||
pyemd
|
pyemd
|
||||||
pyphen
|
pyphen
|
||||||
requests
|
requests
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
spacy
|
spacy
|
||||||
srsly
|
srsly
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, nose
|
, nose
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, scipy
|
, scipy
|
||||||
, numba
|
, numba
|
||||||
, pynndescent
|
, pynndescent
|
||||||
|
@ -24,7 +24,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
numba
|
numba
|
||||||
pynndescent
|
pynndescent
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
, pygments
|
, pygments
|
||||||
, numpy
|
, numpy
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn }:
|
, scikit-learn }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "vowpalwabbit";
|
pname = "vowpalwabbit";
|
||||||
|
@ -36,7 +36,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
numpy
|
numpy
|
||||||
scikitlearn
|
scikit-learn
|
||||||
scipy
|
scipy
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
, fetchzip
|
, fetchzip
|
||||||
, cython
|
, cython
|
||||||
, numpy
|
, numpy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, six
|
, six
|
||||||
, setuptools_scm
|
, setuptools_scm
|
||||||
, gcc
|
, gcc
|
||||||
|
@ -30,7 +30,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools_scm gcc ];
|
nativeBuildInputs = [ setuptools_scm gcc ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ cython numpy scikitlearn six ];
|
propagatedBuildInputs = [ cython numpy scikit-learn six ];
|
||||||
|
|
||||||
checkInputs = [ pytest pytestcov ];
|
checkInputs = [ pytest pytestcov ];
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, cmake
|
, cmake
|
||||||
, scipy
|
, scipy
|
||||||
, scikitlearn
|
, scikit-learn
|
||||||
, stdenv
|
, stdenv
|
||||||
, xgboost
|
, xgboost
|
||||||
, substituteAll
|
, substituteAll
|
||||||
|
@ -22,7 +22,7 @@ buildPythonPackage {
|
||||||
propagatedBuildInputs = [ scipy ];
|
propagatedBuildInputs = [ scipy ];
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
scikitlearn
|
scikit-learn
|
||||||
pandas
|
pandas
|
||||||
matplotlib
|
matplotlib
|
||||||
graphviz
|
graphviz
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
{ lib, stdenv, fetchFromGitHub,
|
{ lib, stdenv, fetchFromGitHub,
|
||||||
fetchHex, erlang, makeWrapper }:
|
fetchHex, erlang, makeWrapper,
|
||||||
|
writeScript, common-updater-scripts, coreutils, git, gnused, nix, rebar3-nix }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "3.15.1";
|
version = "3.15.1";
|
||||||
owner = "erlang";
|
owner = "erlang";
|
||||||
deps = import ./rebar-deps.nix { inherit fetchHex; };
|
deps = import ./rebar-deps.nix { inherit fetchFromGitHub fetchHex; };
|
||||||
rebar3 = stdenv.mkDerivation rec {
|
rebar3 = stdenv.mkDerivation rec {
|
||||||
pname = "rebar3";
|
pname = "rebar3";
|
||||||
inherit version erlang;
|
inherit version erlang;
|
||||||
|
@ -63,6 +64,31 @@ let
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.updateScript = writeScript "update.sh" ''
|
||||||
|
#!${stdenv.shell}
|
||||||
|
set -ox errexit
|
||||||
|
PATH=${
|
||||||
|
lib.makeBinPath [
|
||||||
|
common-updater-scripts
|
||||||
|
coreutils
|
||||||
|
git
|
||||||
|
gnused
|
||||||
|
nix
|
||||||
|
(rebar3WithPlugins { globalPlugins = [rebar3-nix]; })
|
||||||
|
]
|
||||||
|
}
|
||||||
|
latest=$(list-git-tags https://github.com/${owner}/${pname}.git | sed -n '/[\d\.]\+/p' | sort -V | tail -1)
|
||||||
|
if [ "$latest" != "${version}" ]; then
|
||||||
|
nixpkgs="$(git rev-parse --show-toplevel)"
|
||||||
|
nix_path="$nixpkgs/pkgs/development/tools/build-managers/rebar3"
|
||||||
|
update-source-version rebar3 "$latest" --version-key=version --print-changes --file="$nix_path/default.nix"
|
||||||
|
tmpdir=$(mktemp -d)
|
||||||
|
cp -R $(nix-build $nixpkgs --no-out-link -A rebar3.src)/* "$tmpdir"
|
||||||
|
(cd "$tmpdir" && rebar3 nix lock -o "$nix_path/rebar-deps.nix")
|
||||||
|
else
|
||||||
|
echo "rebar3 is already up-to-date"
|
||||||
|
fi
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ] }:
|
rebar3WithPlugins = { plugins ? [ ], globalPlugins ? [ ] }:
|
||||||
let
|
let
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ fetchHex }:
|
# Generated by rebar3_nix
|
||||||
|
{ fetchHex, fetchFromGitHub }:
|
||||||
{
|
{
|
||||||
ssl_verify_fun = fetchHex {
|
ssl_verify_fun = fetchHex {
|
||||||
pkg = "ssl_verify_fun";
|
pkg = "ssl_verify_fun";
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-cache";
|
pname = "cargo-cache";
|
||||||
version = "0.6.1";
|
version = "0.6.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "matthiaskrgr";
|
owner = "matthiaskrgr";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-qRwyNSAYuAnU17o/5zqKuvixQw7xfA6wNVzN6QRbZlY=";
|
sha256 = "sha256-/xP6TQcLyY1XC8r5SCkwej/I6fMaV5PqNNuvK1WbmeM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-qAq5B/BivQr8yuHtyFGTRigAa5dG2rboc0aD44/38FQ=";
|
cargoSha256 = "sha256-1ZNbqydRsXmMGLhqPrgNAE8bhpZCMAJO/YQbOvtiS/s=";
|
||||||
|
|
||||||
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
||||||
|
|
||||||
|
|
|
@ -11,16 +11,16 @@
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-crev";
|
pname = "cargo-crev";
|
||||||
version = "0.19.2";
|
version = "0.19.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "crev-dev";
|
owner = "crev-dev";
|
||||||
repo = "cargo-crev";
|
repo = "cargo-crev";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-aqvdAljAJsYtmxz/WtMrrnmJJRXDpqDjUn1LusoM8ns=";
|
sha256 = "sha256-XwwzMo06TdyOtGE9Z48mkEr6DnB/89wtMrW+UWr0G/Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-KwnZmehh0vdR1eSPBrY6yHJR6r7mhIEgfN4soEBDTjU=";
|
cargoSha256 = "sha256-gA2Fg4CCi0W+GqJoNPZWw/OjNYh2U2UsC6eMZ9W1QN8=";
|
||||||
|
|
||||||
nativeBuildInputs = [ perl pkg-config ];
|
nativeBuildInputs = [ perl pkg-config ];
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,24 @@
|
||||||
{ lib
|
{ lib
|
||||||
, rustPlatform, fetchFromGitHub
|
, rustPlatform, fetchFromGitHub
|
||||||
, libusb1, pkg-config, rustfmt }:
|
, libusb1, libftdi1, pkg-config, rustfmt }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "cargo-embed";
|
pname = "cargo-embed";
|
||||||
version = "0.8.0";
|
version = "0.10.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "probe-rs";
|
owner = "probe-rs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0klkgl7c42vhqxj6svw26lcr7rccq89bl17jn3p751x6281zvr35";
|
sha256 = "1z8n883cb4jca3phi9x2kwl01xclyr00l8jxgiyd28l2jik78i5k";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "1nqrij4j8787x7zqgdcscf8i436s19gwk08nyixhmf9sprcfb0ck";
|
cargoSha256 = "1ir9qngxmja6cm42m40jqbga9mlfjllm23ca26wyigjv3025pi6i";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config rustfmt ];
|
nativeBuildInputs = [ pkg-config rustfmt ];
|
||||||
buildInputs = [ libusb1 ];
|
buildInputs = [ libusb1 libftdi1 ];
|
||||||
|
|
||||||
|
cargoBuildFlags = [ "--features=ftdi" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cargo extension for working with microcontrollers";
|
description = "A cargo extension for working with microcontrollers";
|
||||||
|
|
|
@ -23,9 +23,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
cargoSha256 = "sha256-P7xyg9I1MhmiKlyAI9cvABcYKNxB6TSvTgMsMk5KxAQ=";
|
cargoSha256 = "sha256-P7xyg9I1MhmiKlyAI9cvABcYKNxB6TSvTgMsMk5KxAQ=";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config rustfmt ];
|
nativeBuildInputs = [ pkg-config rustfmt ];
|
||||||
buildInputs = [ libusb1 ]
|
buildInputs = [ libusb1 openssl ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
||||||
++ lib.optionals (!stdenv.isDarwin) [ openssl ]
|
|
||||||
++ lib.optionals stdenv.isDarwin [ Security ];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A cargo extension for working with microcontrollers";
|
description = "A cargo extension for working with microcontrollers";
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue