Merge remote-tracking branch 'origin/master' into haskell-updates.

This commit is contained in:
Peter Simons 2020-08-13 15:01:25 +02:00
commit a6cfe5246a
71 changed files with 503 additions and 398 deletions

View File

@ -25,6 +25,8 @@ let
clientRestrictions = concatStringsSep ", " (clientAccess ++ dnsBl); clientRestrictions = concatStringsSep ", " (clientAccess ++ dnsBl);
smtpTlsSecurityLevel = if cfg.useDane then "dane" else "may";
mainCf = let mainCf = let
escape = replaceStrings ["$"] ["$$"]; escape = replaceStrings ["$"] ["$$"];
mkList = items: "\n " + concatStringsSep ",\n " items; mkList = items: "\n " + concatStringsSep ",\n " items;
@ -508,6 +510,14 @@ in
''; '';
}; };
useDane = mkOption {
type = types.bool;
default = false;
description = ''
Sets smtp_tls_security_level to "dane" rather than "may". See postconf(5) for details.
'';
};
sslCert = mkOption { sslCert = mkOption {
type = types.str; type = types.str;
default = ""; default = "";
@ -809,13 +819,13 @@ in
// optionalAttrs cfg.enableHeaderChecks { header_checks = [ "regexp:/etc/postfix/header_checks" ]; } // optionalAttrs cfg.enableHeaderChecks { header_checks = [ "regexp:/etc/postfix/header_checks" ]; }
// optionalAttrs (cfg.tlsTrustedAuthorities != "") { // optionalAttrs (cfg.tlsTrustedAuthorities != "") {
smtp_tls_CAfile = cfg.tlsTrustedAuthorities; smtp_tls_CAfile = cfg.tlsTrustedAuthorities;
smtp_tls_security_level = "may"; smtp_tls_security_level = smtpTlsSecurityLevel;
} }
// optionalAttrs (cfg.sslCert != "") { // optionalAttrs (cfg.sslCert != "") {
smtp_tls_cert_file = cfg.sslCert; smtp_tls_cert_file = cfg.sslCert;
smtp_tls_key_file = cfg.sslKey; smtp_tls_key_file = cfg.sslKey;
smtp_tls_security_level = "may"; smtp_tls_security_level = smtpTlsSecurityLevel;
smtpd_tls_cert_file = cfg.sslCert; smtpd_tls_cert_file = cfg.sslCert;
smtpd_tls_key_file = cfg.sslKey; smtpd_tls_key_file = cfg.sslKey;

View File

@ -98,7 +98,7 @@ in
${pkgs.gollum}/bin/gollum \ ${pkgs.gollum}/bin/gollum \
--port ${toString cfg.port} \ --port ${toString cfg.port} \
--host ${cfg.address} \ --host ${cfg.address} \
--config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \ --config ${pkgs.writeText "gollum-config.rb" cfg.extraConfig} \
--ref ${cfg.branch} \ --ref ${cfg.branch} \
${optionalString cfg.mathjax "--mathjax"} \ ${optionalString cfg.mathjax "--mathjax"} \
${optionalString cfg.emoji "--emoji"} \ ${optionalString cfg.emoji "--emoji"} \

View File

@ -25,6 +25,15 @@ let
then "/${lib.concatStringsSep "/" (lib.tail addr)}" then "/${lib.concatStringsSep "/" (lib.tail addr)}"
else null; # not valid for listen stream, skip else null; # not valid for listen stream, skip
multiaddrToListenDatagram = addrRaw: let
addr = splitMulitaddr addrRaw;
s = builtins.elemAt addr;
in if s 0 == "ip4" && s 2 == "udp"
then "${s 1}:${s 3}"
else if s 0 == "ip6" && s 2 == "udp"
then "[${s 1}]:${s 3}"
else null; # not valid for listen datagram, skip
in { in {
###### interface ###### interface
@ -268,9 +277,14 @@ in {
systemd.sockets.ipfs-gateway = { systemd.sockets.ipfs-gateway = {
wantedBy = [ "sockets.target" ]; wantedBy = [ "sockets.target" ];
socketConfig.ListenStream = let socketConfig = {
fromCfg = multiaddrToListenStream cfg.gatewayAddress; ListenStream = let
in [ "" ] ++ lib.optional (fromCfg != null) fromCfg; fromCfg = multiaddrToListenStream cfg.gatewayAddress;
in [ "" ] ++ lib.optional (fromCfg != null) fromCfg;
ListenDatagram = let
fromCfg = multiaddrToListenDatagram cfg.gatewayAddress;
in [ "" ] ++ lib.optional (fromCfg != null) fromCfg;
};
}; };
systemd.sockets.ipfs-api = { systemd.sockets.ipfs-api = {

View File

@ -531,81 +531,65 @@ in {
environment.systemPackages = [ occ ]; environment.systemPackages = [ occ ];
services.nginx = mkDefault { services.nginx.enable = mkDefault true;
enable = true; services.nginx.virtualHosts.${cfg.hostName} = {
virtualHosts.${cfg.hostName} = { root = cfg.package;
root = cfg.package; locations = {
locations = { "= /robots.txt" = {
"= /robots.txt" = { priority = 100;
priority = 100; extraConfig = ''
extraConfig = '' allow all;
allow all; log_not_found off;
log_not_found off;
access_log off;
'';
};
"/" = {
priority = 200;
extraConfig = "rewrite ^ /index.php;";
};
"~ ^/store-apps" = {
priority = 201;
extraConfig = "root ${cfg.home};";
};
"= /.well-known/carddav" = {
priority = 210;
extraConfig = "return 301 $scheme://$host/remote.php/dav;";
};
"= /.well-known/caldav" = {
priority = 210;
extraConfig = "return 301 $scheme://$host/remote.php/dav;";
};
"~ ^\\/(?:build|tests|config|lib|3rdparty|templates|data)\\/" = {
priority = 300;
extraConfig = "deny all;";
};
"~ ^\\/(?:\\.|autotest|occ|issue|indie|db_|console)" = {
priority = 300;
extraConfig = "deny all;";
};
"~ ^\\/(?:index|remote|public|cron|core/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|ocs-provider\\/.+|ocm-provider\\/.+)\\.php(?:$|\\/)" = {
priority = 500;
extraConfig = ''
include ${config.services.nginx.package}/conf/fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(\\/.*)$;
try_files $fastcgi_script_name =404;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS ${if cfg.https then "on" else "off"};
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass unix:${fpm.socket};
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_read_timeout 120s;
'';
};
"~ ^\\/(?:updater|ocs-provider|ocm-provider)(?:$|\\/)".extraConfig = ''
try_files $uri/ =404;
index index.php;
'';
"~ \\.(?:css|js|woff2?|svg|gif)$".extraConfig = ''
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Frame-Options sameorigin;
add_header Referrer-Policy no-referrer;
access_log off;
'';
"~ \\.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$".extraConfig = ''
try_files $uri /index.php$request_uri;
access_log off; access_log off;
''; '';
}; };
extraConfig = '' "/" = {
priority = 200;
extraConfig = "rewrite ^ /index.php;";
};
"~ ^/store-apps" = {
priority = 201;
extraConfig = "root ${cfg.home};";
};
"= /.well-known/carddav" = {
priority = 210;
extraConfig = "return 301 $scheme://$host/remote.php/dav;";
};
"= /.well-known/caldav" = {
priority = 210;
extraConfig = "return 301 $scheme://$host/remote.php/dav;";
};
"~ ^\\/(?:build|tests|config|lib|3rdparty|templates|data)\\/" = {
priority = 300;
extraConfig = "deny all;";
};
"~ ^\\/(?:\\.|autotest|occ|issue|indie|db_|console)" = {
priority = 300;
extraConfig = "deny all;";
};
"~ ^\\/(?:index|remote|public|cron|core/ajax\\/update|status|ocs\\/v[12]|updater\\/.+|ocs-provider\\/.+|ocm-provider\\/.+)\\.php(?:$|\\/)" = {
priority = 500;
extraConfig = ''
include ${config.services.nginx.package}/conf/fastcgi.conf;
fastcgi_split_path_info ^(.+\.php)(\\/.*)$;
try_files $fastcgi_script_name =404;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS ${if cfg.https then "on" else "off"};
fastcgi_param modHeadersAvailable true;
fastcgi_param front_controller_active true;
fastcgi_pass unix:${fpm.socket};
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_read_timeout 120s;
'';
};
"~ ^\\/(?:updater|ocs-provider|ocm-provider)(?:$|\\/)".extraConfig = ''
try_files $uri/ =404;
index index.php;
'';
"~ \\.(?:css|js|woff2?|svg|gif)$".extraConfig = ''
try_files $uri /index.php$request_uri;
add_header Cache-Control "public, max-age=15778463";
add_header X-Content-Type-Options nosniff; add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block"; add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none; add_header X-Robots-Tag none;
@ -613,25 +597,39 @@ in {
add_header X-Permitted-Cross-Domain-Policies none; add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Frame-Options sameorigin; add_header X-Frame-Options sameorigin;
add_header Referrer-Policy no-referrer; add_header Referrer-Policy no-referrer;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always; access_log off;
error_page 403 /core/templates/403.php; '';
error_page 404 /core/templates/404.php; "~ \\.(?:png|html|ttf|ico|jpg|jpeg|bcmap|mp4|webm)$".extraConfig = ''
client_max_body_size ${cfg.maxUploadSize}; try_files $uri /index.php$request_uri;
fastcgi_buffers 64 4K; access_log off;
fastcgi_hide_header X-Powered-By;
gzip on;
gzip_vary on;
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
${optionalString cfg.webfinger ''
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
''}
''; '';
}; };
extraConfig = ''
add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;
add_header X-Download-Options noopen;
add_header X-Permitted-Cross-Domain-Policies none;
add_header X-Frame-Options sameorigin;
add_header Referrer-Policy no-referrer;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
client_max_body_size ${cfg.maxUploadSize};
fastcgi_buffers 64 4K;
fastcgi_hide_header X-Powered-By;
gzip on;
gzip_vary on;
gzip_comp_level 4;
gzip_min_length 256;
gzip_proxied expired no-cache no-store private no_last_modified no_etag auth;
gzip_types application/atom+xml application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy;
${optionalString cfg.webfinger ''
rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
''}
'';
}; };
} }
]); ]);

View File

@ -704,7 +704,10 @@ in
''; '';
serviceConfig = { serviceConfig = {
ExecStart = execCommand; ExecStart = execCommand;
ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; ExecReload = [
"${execCommand} -t"
"${pkgs.coreutils}/bin/kill -HUP $MAINPID"
];
Restart = "always"; Restart = "always";
RestartSec = "10s"; RestartSec = "10s";
StartLimitInterval = "1min"; StartLimitInterval = "1min";
@ -761,8 +764,7 @@ in
serviceConfig.TimeoutSec = 60; serviceConfig.TimeoutSec = 60;
script = '' script = ''
if /run/current-system/systemd/bin/systemctl -q is-active nginx.service ; then if /run/current-system/systemd/bin/systemctl -q is-active nginx.service ; then
${execCommand} -t && \ /run/current-system/systemd/bin/systemctl reload nginx.service
/run/current-system/systemd/bin/systemctl reload nginx.service
fi fi
''; '';
serviceConfig.RemainAfterExit = true; serviceConfig.RemainAfterExit = true;

View File

@ -374,7 +374,8 @@ let
) config.boot.initrd.secrets) ) config.boot.initrd.secrets)
} }
(cd "$tmp" && find . | cpio -H newc -o) | gzip >>"$1" (cd "$tmp" && find . -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null) | \
${config.boot.initrd.compressor} >> "$1"
''; '';
in in

View File

@ -379,6 +379,16 @@ in rec {
''; '';
}; };
listenDatagrams = mkOption {
default = [];
type = types.listOf types.str;
example = [ "0.0.0.0:993" "/run/my-socket" ];
description = ''
For each item in this list, a <literal>ListenDatagram</literal>
option in the <literal>[Socket]</literal> section will be created.
'';
};
socketConfig = mkOption { socketConfig = mkOption {
default = {}; default = {};
example = { ListenStream = "/run/my-socket"; }; example = { ListenStream = "/run/my-socket"; };

View File

@ -354,6 +354,7 @@ let
[Socket] [Socket]
${attrsToSection def.socketConfig} ${attrsToSection def.socketConfig}
${concatStringsSep "\n" (map (s: "ListenStream=${s}") def.listenStreams)} ${concatStringsSep "\n" (map (s: "ListenStream=${s}") def.listenStreams)}
${concatStringsSep "\n" (map (s: "ListenDatagram=${s}") def.listenDatagrams)}
''; '';
}; };

View File

@ -40,6 +40,8 @@ let
mopidy-iris = callPackage ./iris.nix { }; mopidy-iris = callPackage ./iris.nix { };
mopidy-tunein = callPackage ./tunein.nix { };
}; };
in self in self

View File

@ -0,0 +1,28 @@
{ stdenv, python3Packages, mopidy }:
python3Packages.buildPythonApplication rec {
pname = "mopidy-tunein";
version = "1.0.0";
src = python3Packages.fetchPypi {
inherit version;
pname = "Mopidy-TuneIn";
sha256 = "0insasf4w8ajsqjh5zmax7pkzmrk1p245vh4y8ddicldj45p6qfj";
};
propagatedBuildInputs = [
mopidy
];
# tests fail with "ValueError: Namespace Gst not available" in mopidy itself
doCheck = false;
pythonImportsCheck = [ "mopidy_tunein.tunein" ];
meta = with stdenv.lib; {
description = "Mopidy extension for playing music from tunein.";
homepage = "https://github.com/kingosticks/mopidy-tunein";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}

View File

@ -20,16 +20,12 @@
with stdenv.lib; with stdenv.lib;
let let
version = "0.20.0"; version = "0.20.1";
majorMinorVersion = versions.majorMinor version; majorMinorVersion = versions.majorMinor version;
desktop = fetchurl { desktop = fetchurl {
url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop"; url = "https://raw.githubusercontent.com/bitcoin-core/packaging/${majorMinorVersion}/debian/bitcoin-qt.desktop";
sha256 = "0cpna0nxcd1dw3nnzli36nf9zj28d2g9jf5y0zl9j18lvanvniha"; sha256 = "0cpna0nxcd1dw3nnzli36nf9zj28d2g9jf5y0zl9j18lvanvniha";
}; };
pixmap = fetchurl {
url = "https://raw.githubusercontent.com/bitcoin/bitcoin/v${version}/share/pixmaps/bitcoin128.png";
sha256 = "08p7j7dg50jlj783kkgdw037klmx0spqjikaprmbkzgcb620r25d";
};
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = if withGui then "bitcoin" else "bitcoind"; pname = if withGui then "bitcoin" else "bitcoind";
@ -40,7 +36,7 @@ stdenv.mkDerivation rec {
"https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" "https://bitcoincore.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
"https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz" "https://bitcoin.org/bin/bitcoin-core-${version}/bitcoin-${version}.tar.gz"
]; ];
sha256 = "ec5a2358ee868d845115dc4fc3ed631ff063c57d5e0a713562d083c5c45efb28"; sha256 = "4bbd62fd6acfa5e9864ebf37a24a04bc2dcfe3e3222f056056288d854c53b978";
}; };
nativeBuildInputs = nativeBuildInputs =
@ -53,7 +49,7 @@ stdenv.mkDerivation rec {
postInstall = optional withGui '' postInstall = optional withGui ''
install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop install -Dm644 ${desktop} $out/share/applications/bitcoin-qt.desktop
install -Dm644 ${pixmap} $out/share/pixmaps/bitcoin128.png install -Dm644 share/pixmaps/bitcoin128.png $out/share/pixmaps/bitcoin128.png
''; '';
configureFlags = [ configureFlags = [

View File

@ -138,7 +138,7 @@ let
ln -s ${rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby ln -s ${rubyEnv}/bin/neovim-ruby-host $out/bin/nvim-ruby
'' ''
+ optionalString withNodeJs '' + optionalString withNodeJs ''
ln -s ${nodePackages.neovim}/bin/neovim-node $out/bin/nvim-node ln -s ${nodePackages.neovim}/bin/neovim-node-host $out/bin/nvim-node
'' ''
+ optionalString vimAlias '' + optionalString vimAlias ''
ln -s $out/bin/nvim $out/bin/vim ln -s $out/bin/nvim $out/bin/vim

View File

@ -3,13 +3,13 @@
mkDerivation rec { mkDerivation rec {
pname = "tiled"; pname = "tiled";
version = "1.4.1"; version = "1.4.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "bjorn"; owner = "bjorn";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1x8jymmc56di1c1wxalsp6qhcban2hahn70ndd097b8mx52gckjr"; sha256 = "0b3xjcc86vs9lfxr7xann9d43dz3v3x1g7j1mcn31sy2n68a1wx3";
}; };
nativeBuildInputs = [ pkgconfig qmake ]; nativeBuildInputs = [ pkgconfig qmake ];

View File

@ -20,14 +20,14 @@
with python3Packages; with python3Packages;
buildPythonApplication rec { buildPythonApplication rec {
pname = "kitty"; pname = "kitty";
version = "0.18.2"; version = "0.18.3";
format = "other"; format = "other";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kovidgoyal"; owner = "kovidgoyal";
repo = "kitty"; repo = "kitty";
rev = "v${version}"; rev = "v${version}";
sha256 = "0x6h8g017mbpjkpkb1y8asyfdc48bgjzmj5gachsp5cf5jcqwir2"; sha256 = "0y05bw6d1m79dyhm7b6lk6wy82pmy2s9jhf01kf8gr2p0rjjp9yl";
}; };
buildInputs = [ buildInputs = [

View File

@ -1,8 +1,8 @@
{ lib, haskellPackages, fetchFromGitHub }: { lib, haskellPackages, fetchFromGitHub }:
let let
version = "1.9.4"; version = "1.10.0";
sha256 = "0k8s1f0c99fz6jmqi6jqscsfxrrijnnpyw4jcj8zxpdf0sc07gca"; sha256 = "102iwn6011rypdlx07fzbdll3r5cd204qf96lzwkadvjb7h8clil";
in (haskellPackages.mkDerivation { in (haskellPackages.mkDerivation {
pname = "taskell"; pname = "taskell";

View File

@ -0,0 +1,6 @@
{ callPackage }:
callPackage ./generic.nix {
version = "0.11.4";
sha256 = "1sykp9sji6f564s7bz0cvnr9w5x92n0l1r1djf1bl7jvv2mi1mcb";
}

View File

@ -0,0 +1,6 @@
{ callPackage }:
callPackage ./generic.nix {
version = "0.12.2";
sha256 = "1gc286ag6plk5kxw7jzr32cp3n5rwydj1z7rds1rfd0fyq7an404";
}

View File

@ -1,8 +1,8 @@
{ stdenv, buildGoPackage, fetchFromGitHub }: { stdenv, buildGoPackage, fetchFromGitHub, version, sha256 }:
buildGoPackage rec { buildGoPackage rec {
pname = "nomad"; pname = "nomad";
version = "0.11.3"; inherit version;
rev = "v${version}"; rev = "v${version}";
goPackagePath = "github.com/hashicorp/nomad"; goPackagePath = "github.com/hashicorp/nomad";
@ -11,8 +11,7 @@ buildGoPackage rec {
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = pname; repo = pname;
inherit rev; inherit rev sha256;
sha256 = "1p7g7x2gl77h1w7aip3xji3s530fj46gspargz4j3i6h4wkyvafb";
}; };
# ui: # ui:

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, openssl { stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, glib, openssl
, glibcLocales, expect, ncurses, libotr, curl, readline, libuuid , glibcLocales, expect, ncurses, libotr, curl, readline, libuuid
, cmocka, libmicrohttpd, stabber, expat, libmesode , cmocka, libmicrohttpd, expat, sqlite, libmesode
, autoconf-archive , autoconf-archive
, autoAwaySupport ? true, libXScrnSaver ? null, libX11 ? null , autoAwaySupport ? true, libXScrnSaver ? null, libX11 ? null
@ -22,16 +22,18 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "profanity"; pname = "profanity";
version = "0.8.1"; version = "0.9.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "profanity-im"; owner = "profanity-im";
repo = "profanity"; repo = "profanity";
rev = version; rev = version;
sha256 = "0fg5xcdlvhsi7a40w4jcxyj7m7wl42jy1cvsa8fi2gb6g9y568k8"; sha256 = "14vbblf639f90bb4npg2xv53cpvk9am9ic4pmc1vnv4m3zsndjg5";
}; };
patches = [ ./patches/packages-osx.patch ./patches/undefined-macros.patch ]; patches = [
./patches/packages-osx.patch
];
enableParallelBuilding = true; enableParallelBuilding = true;
@ -41,7 +43,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
expect readline libuuid glib openssl expat ncurses libotr expect readline libuuid glib openssl expat ncurses libotr
curl libmesode cmocka libmicrohttpd stabber curl libmesode cmocka libmicrohttpd sqlite
] ++ optionals autoAwaySupport [ libXScrnSaver libX11 ] ] ++ optionals autoAwaySupport [ libXScrnSaver libX11 ]
++ optionals notifySupport [ libnotify gdk-pixbuf ] ++ optionals notifySupport [ libnotify gdk-pixbuf ]
++ optionals traySupport [ gnome2.gtk ] ++ optionals traySupport [ gnome2.gtk ]

View File

@ -1,40 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 1e55b1cc..0832a387 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,12 +81,12 @@ elif test "x$enable_python_plugins" != xno; then
AM_CONDITIONAL([BUILD_PYTHON_API], [true])
AC_DEFINE([HAVE_PYTHON], [1], [Python support])
else
- if test "x$enable_python_plugins" = xyes; then
- AC_MSG_ERROR([Python not found, cannot enable Python plugins.])
- else
- AM_CONDITIONAL([BUILD_PYTHON_API], [false])
- AC_MSG_NOTICE([Python development package not found, Python plugin support disabled.])
- fi
+ AS_IF(
+ [test "x$enable_python_plugins" = xyes],
+ [],
+ [AM_CONDITIONAL([BUILD_PYTHON_API], [false])
+ AC_MSG_NOTICE([Python development package not found, Python plugin support disabled.])]
+ )
fi
AS_IF([test "x$PLATFORM" = xosx], [rm -f Python.framework])
else
@@ -107,7 +105,7 @@ else
[AM_CONDITIONAL([BUILD_C_API], [true]) LIBS="$LIBS -ldl" AC_DEFINE([HAVE_C], [1], [C support])],
[AS_IF(
[test "x$enable_c_plugins" = xyes],
- [AC_MSG_ERROR([dl library needed to run C plugins])],
+ [],
[AM_CONDITIONAL([BUILD_C_API], [false])])
])
else
@@ -116,7 +114,6 @@ else
fi
# threading
-ACX_PTHREAD([], [AC_MSG_ERROR([pthread is required])])
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
AS_IF([test "x$PTHREAD_CC" != x], [ CC="$PTHREAD_CC" ])

View File

@ -15,15 +15,15 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "meli"; pname = "meli";
version = "alpha-0.5.1"; version = "alpha-0.6.1";
src = fetchgit { src = fetchgit {
url = "https://git.meli.delivery/meli/meli.git"; url = "https://git.meli.delivery/meli/meli.git";
rev = version; rev = version;
sha256 = "1y5567hdm1s2s272drxvmp6x4y1jpyl7423iz58hgqcsjm9085zv"; sha256 = "0fs3wccbdfxf4nmx9l5wy7qpjk4r11qg0fc59y0pdvjrrslcjsds";
}; };
cargoSha256 = "040dfr09bg5z5pn68dy323hcppd599d3f6k7zxqw5f8n4whnlc9y"; cargoSha256 = "sha256:19j7jrizp7yifmqwrmnv66pka7131jl7ks4zgs3nr5gbb28zvdrz";
cargoBuildFlags = lib.optional withNotmuch "--features=notmuch"; cargoBuildFlags = lib.optional withNotmuch "--features=notmuch";

View File

@ -3,17 +3,17 @@
let let
common = { stname, target, postInstall ? "" }: common = { stname, target, postInstall ? "" }:
buildGoModule rec { buildGoModule rec {
version = "1.7.1"; version = "1.8.0";
name = "${stname}-${version}"; name = "${stname}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "syncthing"; owner = "syncthing";
repo = "syncthing"; repo = "syncthing";
rev = "v${version}"; rev = "v${version}";
sha256 = "1kb324diaq48z1vf36zlcsy9zckr0c3mrd3bmcdn28z2ivqnsc4a"; sha256 = "047y2sy9zif19dlh098ihaski9f3b971q3mmqg97qgfzpa8z8fpr";
}; };
vendorSha256 = "1gmdv0g0gymq6khrwvplw6yfp146kg5ar8vqdp5dlp0myxfzi22b"; vendorSha256 = "0l08d96226l135cqbv1qqw0136f5nzw7likc0nmhcm6ynzv83kj2";
doCheck = false; doCheck = false;
@ -43,7 +43,7 @@ let
}; };
meta = with lib; { meta = with lib; {
homepage = "https://www.syncthing.net/"; homepage = "https://syncthing.net/";
description = "Open Source Continuous File Synchronization"; description = "Open Source Continuous File Synchronization";
license = licenses.mpl20; license = licenses.mpl20;
maintainers = with maintainers; [ pshendry joko peterhoeg andrew-d ]; maintainers = with maintainers; [ pshendry joko peterhoeg andrew-d ];

View File

@ -13,11 +13,11 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gitkraken"; pname = "gitkraken";
version = "7.1.0"; version = "7.2.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 = "1g7i7sq705x5jkp76z4car9na3qvklpi3a766yiv4h79kc5via48"; sha256 = "0nrrcwikx6dx1j1s0b80gh1s932zvxmijpddqp6a1vh3ddc5v1mp";
}; };
dontBuild = true; dontBuild = true;

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "theme-jade1"; pname = "theme-jade1";
version = "1.7"; version = "1.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "madmaxms"; owner = "madmaxms";
repo = "theme-jade-1"; repo = "theme-jade-1";
rev = "v${version}"; rev = "v${version}";
sha256 = "19vg95bf0ylmfhg0frs2k0k7c0wfn933h06wrklb9p5qy84hfig3"; sha256 = "1nvn2ghkdhilrsjpvl7r92aldvbs0nx0xc82jwrfaahi87dgfs8x";
}; };
propagatedUserEnvPkgs = [ gtk-engine-murrine ]; propagatedUserEnvPkgs = [ gtk-engine-murrine ];

View File

@ -8,13 +8,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "marwaita"; pname = "marwaita";
version = "2020-07-01"; version = "7.4.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "darkomarko42"; owner = "darkomarko42";
repo = pname; repo = pname;
rev = "310a3e596e95005752e14e2b96f55966cbb59d67"; rev = version;
sha256 = "1r0jqv3hh74965dgc7qwvvhwzf548gb27z69lbpwz060k9di6zwj"; sha256 = "0kq7d8nqp8m0kbh2k9s0yybfdkyfkhbkjsv22lplnzh1p84pnlx7";
}; };
buildInputs = [ buildInputs = [

View File

@ -1,14 +1,14 @@
{ lib, mkDerivation, fetchFromGitHub, standard-library }: { lib, mkDerivation, fetchFromGitHub, standard-library }:
mkDerivation rec { mkDerivation rec {
version = "0.1"; version = "0.1.3.1";
pname = "agda-categories"; pname = "agda-categories";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "agda"; owner = "agda";
repo = "agda-categories"; repo = "agda-categories";
rev = "release/v${version}"; rev = "v${version}";
sha256 = "0m4pjy92jg6zfziyv0bxv5if03g8k4413ld8c3ii2xa8bzfn04m2"; sha256 = "08mc20qaz9vp5rhi60rh8wvjkg5aby3bgwwdhfnxha1663qf1q24";
}; };
buildInputs = [ standard-library ]; buildInputs = [ standard-library ];
@ -18,11 +18,6 @@ mkDerivation rec {
description = "A new Categories library"; description = "A new Categories library";
license = licenses.bsd3; license = licenses.bsd3;
platforms = platforms.unix; platforms = platforms.unix;
# agda categories takes a lot of memory to build.
# This can be removed if this is eventually fixed upstream.
hydraPlatforms = [];
# Waiting for release 0.2 for this to work
broken = true;
maintainers = with maintainers; [ alexarice turion ]; maintainers = with maintainers; [ alexarice turion ];
}; };
} }

View File

@ -0,0 +1,31 @@
{ lib, mkDerivation, fetchFromGitHub, standard-library }:
mkDerivation rec {
pname = "generic";
version = "0.1";
src = fetchFromGitHub {
repo = "Generic";
owner = "effectfully";
rev = "v${version}";
sha256 = "121121rg3daaqp91845fbyws6g28hyj1ywmh12n54r3nicb35g5q";
};
buildInputs = [
standard-library
];
preBuild = ''
echo "module Everything where" > Everything.agda
find src -name '*.agda' | sed -e 's/src\///;s/\//./g;s/\.agda$//;s/^/import /' >> Everything.agda
'';
meta = with lib; {
description =
"A library for doing generic programming in Agda";
homepage = src.meta.homepage;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ alexarice turion ];
};
}

View File

@ -10,13 +10,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "babl"; pname = "babl";
version = "0.1.78"; version = "0.1.80";
outputs = [ "out" "dev" ]; outputs = [ "out" "dev" ];
src = fetchurl { src = fetchurl {
url = "https://download.gimp.org/pub/babl/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "https://download.gimp.org/pub/babl/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "F9VJNjO/9VhdnzdbxN9ZJRV80ccMzXwipjW+dcFyUjo="; sha256 = "13jgq2i1xkbqw9ijy8sy5iabf5jkviqi0wxlpjcm0n22mwwwqp7p";
}; };
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -7,13 +7,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "cpp-utilities"; pname = "cpp-utilities";
version = "5.5.0"; version = "5.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Martchus"; owner = "Martchus";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "1kzwclf8l89dbw10ya0grhdj7dspmj7rg7rkaa8b7n5lgla968jr"; sha256 = "0998pyrxicpalm2w1wmv7qrfhzgr45kl6xh9gv0zxhx2a4xjqq5v";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];

View File

@ -12,6 +12,9 @@ stdenv.mkDerivation rec {
buildInputs = [ python ]; buildInputs = [ python ];
# https://trac.osgeo.org/geos/ticket/993
configureFlags = stdenv.lib.optional stdenv.isAarch32 "--disable-inline";
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "C++ port of the Java Topology Suite (JTS)"; description = "C++ port of the Java Topology Suite (JTS)";
homepage = "https://trac.osgeo.org/geos"; homepage = "https://trac.osgeo.org/geos";

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libmaxminddb"; pname = "libmaxminddb";
version = "1.4.2"; version = "1.4.3";
src = fetchurl { src = fetchurl {
url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz"; url = meta.homepage + "/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "0mnimbaxnnarlw7g1rh8lpxsyf7xnmzwcczcc3lxw8xyf6ljln6x"; sha256 = "0fd4a4sxiiwzbd5h74wl1ijnb7xybjyybb7q41vdq3w8nk3zdzd5";
}; };
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -14,11 +14,10 @@ GEM
json (>= 1.5.1) json (>= 1.5.1)
atomos (0.1.3) atomos (0.1.3)
claide (1.0.3) claide (1.0.3)
cocoapods (1.10.0.beta.1) cocoapods (1.10.0.beta.2)
activesupport (> 5)
addressable (~> 2.6) addressable (~> 2.6)
claide (>= 1.0.2, < 2.0) claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.10.0.beta.1) cocoapods-core (= 1.10.0.beta.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0) cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 1.4.0, < 2.0) cocoapods-downloader (>= 1.4.0, < 2.0)
cocoapods-plugins (>= 1.0.0, < 2.0) cocoapods-plugins (>= 1.0.0, < 2.0)
@ -33,7 +32,7 @@ GEM
nap (~> 1.0) nap (~> 1.0)
ruby-macho (~> 1.4) ruby-macho (~> 1.4)
xcodeproj (>= 1.17.0, < 2.0) xcodeproj (>= 1.17.0, < 2.0)
cocoapods-core (1.10.0.beta.1) cocoapods-core (1.10.0.beta.2)
activesupport (> 5.0, < 6) activesupport (> 5.0, < 6)
addressable (~> 2.6) addressable (~> 2.6)
algoliasearch (~> 1.0) algoliasearch (~> 1.0)
@ -53,7 +52,7 @@ GEM
netrc (~> 0.11) netrc (~> 0.11)
cocoapods-try (1.2.0) cocoapods-try (1.2.0)
colored2 (3.1.2) colored2 (3.1.2)
concurrent-ruby (1.1.6) concurrent-ruby (1.1.7)
escape (0.0.4) escape (0.0.4)
ethon (0.12.0) ethon (0.12.0)
ffi (>= 1.3.0) ffi (>= 1.3.0)
@ -77,7 +76,7 @@ GEM
ethon (>= 0.9.0) ethon (>= 0.9.0)
tzinfo (1.2.7) tzinfo (1.2.7)
thread_safe (~> 0.1) thread_safe (~> 0.1)
xcodeproj (1.17.1) xcodeproj (1.18.0)
CFPropertyList (>= 2.3.3, < 4.0) CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3) atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0) claide (>= 1.0.2, < 2.0)

View File

@ -63,15 +63,15 @@
version = "1.0.3"; version = "1.0.3";
}; };
cocoapods = { cocoapods = {
dependencies = ["activesupport" "addressable" "claide" "cocoapods-core" "cocoapods-deintegrate" "cocoapods-downloader" "cocoapods-plugins" "cocoapods-search" "cocoapods-trunk" "cocoapods-try" "colored2" "escape" "fourflusher" "gh_inspector" "molinillo" "nap" "ruby-macho" "xcodeproj"]; dependencies = ["addressable" "claide" "cocoapods-core" "cocoapods-deintegrate" "cocoapods-downloader" "cocoapods-plugins" "cocoapods-search" "cocoapods-trunk" "cocoapods-try" "colored2" "escape" "fourflusher" "gh_inspector" "molinillo" "nap" "ruby-macho" "xcodeproj"];
groups = ["default"]; groups = ["default"];
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0mx6gzs1d9za7crgwmk37ybmn395055kzya88iamgcj3yzvv3sqg"; sha256 = "0jf5q75h410b6gymy86j4zy9yhb6n28wa7hrk8p7y2dsafdzbric";
type = "gem"; type = "gem";
}; };
version = "1.10.0.beta.1"; version = "1.10.0.beta.2";
}; };
cocoapods-core = { cocoapods-core = {
dependencies = ["activesupport" "addressable" "algoliasearch" "concurrent-ruby" "fuzzy_match" "nap" "netrc" "public_suffix" "typhoeus"]; dependencies = ["activesupport" "addressable" "algoliasearch" "concurrent-ruby" "fuzzy_match" "nap" "netrc" "public_suffix" "typhoeus"];
@ -79,10 +79,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "1ibc5sx2iqjwrgmd4y2cq6hyd6s37aqyh2w61vw71ap8khcjnwh4"; sha256 = "0vrw6v5fp0m903ghvfwaw3mbxrr68x7hz9bj34rj4icirwp4ifyl";
type = "gem"; type = "gem";
}; };
version = "1.10.0.beta.1"; version = "1.10.0.beta.2";
}; };
cocoapods-deintegrate = { cocoapods-deintegrate = {
groups = ["default"]; groups = ["default"];
@ -161,10 +161,10 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "094387x4yasb797mv07cs3g6f08y56virc2rjcpb1k79rzaj3nhl"; sha256 = "1vnxrbhi7cq3p4y2v9iwd10v1c7l15is4var14hwnb2jip4fyjzz";
type = "gem"; type = "gem";
}; };
version = "1.1.6"; version = "1.1.7";
}; };
escape = { escape = {
groups = ["default"]; groups = ["default"];
@ -366,9 +366,9 @@
platforms = []; platforms = [];
source = { source = {
remotes = ["https://rubygems.org"]; remotes = ["https://rubygems.org"];
sha256 = "0mv5rsbgwq4vzri31w2f1474arrsr5j69rdhklrci6jnjps8dmx9"; sha256 = "18idiqfbvyrcyflccwy4qw125psckrnqy7ggci33m8f3zs8h7hnm";
type = "gem"; type = "gem";
}; };
version = "1.17.1"; version = "1.18.0";
}; };
} }

View File

@ -12,7 +12,10 @@ buildPythonPackage rec {
sha256 = "b8292f4efb3617532f93c60acfec242150406bfd9e298d7f01187d67c311aa91"; sha256 = "b8292f4efb3617532f93c60acfec242150406bfd9e298d7f01187d67c311aa91";
}; };
propagatedBuildInputs = [ ]; # needs packages which are not available in nixpkgs
doCheck = false;
pythonImportsCheck = [ "bids_validator" ];
meta = with lib; { meta = with lib; {
description = "Validator for the Brain Imaging Data Structure"; description = "Validator for the Brain Imaging Data Structure";

View File

@ -8,6 +8,7 @@
, pytest-mock , pytest-mock
, pytest-testmon , pytest-testmon
, requests , requests
, requests-toolbelt
, requests-unixsocket , requests-unixsocket
, setuptools_scm , setuptools_scm
, setuptools-scm-git-archive , setuptools-scm-git-archive
@ -39,10 +40,15 @@ buildPythonPackage rec {
pytest-mock pytest-mock
pytest-testmon pytest-testmon
requests requests
requests-toolbelt
requests-unixsocket requests-unixsocket
trustme trustme
]; ];
# avoid attempting to use 3 packages not available on nixpkgs
# (jaraco.apt, jaraco.context, yg.lockfile)
pytestFlagsArray = [ "--ignore=cheroot/test/test_wsgi.py" ];
# Disable doctest plugin because times out # Disable doctest plugin because times out
# Disable xdist (-n arg) because it's incompatible with testmon # Disable xdist (-n arg) because it's incompatible with testmon
# Deselect test_bind_addr_unix on darwin because times out # Deselect test_bind_addr_unix on darwin because times out

View File

@ -1,27 +1,24 @@
{ stdenv, buildPythonPackage, fetchFromGitHub { stdenv, buildPythonPackage, fetchFromGitHub, pythonOlder
, six, pytest, arrow , six, pytestCheckHook, pytest-benchmark, numpy, arrow, ruamel_yaml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "construct"; pname = "construct";
version = "2.9.45"; version = "2.10.56";
disabled = pythonOlder "3.6";
# no tests in PyPI tarball
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0ig66xrzswpkhhmw123p2nvr15a9lxz54a1fmycfdh09327c1d3y"; sha256 = "1j4mqwyxkbdcsnnk5bbdcljv855w4fglaqc94q1xdzm8kgjxk4mr";
}; };
propagatedBuildInputs = [ six ]; checkInputs = [ pytestCheckHook pytest-benchmark numpy arrow ruamel_yaml ];
checkInputs = [ pytest arrow ]; pytestFlagsArray = [ "--benchmark-disable" ];
# TODO: figure out missing dependencies
doCheck = false;
checkPhase = ''
py.test -k 'not test_numpy and not test_gallery' tests
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Powerful declarative parser (and builder) for binary data"; description = "Powerful declarative parser (and builder) for binary data";

View File

@ -9,14 +9,14 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "jc"; pname = "jc";
version = "1.13.1"; version = "1.13.4";
disabled = isPy27; disabled = isPy27;
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "kellyjonbrazil"; owner = "kellyjonbrazil";
repo = "jc"; repo = "jc";
rev = "v${version}"; rev = "v${version}";
sha256 = "1q5s81izfvxlifa0kzj2qih03d4d0gf7jxkilrcv40rsag5jfb16"; sha256 = "0rwvyyrdnw43pixp8h51rncq2inc9pbbj1j2191y5si00pjw34zr";
}; };
propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ]; propagatedBuildInputs = [ ruamel_yaml xmltodict pygments ];

View File

@ -15,12 +15,12 @@
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "0.10.2"; version = "0.12.0";
pname = "pybids"; pname = "pybids";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "6571ef82e03a958e56aa61cf5b15392f0b2d5dbca92f872061d81524e8da8525"; sha256 = "0flvrb61hfyjjgdz07dlm8m9pqwb8qrx027zfrwa9d5nw1az7g28";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,5 +1,5 @@
{ lib, fetchPypi, buildPythonPackage { lib, fetchPypi, buildPythonPackage
, lxml, pycryptodome, construct , lxml, pycryptodomex, construct
, argon2_cffi, dateutil, future , argon2_cffi, dateutil, future
}: }:
@ -12,8 +12,12 @@ buildPythonPackage rec {
sha256 = "b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284"; sha256 = "b3e07eb2dd3aeb1dfa1a2d2d17be77066ee560c1e770f1c72d7ea5608117d284";
}; };
postPatch = ''
substituteInPlace setup.py --replace "==" ">="
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
lxml pycryptodome construct lxml pycryptodomex construct
argon2_cffi dateutil future argon2_cffi dateutil future
]; ];

View File

@ -26,11 +26,11 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "scikit-build"; pname = "scikit-build";
version = "0.10.0"; version = "0.11.1";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "7342017cc82dd6178e3b19377389b8a8d1f8b429d9cdb315cfb1094e34a0f526"; sha256 = "0p4smkl2rbpl00m5va5qa8hp2hqb3284p2cs6k8zlmi4kgbdyh6s";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -59,15 +59,6 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
# scikit-build PR #458. Remove in version > 0.10.0
patches = [
(fetchpatch {
name = "python38-platform_linux_distribution-fix-458";
url = "https://github.com/scikit-build/scikit-build/commit/faa7284e5bc4c72bc8744987acdf3297b5d2e7e4.patch";
sha256 = "1hgl3cnkf266zaw534b64c88waxfz9721wha0m6j3hsnxk76ayjv";
})
];
disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([ disabledTests = lib.concatMapStringsSep " and " (s: "not " + s) ([
"test_hello_develop" # tries setuptools develop install "test_hello_develop" # tries setuptools develop install
"test_source_distribution" # pip has no way to install missing dependencies "test_source_distribution" # pip has no way to install missing dependencies
@ -75,6 +66,7 @@ buildPythonPackage rec {
"test_fortran_compiler" # passes if gfortran is available "test_fortran_compiler" # passes if gfortran is available
"test_install_command" # tries to alter out path "test_install_command" # tries to alter out path
"test_test_command" # tries to alter out path "test_test_command" # tries to alter out path
"test_setup" # tries to install using distutils
]); ]);
checkPhase = '' checkPhase = ''

View File

@ -2,13 +2,13 @@
buildGoPackage rec { buildGoPackage rec {
pname = "tfsec"; pname = "tfsec";
version = "0.24.1"; version = "0.25.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "liamg"; owner = "liamg";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "10sl3gpjvgjigkb0v35w96xm414widh0ygb6pnzgyz1ph8ilm86p"; sha256 = "06sr20zrbhyj35cyw64bk6sjj9q9lh52kc8wg1ryaimr3dc6lrn1";
}; };
goPackagePath = "github.com/liamg/tfsec"; goPackagePath = "github.com/liamg/tfsec";

View File

@ -419,6 +419,12 @@ stdenv.mkDerivation rec {
# add nix environment vars to .bazelrc # add nix environment vars to .bazelrc
cat >> .bazelrc <<EOF cat >> .bazelrc <<EOF
# Limit the resources Bazel is allowed to use during the build to 1/2 the
# available RAM and 3/4 the available CPU cores. This should help avoid
# overwhelming the build machine.
build --local_ram_resources=HOST_RAM*.5
build --local_cpu_resources=HOST_CPUS*.75
build --distdir=${distDir} build --distdir=${distDir}
fetch --distdir=${distDir} fetch --distdir=${distDir}
build --copt="$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt="/g')" build --copt="$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt="/g')"

View File

@ -23,11 +23,8 @@ buildGoModule rec {
# avoid finding test and development commands # avoid finding test and development commands
sourceRoot = "source/kustomize"; sourceRoot = "source/kustomize";
deleteVendor = true;
vendorSha256 = "01ff3w4hwp4ynqhg8cplv0i2ixs811d2x2j6xbh1lslyyh3z3wc5"; vendorSha256 = "01ff3w4hwp4ynqhg8cplv0i2ixs811d2x2j6xbh1lslyyh3z3wc5";
doCheck = false;
meta = with lib; { meta = with lib; {
description = "Customization of kubernetes YAML configurations"; description = "Customization of kubernetes YAML configurations";
longDescription = '' longDescription = ''

View File

@ -2,13 +2,13 @@
buildGoPackage rec { buildGoPackage rec {
pname = "terraform-ls"; pname = "terraform-ls";
version = "0.5.4"; version = "0.6.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "hashicorp"; owner = "hashicorp";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "05cij0qh1czxnms4zjyycidx84brsmlqw1c6fpk5yv58g3v8d3v7"; sha256 = "0bb6bpdjp9yzbxvc6mz22lawn41ay0frdpgbd7zrm8nkvspc0rl7";
}; };
goPackagePath = "github.com/hashicorp/terraform-ls"; goPackagePath = "github.com/hashicorp/terraform-ls";

View File

@ -2,10 +2,10 @@
{ {
rust-analyzer-unwrapped = callPackage ./generic.nix rec { rust-analyzer-unwrapped = callPackage ./generic.nix rec {
rev = "2020-08-03"; rev = "2020-08-10";
version = "unstable-${rev}"; version = "unstable-${rev}";
sha256 = "07xd9gwzjqnjsb5rnxfa9vxc6dmh04mbd1dcwxsz9fv9dcnsx21l"; sha256 = "0hf9gpvgq7whrc5gnfhc0wjqddp3xpi3azvdccb4yql2pcznz3rh";
cargoSha256 = "0sa8yd3a6y2505w0n9l7d1v03c7dl07zw78fx5r3f4p3lc65n8b4"; cargoSha256 = "1bwch08y2av7aj2l5pvhdxdq24c8favxppz5zcd88rx4brlwn2bq";
}; };
rust-analyzer = callPackage ./wrapper.nix {} { rust-analyzer = callPackage ./wrapper.nix {} {

View File

@ -2,11 +2,11 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "bootstrap"; pname = "bootstrap";
version = "4.5.0"; version = "4.5.2";
src = fetchurl { src = fetchurl {
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/${pname}-${version}-dist.zip"; url = "https://github.com/twbs/bootstrap/releases/download/v${version}/${pname}-${version}-dist.zip";
sha256 = "0wnz7112qfar5qaadxbsp2qpcjaqn0mmzi4j0v4z6rx6lyvar5mb"; sha256 = "03brvh7fir9ylfr0c5b6kvf79bkjny0wxw4r5q8x8h2niycrkazg";
}; };
buildInputs = [ unzip ]; buildInputs = [ unzip ];

View File

@ -15,13 +15,13 @@ let
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "mgba"; pname = "mgba";
version = "0.8.2"; version = "0.8.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mgba-emu"; owner = "mgba-emu";
repo = "mgba"; repo = "mgba";
rev = version; rev = version;
sha256 = "0dlwhn3hrpaqnl5hjs53y8j2i16idxrg3gy688gcwrc9z1a6bkn2"; sha256 = "0rwlfjdr0rzbq4kaplvwsgyb8xq6nrzxss2c8xrgw9hqw3ymx4s3";
}; };
enableParallelBuilding = true; enableParallelBuilding = true;

View File

@ -111,6 +111,7 @@ in rec {
fingers = mkDerivation rec { fingers = mkDerivation rec {
pluginName = "fingers"; pluginName = "fingers";
rtpFilePath = "tmux-fingers.tmux";
version = "1.0.1"; version = "1.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Morantron"; owner = "Morantron";

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "irqbalance"; pname = "irqbalance";
version = "1.6.0"; version = "1.7.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "irqbalance"; owner = "irqbalance";
repo = "irqbalance"; repo = "irqbalance";
rev = "v${version}"; rev = "v${version}";
sha256 = "01r9s63yxaijg8jqcbkwqlyqq2z673szb0vzd7qb2y3gk5jlif2y"; sha256 = "1677ap6z4hvwga0vb8hrvpc0qggyarg9mlg11pxywz7mq94vdx19";
}; };
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];

View File

@ -1,22 +1,22 @@
{ {
"4.14": { "4.14": {
"name": "linux-hardened-4.14.190.a.patch", "name": "linux-hardened-4.14.193.a.patch",
"sha256": "0lk0y2nlld4av8xjcsrqla30bflvvkzjz007s47y9hwbdrbn23pp", "sha256": "0hxr4v6ph29p0916dh894aknna5qxszcpz5xrci81xla3i50vy9v",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/4.14.190.a/linux-hardened-4.14.190.a.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.14.193.a/linux-hardened-4.14.193.a.patch"
}, },
"4.19": { "4.19": {
"name": "linux-hardened-4.19.135.a.patch", "name": "linux-hardened-4.19.139.a.patch",
"sha256": "1x8fl5imcy7ws3pvispv4g3x88dddb3ah57kib78kk5pqi4w20y8", "sha256": "02kzzzk09kiwimwmq437079kqrh4n76jc7a6q5y33wpvgpacdmc9",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.135.a/linux-hardened-4.19.135.a.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/4.19.139.a/linux-hardened-4.19.139.a.patch"
}, },
"5.4": { "5.4": {
"name": "linux-hardened-5.4.54.a.patch", "name": "linux-hardened-5.4.58.a.patch",
"sha256": "16h3iiqf6z8v6bbymxrp36w15qil5lfr6y48vwh99dx1yyrgdyzp", "sha256": "0f2ll67skk78jxz7h8mxppq11giy2y0h2xw3pcp01dmnsci67vzj",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.54.a/linux-hardened-5.4.54.a.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.4.58.a/linux-hardened-5.4.58.a.patch"
}, },
"5.7": { "5.7": {
"name": "linux-hardened-5.7.11.a.patch", "name": "linux-hardened-5.7.15.a.patch",
"sha256": "0vamaqrcs8nq8pjgq86lrxq0cdkr5kp4vydp8z2sr27q7ninnrla", "sha256": "052zwbgx2jbby7cqab45hvbnqr6mbkz0i17hncj94jsy15ghp6ir",
"url": "https://github.com/anthraxx/linux-hardened/releases/download/5.7.11.a/linux-hardened-5.7.11.a.patch" "url": "https://github.com/anthraxx/linux-hardened/releases/download/5.7.15.a/linux-hardened-5.7.15.a.patch"
} }
} }

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring { stdenv, fetchurl, pkgconfig, gnutls, liburcu, lmdb, libcap_ng, libidn2, libunistring
, systemd, nettle, libedit, zlib, libiconv, libintl , systemd, nettle, libedit, zlib, libiconv, libintl, libmaxminddb
, autoreconfHook , autoreconfHook
}: }:
@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
gnutls liburcu libidn2 libunistring gnutls liburcu libidn2 libunistring
nettle libedit nettle libedit
libiconv lmdb libintl libiconv lmdb libintl
libmaxminddb # optional for geoip module (it's tiny)
# without sphinx &al. for developer documentation # without sphinx &al. for developer documentation
] ]
++ optionals stdenv.isLinux [ libcap_ng systemd ] ++ optionals stdenv.isLinux [ libcap_ng systemd ]

View File

@ -11,8 +11,6 @@ buildGoModule rec {
sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc"; sha256 = "0bxf89l53sqan9qq23rwawjkcanv9p61sw56zjqhyx78f0bh0zbc";
}; };
deleteVendor = true;
patches = [ patches = [
./gomod.patch ./gomod.patch
]; ];
@ -23,8 +21,6 @@ buildGoModule rec {
vendorSha256 = "1nkni9ikpc0wngh5v0qmlpn5s9v85lb2ih22f3h3lih7nc29yv87"; vendorSha256 = "1nkni9ikpc0wngh5v0qmlpn5s9v85lb2ih22f3h3lih7nc29yv87";
doCheck = false;
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp bin/gobetween $out/bin cp bin/gobetween $out/bin

View File

@ -2,9 +2,10 @@
# Do not edit! # Do not edit!
{ {
version = "0.113.3"; version = "0.114.0";
components = { components = {
"abode" = ps: with ps; [ ]; # missing inputs: abodepy "abode" = ps: with ps; [ ]; # missing inputs: abodepy
"accuweather" = ps: with ps; [ ]; # missing inputs: accuweather
"acer_projector" = ps: with ps; [ pyserial]; "acer_projector" = ps: with ps; [ pyserial];
"acmeda" = ps: with ps; [ ]; # missing inputs: aiopulse "acmeda" = ps: with ps; [ ]; # missing inputs: aiopulse
"actiontec" = ps: with ps; [ ]; "actiontec" = ps: with ps; [ ];
@ -64,6 +65,7 @@
"awair" = ps: with ps; [ ]; # missing inputs: python_awair "awair" = ps: with ps; [ ]; # missing inputs: python_awair
"aws" = ps: with ps; [ ]; # missing inputs: aiobotocore "aws" = ps: with ps; [ ]; # missing inputs: aiobotocore
"axis" = ps: with ps; [ aiohttp-cors paho-mqtt]; # missing inputs: axis "axis" = ps: with ps; [ aiohttp-cors paho-mqtt]; # missing inputs: axis
"azure_devops" = ps: with ps; [ ]; # missing inputs: aioazuredevops
"azure_event_hub" = ps: with ps; [ ]; # missing inputs: azure-eventhub "azure_event_hub" = ps: with ps; [ ]; # missing inputs: azure-eventhub
"azure_service_bus" = ps: with ps; [ azure-servicebus]; "azure_service_bus" = ps: with ps; [ azure-servicebus];
"baidu" = ps: with ps; [ ]; # missing inputs: baidu-aip "baidu" = ps: with ps; [ ]; # missing inputs: baidu-aip
@ -90,7 +92,7 @@
"bmp280" = ps: with ps; [ ]; # missing inputs: RPi.GPIO adafruit-circuitpython-bmp280 "bmp280" = ps: with ps; [ ]; # missing inputs: RPi.GPIO adafruit-circuitpython-bmp280
"bmw_connected_drive" = ps: with ps; [ ]; # missing inputs: bimmer_connected "bmw_connected_drive" = ps: with ps; [ ]; # missing inputs: bimmer_connected
"bom" = ps: with ps; [ ]; # missing inputs: bomradarloop "bom" = ps: with ps; [ ]; # missing inputs: bomradarloop
"bond" = ps: with ps; [ ]; # missing inputs: bond-home "bond" = ps: with ps; [ ]; # missing inputs: bond-api
"braviatv" = ps: with ps; [ bravia-tv]; "braviatv" = ps: with ps; [ bravia-tv];
"broadlink" = ps: with ps; [ broadlink]; "broadlink" = ps: with ps; [ broadlink];
"brother" = ps: with ps; [ brother]; "brother" = ps: with ps; [ brother];
@ -130,6 +132,7 @@
"concord232" = ps: with ps; [ ]; # missing inputs: concord232 "concord232" = ps: with ps; [ ]; # missing inputs: concord232
"config" = ps: with ps; [ aiohttp-cors]; "config" = ps: with ps; [ aiohttp-cors];
"configurator" = ps: with ps; [ ]; "configurator" = ps: with ps; [ ];
"control4" = ps: with ps; [ ]; # missing inputs: pyControl4
"conversation" = ps: with ps; [ aiohttp-cors]; "conversation" = ps: with ps; [ aiohttp-cors];
"coolmaster" = ps: with ps; [ ]; # missing inputs: pycoolmasternet "coolmaster" = ps: with ps; [ ]; # missing inputs: pycoolmasternet
"coronavirus" = ps: with ps; [ ]; # missing inputs: coronavirus "coronavirus" = ps: with ps; [ ]; # missing inputs: coronavirus
@ -246,6 +249,7 @@
"filesize" = ps: with ps; [ ]; "filesize" = ps: with ps; [ ];
"filter" = ps: with ps; [ aiohttp-cors sqlalchemy]; "filter" = ps: with ps; [ aiohttp-cors sqlalchemy];
"fints" = ps: with ps; [ fints]; "fints" = ps: with ps; [ fints];
"firmata" = ps: with ps; [ ]; # missing inputs: pymata-express
"fitbit" = ps: with ps; [ aiohttp-cors fitbit]; "fitbit" = ps: with ps; [ aiohttp-cors fitbit];
"fixer" = ps: with ps; [ ]; # missing inputs: fixerio "fixer" = ps: with ps; [ ]; # missing inputs: fixerio
"fleetgo" = ps: with ps; [ ]; # missing inputs: ritassist "fleetgo" = ps: with ps; [ ]; # missing inputs: ritassist
@ -427,7 +431,6 @@
"lightwave" = ps: with ps; [ ]; # missing inputs: lightwave "lightwave" = ps: with ps; [ ]; # missing inputs: lightwave
"limitlessled" = ps: with ps; [ limitlessled]; "limitlessled" = ps: with ps; [ limitlessled];
"linksys_smart" = ps: with ps; [ ]; "linksys_smart" = ps: with ps; [ ];
"linky" = ps: with ps; [ ]; # missing inputs: pylinky
"linode" = ps: with ps; [ linode-api]; "linode" = ps: with ps; [ linode-api];
"linux_battery" = ps: with ps; [ batinfo]; "linux_battery" = ps: with ps; [ batinfo];
"lirc" = ps: with ps; [ ]; # missing inputs: python-lirc "lirc" = ps: with ps; [ ]; # missing inputs: python-lirc
@ -471,7 +474,7 @@
"meraki" = ps: with ps; [ aiohttp-cors]; "meraki" = ps: with ps; [ aiohttp-cors];
"message_bird" = ps: with ps; [ ]; # missing inputs: messagebird "message_bird" = ps: with ps; [ ]; # missing inputs: messagebird
"met" = ps: with ps; [ pymetno]; "met" = ps: with ps; [ pymetno];
"meteo_france" = ps: with ps; [ ]; # missing inputs: meteofrance vigilancemeteo "meteo_france" = ps: with ps; [ ]; # missing inputs: meteofrance-api
"meteoalarm" = ps: with ps; [ ]; # missing inputs: meteoalertapi "meteoalarm" = ps: with ps; [ ]; # missing inputs: meteoalertapi
"metoffice" = ps: with ps; [ ]; # missing inputs: datapoint "metoffice" = ps: with ps; [ ]; # missing inputs: datapoint
"mfi" = ps: with ps; [ ]; # missing inputs: mficlient "mfi" = ps: with ps; [ ]; # missing inputs: mficlient
@ -581,6 +584,7 @@
"orvibo" = ps: with ps; [ ]; # missing inputs: orvibo "orvibo" = ps: with ps; [ ]; # missing inputs: orvibo
"osramlightify" = ps: with ps; [ ]; # missing inputs: lightify "osramlightify" = ps: with ps; [ ]; # missing inputs: lightify
"otp" = ps: with ps; [ pyotp]; "otp" = ps: with ps; [ pyotp];
"ovo_energy" = ps: with ps; [ ]; # missing inputs: ovoenergy
"owntracks" = ps: with ps; [ pynacl aiohttp-cors hass-nabucasa paho-mqtt]; "owntracks" = ps: with ps; [ pynacl aiohttp-cors hass-nabucasa paho-mqtt];
"ozw" = ps: with ps; [ aiohttp-cors paho-mqtt]; # missing inputs: python-openzwave-mqtt "ozw" = ps: with ps; [ aiohttp-cors paho-mqtt]; # missing inputs: python-openzwave-mqtt
"panasonic_bluray" = ps: with ps; [ ]; # missing inputs: panacotta "panasonic_bluray" = ps: with ps; [ ]; # missing inputs: panacotta
@ -712,7 +716,7 @@
"simulated" = ps: with ps; [ ]; "simulated" = ps: with ps; [ ];
"sinch" = ps: with ps; [ ]; # missing inputs: clx-sdk-xms "sinch" = ps: with ps; [ ]; # missing inputs: clx-sdk-xms
"sisyphus" = ps: with ps; [ ]; # missing inputs: sisyphus-control "sisyphus" = ps: with ps; [ ]; # missing inputs: sisyphus-control
"sky_hub" = ps: with ps; [ ]; "sky_hub" = ps: with ps; [ ]; # missing inputs: pyskyqhub
"skybeacon" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL] "skybeacon" = ps: with ps; [ ]; # missing inputs: pygatt[GATTTOOL]
"skybell" = ps: with ps; [ ]; # missing inputs: skybellpy "skybell" = ps: with ps; [ ]; # missing inputs: skybellpy
"slack" = ps: with ps; [ ]; # missing inputs: slackclient "slack" = ps: with ps; [ ]; # missing inputs: slackclient
@ -801,7 +805,7 @@
"telnet" = ps: with ps; [ ]; "telnet" = ps: with ps; [ ];
"temper" = ps: with ps; [ ]; # missing inputs: temperusb "temper" = ps: with ps; [ ]; # missing inputs: temperusb
"template" = ps: with ps; [ ]; "template" = ps: with ps; [ ];
"tensorflow" = ps: with ps; [ numpy pillow protobuf]; # missing inputs: tensorflow "tensorflow" = ps: with ps; [ numpy pillow protobuf]; # missing inputs: pycocotools tensorflow tf-models-official tf-slim
"tesla" = ps: with ps; [ ]; # missing inputs: teslajsonpy "tesla" = ps: with ps; [ ]; # missing inputs: teslajsonpy
"tfiac" = ps: with ps; [ ]; # missing inputs: pytfiac "tfiac" = ps: with ps; [ ]; # missing inputs: pytfiac
"thermoworks_smoke" = ps: with ps; [ stringcase]; # missing inputs: thermoworks_smoke "thermoworks_smoke" = ps: with ps; [ stringcase]; # missing inputs: thermoworks_smoke
@ -882,7 +886,7 @@
"vlc_telnet" = ps: with ps; [ ]; # missing inputs: python-telnet-vlc "vlc_telnet" = ps: with ps; [ ]; # missing inputs: python-telnet-vlc
"voicerss" = ps: with ps; [ ]; "voicerss" = ps: with ps; [ ];
"volkszaehler" = ps: with ps; [ ]; # missing inputs: volkszaehler "volkszaehler" = ps: with ps; [ ]; # missing inputs: volkszaehler
"volumio" = ps: with ps; [ ]; "volumio" = ps: with ps; [ ]; # missing inputs: pyvolumio
"volvooncall" = ps: with ps; [ ]; # missing inputs: volvooncall "volvooncall" = ps: with ps; [ ]; # missing inputs: volvooncall
"vultr" = ps: with ps; [ vultr]; "vultr" = ps: with ps; [ vultr];
"w800rf32" = ps: with ps; [ ]; # missing inputs: pyW800rf32 "w800rf32" = ps: with ps; [ ]; # missing inputs: pyW800rf32
@ -904,6 +908,7 @@
"wirelesstag" = ps: with ps; [ ]; # missing inputs: wirelesstagpy "wirelesstag" = ps: with ps; [ ]; # missing inputs: wirelesstagpy
"withings" = ps: with ps; [ aiohttp-cors]; # missing inputs: withings-api "withings" = ps: with ps; [ aiohttp-cors]; # missing inputs: withings-api
"wled" = ps: with ps; [ ]; # missing inputs: wled "wled" = ps: with ps; [ ]; # missing inputs: wled
"wolflink" = ps: with ps; [ ]; # missing inputs: wolf_smartset
"workday" = ps: with ps; [ holidays]; "workday" = ps: with ps; [ holidays];
"worldclock" = ps: with ps; [ ]; "worldclock" = ps: with ps; [ ];
"worldtidesinfo" = ps: with ps; [ ]; "worldtidesinfo" = ps: with ps; [ ];
@ -924,7 +929,7 @@
"yale_smart_alarm" = ps: with ps; [ ]; # missing inputs: yalesmartalarmclient "yale_smart_alarm" = ps: with ps; [ ]; # missing inputs: yalesmartalarmclient
"yamaha" = ps: with ps; [ rxv]; "yamaha" = ps: with ps; [ rxv];
"yamaha_musiccast" = ps: with ps; [ ]; # missing inputs: pymusiccast "yamaha_musiccast" = ps: with ps; [ ]; # missing inputs: pymusiccast
"yandex_transport" = ps: with ps; [ ]; # missing inputs: ya_ma "yandex_transport" = ps: with ps; [ ]; # missing inputs: aioymaps
"yandextts" = ps: with ps; [ ]; "yandextts" = ps: with ps; [ ];
"yeelight" = ps: with ps; [ aiohttp-cors netdisco zeroconf]; # missing inputs: yeelight "yeelight" = ps: with ps; [ aiohttp-cors netdisco zeroconf]; # missing inputs: yeelight
"yeelightsunflower" = ps: with ps; [ ]; # missing inputs: yeelightsunflower "yeelightsunflower" = ps: with ps; [ ]; # missing inputs: yeelightsunflower

View File

@ -72,7 +72,7 @@ let
extraBuildInputs = extraPackages py.pkgs; extraBuildInputs = extraPackages py.pkgs;
# Don't forget to run parse-requirements.py after updating # Don't forget to run parse-requirements.py after updating
hassVersion = "0.113.3"; hassVersion = "0.114.0";
in with py.pkgs; buildPythonApplication rec { in with py.pkgs; buildPythonApplication rec {
pname = "homeassistant"; pname = "homeassistant";
@ -82,7 +82,6 @@ in with py.pkgs; buildPythonApplication rec {
patches = [ patches = [
./relax-dependencies.patch ./relax-dependencies.patch
./fix-flapping-chained-task-logging-test.patch
]; ];
inherit availableComponents; inherit availableComponents;
@ -92,7 +91,7 @@ in with py.pkgs; buildPythonApplication rec {
owner = "home-assistant"; owner = "home-assistant";
repo = "core"; repo = "core";
rev = version; rev = version;
sha256 = "1lrllhafjawrghdp81lz1ffdqcj2q0x9ndp11nhi8s9fd8bb4c8j"; sha256 = "0g7jwhdvdcam7gvrj72aknrsvdwm5i5hs93nngqm26m1g4sng0ma";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [

View File

@ -1,33 +0,0 @@
From 1d54dafad9968465d995d195f683d8032a5194d1 Mon Sep 17 00:00:00 2001
From: "J. Nick Koston" <nick@koston.org>
Date: Sun, 2 Aug 2020 23:05:53 +0000
Subject: [PATCH] Fix flapping chained task logging test
Creating 20 tasks was taking less than 0.0001 seconds which caused
the tests to fail. Increase the number of test tasks by two orders
of magnitude.
---
tests/test_core.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_core.py b/tests/test_core.py
index 12ed00fde2c9..167eda3f6cb4 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -1436,14 +1436,14 @@ async def test_chained_logging_hits_log_timeout(hass, caplog):
async def _task_chain_1():
nonlocal created
created += 1
- if created > 10:
+ if created > 1000:
return
hass.async_create_task(_task_chain_2())
async def _task_chain_2():
nonlocal created
created += 1
- if created > 10:
+ if created > 1000:
return
hass.async_create_task(_task_chain_1())

View File

@ -4,11 +4,11 @@ buildPythonPackage rec {
# the frontend version corresponding to a specific home-assistant version can be found here # the frontend version corresponding to a specific home-assistant version can be found here
# https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json # https://github.com/home-assistant/home-assistant/blob/master/homeassistant/components/frontend/manifest.json
pname = "home-assistant-frontend"; pname = "home-assistant-frontend";
version = "20200716.0"; version = "20200811.0";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "07h8llin0rx06c5v2skkij5756gqdq079ysxzmrm6xnzk9mcvfsk"; sha256 = "0nrvfr4mw7h9py27hkak201jsfrvyxlgswfnda1l7k9ns9y4lpj8";
}; };
# no Python tests implemented # no Python tests implemented

View File

@ -1,16 +1,7 @@
diff --git a/setup.py b/setup.py diff --git a/setup.py b/setup.py
index 7cf06942f3..b3dd1b3e1b 100755 index 81f8727ed6..12200e0b9f 100755
--- a/setup.py --- a/setup.py
+++ b/setup.py +++ b/setup.py
@@ -32,7 +32,7 @@ PROJECT_URLS = {
PACKAGES = find_packages(exclude=["tests", "tests.*"])
REQUIRES = [
- "aiohttp==3.6.1",
+ "aiohttp>=3.6.1",
"astral==1.10.1",
"async_timeout==3.0.1",
"attrs==19.3.0",
@@ -43,13 +43,13 @@ REQUIRES = [ @@ -43,13 +43,13 @@ REQUIRES = [
"jinja2>=2.11.1", "jinja2>=2.11.1",
"PyJWT==1.7.1", "PyJWT==1.7.1",
@ -18,8 +9,7 @@ index 7cf06942f3..b3dd1b3e1b 100755
- "cryptography==2.9.2", - "cryptography==2.9.2",
+ "cryptography>=2.9.2", + "cryptography>=2.9.2",
"pip>=8.0.3", "pip>=8.0.3",
- "python-slugify==4.0.0", "python-slugify==4.0.1",
+ "python-slugify>=4.0.0",
"pytz>=2020.1", "pytz>=2020.1",
"pyyaml==5.3.1", "pyyaml==5.3.1",
- "requests==2.24.0", - "requests==2.24.0",

View File

@ -16,12 +16,12 @@ assert ldapSupport -> aprutil.ldapSupport && openldap != null;
assert http2Support -> nghttp2 != null; assert http2Support -> nghttp2 != null;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "2.4.43"; version = "2.4.46";
pname = "apache-httpd"; pname = "apache-httpd";
src = fetchurl { src = fetchurl {
url = "mirror://apache/httpd/httpd-${version}.tar.bz2"; url = "mirror://apache/httpd/httpd-${version}.tar.bz2";
sha256 = "0hqgw47r3p3521ygkkqs8s30s5crm683081avj6330gwncm6b5x4"; sha256 = "1sj1rwgbcjgkzac3ybjy7j68c9b3dv3ap71m48mrjhf6w7vds3kl";
}; };
# FIXME: -dev depends on -doc # FIXME: -dev depends on -doc

View File

@ -4,13 +4,13 @@ with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "pure-prompt"; pname = "pure-prompt";
version = "1.12.0"; version = "1.13.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sindresorhus"; owner = "sindresorhus";
repo = "pure"; repo = "pure";
rev = "v${version}"; rev = "v${version}";
sha256 = "1h04z7rxmca75sxdfjgmiyf1b5z2byfn6k4srls211l0wnva2r5y"; sha256 = "16q9v4c8lagp4vxm7qhagilqnwf1g4pbds56x5wfj4cwc0x2gclw";
}; };
installPhase = '' installPhase = ''
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
meta = { meta = {
description = "Pretty, minimal and fast ZSH prompt"; description = "Pretty, minimal and fast ZSH prompt";
homepage = https://github.com/sindresorhus/pure; homepage = "https://github.com/sindresorhus/pure";
license = licenses.mit; license = licenses.mit;
platforms = platforms.all; platforms = platforms.all;
maintainers = with maintainers; [ pacien pablovsky ]; maintainers = with maintainers; [ pacien pablovsky ];

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "procs"; pname = "procs";
version = "0.10.3"; version = "0.10.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "dalance"; owner = "dalance";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0lg4v32jx0fxcjz6cj6cxxlg7rhj75k4p75izpkk4l11xpxqhgjm"; sha256 = "1a28kkxcrdfmrq2mmsfkdxfp3msklwga5nbfhjb7a7s64xh8jmjv";
}; };
cargoSha256 = "05qqy6l28ihn7hykkkh1x7z3q58cdrwv76fc22xjcg20985ac2nx"; cargoSha256 = "1xlxjr0pkwlzm7f5xlrsf76in28r9jj41n6gn44vxqbh4x161gs1";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security; buildInputs = stdenv.lib.optional stdenv.isDarwin Security;

View File

@ -26,7 +26,7 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "vips"; pname = "vips";
version = "8.9.2"; version = "8.10.0";
outputs = [ "bin" "out" "man" "dev" ]; outputs = [ "bin" "out" "man" "dev" ];
@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
owner = "libvips"; owner = "libvips";
repo = "libvips"; repo = "libvips";
rev = "v${version}"; rev = "v${version}";
sha256 = "0pgvcp5yjk96izh7kjfprjd9kddx7zqrwwhm8dyalhrwbmj6c2q5"; sha256 = "1v5kfmv1vmzyvz1198jm1kl763s2i3mgnsn69vh6dslasbh769di";
# Remove unicode file names which leads to different checksums on HFS+ # Remove unicode file names which leads to different checksums on HFS+
# vs. other filesystems because of unicode normalisation. # vs. other filesystems because of unicode normalisation.
extraPostFetch = '' extraPostFetch = ''

View File

@ -1,4 +1,12 @@
{ stdenv, rustPlatform, fetchFromGitHub, coreutils, libiconv, Security, installShellFiles }: { stdenv
, rustPlatform
, fetchFromGitHub
, installShellFiles
, makeWrapper
, coreutils
, libiconv
, Security
}:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "broot"; pname = "broot";
@ -13,7 +21,7 @@ rustPlatform.buildRustPackage rec {
cargoSha256 = "18b4lh5x25mbhpffva8ygzm5ad00svm1c3r83vfw0l2f61m7vyjh"; cargoSha256 = "18b4lh5x25mbhpffva8ygzm5ad00svm1c3r83vfw0l2f61m7vyjh";
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ makeWrapper installShellFiles ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ]; buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv Security ];
@ -27,6 +35,23 @@ rustPlatform.buildRustPackage rec {
''; '';
postInstall = '' postInstall = ''
# Do not nag users about installing shell integration, since
# it is impure.
wrapProgram $out/bin/broot \
--set BR_INSTALL no
# Install shell function for bash.
$out/bin/broot --print-shell-function bash > br.bash
install -Dm0444 -t $out/etc/profile.d br.bash
# Install shell function for zsh.
$out/bin/broot --print-shell-function zsh > br.zsh
install -Dm0444 br.zsh $out/share/zsh/site-functions/br
# Install shell function for fish
$out/bin/broot --print-shell-function fish > br.fish
install -Dm0444 -t $out/share/fish/vendor_functions.d br.fish
# install shell completion files # install shell completion files
OUT_DIR=$releaseDir/build/broot-*/out OUT_DIR=$releaseDir/build/broot-*/out

View File

@ -17,17 +17,7 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ]; nativeBuildInputs = [ installShellFiles ];
# TODO: Setting buildFlags probably isn't working properly. I've tried a few buildFlagsArray = [ "-ldflags=-s -w -X main.gVersion=r${version}" ];
# variants, e.g.:
# - buildFlags = [ "-ldflags" "\"-s" "-w"" ""-X 'main.gVersion=${version}'\"" ];
# - buildFlags = [ "-ldflags" "\\\"-X" "${goPackagePath}/main.gVersion=${version}\\\"" ];
# Override the build phase (to set buildFlags):
buildPhase = ''
runHook preBuild
runHook renameImports
go install -ldflags="-s -w -X main.gVersion=r${version}"
runHook postBuild
'';
postInstall = '' postInstall = ''
install -D --mode=444 lf.desktop $out/share/applications/lf.desktop install -D --mode=444 lf.desktop $out/share/applications/lf.desktop

View File

@ -16,11 +16,11 @@ let
pname = "bitwarden"; pname = "bitwarden";
version = { version = {
x86_64-linux = "1.19.0"; x86_64-linux = "1.20.1";
}.${system} or ""; }.${system} or "";
sha256 = { sha256 = {
x86_64-linux = "16qlgnqyi0jwzlz8wg2628jhh83xsk46bl6p4dnwi0ay07lhab9w"; x86_64-linux = "1lywslkpgg9rxwz7kwfknkgdi0r47j14i420r5yxgkaizb7ww27z";
}.${system} or ""; }.${system} or "";
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -1,53 +1,44 @@
{ fetchFromGitHub, python3Packages, stdenv }: { lib, fetchFromGitHub, python3Packages }:
python3Packages.buildPythonPackage rec { python3Packages.buildPythonApplication rec {
pname = "ssh-audit"; pname = "ssh-audit";
version = "1.7.0"; version = "2.2.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "arthepsy"; owner = "jtesta";
repo = pname; repo = pname;
rev = "refs/tags/v${version}"; rev = "v${version}";
sha256 = "0akrychkdym9f6830ysq787c9nc0bkyqvy4h72498lyghwvwc2ms"; sha256 = "1z1h9nsgfaxdnkr9dvc0yzc23b3wz436rg2fycg2glwjhhal8az7";
}; };
checkInputs = [
python3Packages.pytest
python3Packages.pytestcov
];
checkPhase = ''
py.test --cov-report= --cov=ssh-audit -v test
'';
postPatch = '' postPatch = ''
printf %s "$setupPy" > setup.py cp ./README.md pypi/sshaudit/
mkdir scripts cp ./ssh-audit.py pypi/sshaudit/sshaudit.py
cp ssh-audit.py scripts/ssh-audit mv pypi/* .
mkdir ssh_audit ls -lah
cp ssh-audit.py ssh_audit/__init__.py
''; '';
setupPy = /* py */ '' checkInputs = with python3Packages; [
from distutils.core import setup pytestCheckHook
setup( ];
author='arthepsy',
description='${meta.description}',
license='${meta.license.spdxId}',
name='${pname}',
packages=['ssh_audit'],
scripts=['scripts/ssh-audit'],
url='${meta.homepage}',
version='${version}',
)
'';
meta = { disabledTests = [
"test_resolve_error"
"test_resolve_hostname_without_records"
"test_resolve_ipv4"
"test_resolve_ipv6"
"test_resolve_ipv46_both"
"test_resolve_ipv46_order"
"test_invalid_host"
"test_invalid_port"
"test_not_connected_socket"
"test_ssh2_server_simple"
];
meta = with lib; {
description = "Tool for ssh server auditing"; description = "Tool for ssh server auditing";
homepage = "https://github.com/arthepsy/ssh-audit"; homepage = "https://github.com/jtesta/ssh-audit";
license = stdenv.lib.licenses.mit; license = licenses.mit;
maintainers = [ maintainers = with maintainers; [ tv ];
stdenv.lib.maintainers.tv
];
}; };
} }

View File

@ -22,13 +22,13 @@ let
++ recommendedDisplayInformationPrograms; ++ recommendedDisplayInformationPrograms;
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
pname = "inxi"; pname = "inxi";
version = "3.1.05-2"; version = "3.1.05-4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "smxi"; owner = "smxi";
repo = "inxi"; repo = "inxi";
rev = version; rev = version;
sha256 = "1a7nl2wk49yz5hcrph692xh5phv1mdg1m5cbvgv3ya12c6r32pa2"; sha256 = "10x3rjydc9mlbfysj5mc6z9yfnhp9wllbza2cmjb1fz0x72rfrv7";
}; };
buildInputs = [ perl makeWrapper ]; buildInputs = [ perl makeWrapper ];

View File

@ -2,16 +2,16 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "mdbook"; pname = "mdbook";
version = "0.4.1"; version = "0.4.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rust-lang-nursery"; owner = "rust-lang-nursery";
repo = "mdBook"; repo = "mdBook";
rev = "v${version}"; rev = "v${version}";
sha256 = "0rfcvcz3cawyzhdxqyasd9dwrb8c2j6annpl9jx2n6y3ysl345ry"; sha256 = "0rkl5k7a9a0vx06jqvbgki2bwag0ar2pcbg3qi88xnjnnmphzpzj";
}; };
cargoSha256 = "02vfdr1zlagjya5i9wf6ag9k01cf20jlm4yqvgrpjg9zrwv4xr4s"; cargoSha256 = "1zhlb6wnjnayq833h62nm3ndlhiz1qajw8w5ccc88b8q8m4ipd7c";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ]; buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreServices ];

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "ugrep"; pname = "ugrep";
version = "2.5.0"; version = "2.5.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Genivia"; owner = "Genivia";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "0aps4srdss71p6riixcdk50f2484bmq6p2kg95gcb8wbcv3ad3c9"; sha256 = "0z62rqcvcz8iy6ig7y05gn90m0pn99jc0ll9b82kdbr257kz91r1";
}; };
buildInputs = [ boost bzip2 lz4 pcre2 xz zlib ]; buildInputs = [ boost bzip2 lz4 pcre2 xz zlib ];

View File

@ -24,5 +24,7 @@ let
agda-categories = callPackage ../development/libraries/agda/agda-categories { }; agda-categories = callPackage ../development/libraries/agda/agda-categories { };
cubical = callPackage ../development/libraries/agda/cubical { }; cubical = callPackage ../development/libraries/agda/cubical { };
generic = callPackage ../development/libraries/agda/generic { };
}; };
in mkAgdaPackages Agda in mkAgdaPackages Agda

View File

@ -5608,7 +5608,9 @@ in
noip = callPackage ../tools/networking/noip { }; noip = callPackage ../tools/networking/noip { };
nomad = callPackage ../applications/networking/cluster/nomad { }; nomad = nomad_0_11;
nomad_0_11 = callPackage ../applications/networking/cluster/nomad/0.11.nix { };
nomad_0_12 = callPackage ../applications/networking/cluster/nomad/0.12.nix { };
notable = callPackage ../applications/misc/notable { }; notable = callPackage ../applications/misc/notable { };
@ -21462,6 +21464,7 @@ in
mopidy-soundcloud mopidy-soundcloud
mopidy-spotify mopidy-spotify
mopidy-spotify-tunigo mopidy-spotify-tunigo
mopidy-tunein
mopidy-youtube; mopidy-youtube;
motif = callPackage ../development/libraries/motif { }; motif = callPackage ../development/libraries/motif { };

View File

@ -12263,6 +12263,56 @@ let
}; };
}; };
Minion = buildPerlPackage {
pname = "Minion";
version = "10.13";
src = fetchurl {
url = "mirror://cpan/authors/id/S/SR/SRI/Minion-10.13.tar.gz";
sha256 = "0nxk147v22lvc461923yv8fypqpbsajamvcvnlidk8bb54r33afj";
};
propagatedBuildInputs = [ Mojolicious ];
meta = {
homepage = "https://github.com/mojolicious/minion";
description = "A high performance job queue for Perl";
license = stdenv.lib.licenses.artistic2;
maintainers = [ maintainers.sgo ];
};
};
MinionBackendSQLite = buildPerlModule {
pname = "Minion-Backend-SQLite";
version = "5.0.3";
src = fetchurl {
url = "mirror://cpan/authors/id/D/DB/DBOOK/Minion-Backend-SQLite-v5.0.3.tar.gz";
sha256 = "1ch92846cgr1s1y6nlicjxlq9r4qh1a3fig0jlr7ligzw05mxib4";
};
buildInputs = [ ModuleBuildTiny ];
propagatedBuildInputs = [ Minion MojoSQLite ];
meta = {
homepage = "https://github.com/Grinnz/Minion-Backend-SQLite";
description = "SQLite backend for Minion job queue";
license = stdenv.lib.licenses.artistic2;
maintainers = [ maintainers.sgo ];
};
};
MinionBackendmysql = buildPerlPackage {
pname = "Minion-Backend-mysql";
version = "0.21";
src = fetchurl {
url = "mirror://cpan/authors/id/P/PR/PREACTION/Minion-Backend-mysql-0.21.tar.gz";
sha256 = "0dbq0pmyjcrmdjpsrkr1pxvzvdphn6mb6lk5yyyhm380prwrjahn";
};
buildInputs = [ Testmysqld ];
propagatedBuildInputs = [ Minion Mojomysql ];
meta = {
homepage = "https://github.com/preaction/Minion-Backend-mysql";
description = "MySQL backend for Minion job queue";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = [ maintainers.sgo ];
};
};
MixinLinewise = buildPerlPackage { MixinLinewise = buildPerlPackage {
pname = "Mixin-Linewise"; pname = "Mixin-Linewise";
version = "0.108"; version = "0.108";
@ -19492,6 +19542,23 @@ let
buildInputs = [ TestDeep TestDifferences TestException TestWarn ]; buildInputs = [ TestDeep TestDifferences TestException TestWarn ];
}; };
Testmysqld = buildPerlModule {
pname = "Test-mysqld";
version = "1.0013";
src = fetchurl {
url = "mirror://cpan/authors/id/S/SO/SONGMU/Test-mysqld-1.0013.tar.gz";
sha256 = "1vrybrh3is3xfwqdhxr1mvmmdyjhz9p0f6n8hasn7japj2h43bap";
};
buildInputs = [ pkgs.which ModuleBuildTiny TestSharedFork ];
propagatedBuildInputs = [ ClassAccessorLite DBDmysql FileCopyRecursive ];
meta = {
homepage = "https://github.com/kazuho/p5-test-mysqld";
description = "Mysqld runner for tests";
license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ];
maintainers = [ maintainers.sgo ];
};
};
TestNeeds = buildPerlPackage { TestNeeds = buildPerlPackage {
pname = "Test-Needs"; pname = "Test-Needs";
version = "0.002006"; version = "0.002006";