From d9ffee3d2a26cb3fb0f87a3f2fd9ff6e9786275d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Sep 2021 23:53:57 +0200 Subject: [PATCH 01/27] python3Packages.python-owasp-zap-v2-4: init at 0.0.18 --- .../python-owasp-zap-v2-4/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix diff --git a/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix b/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix new file mode 100644 index 000000000000..6bb111a07e91 --- /dev/null +++ b/pkgs/development/python-modules/python-owasp-zap-v2-4/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pyhamcrest +, pytestCheckHook +, requests +, requests-mock +, six +}: + +buildPythonPackage rec { + pname = "python-owasp-zap-v2-4"; + version = "0.0.18"; + + src = fetchFromGitHub { + owner = "zaproxy"; + repo = "zap-api-python"; + rev = version; + sha256 = "0b46m9s0vwaaq8vhiqspdr2ns9qdw65fnjh8mf58gjinlsd27ygk"; + }; + + propagatedBuildInputs = [ + requests + six + ]; + + checkInputs = [ + pyhamcrest + pytestCheckHook + requests-mock + ]; + + pythonImportsCheck = [ "zapv2" ]; + + meta = with lib; { + description = "Python library to access the OWASP ZAP API"; + homepage = "https://github.com/zaproxy/zap-api-python"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 50803af17df7..46fc5c8b6735 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5605,6 +5605,8 @@ in { python-openzwave-mqtt = callPackage ../development/python-modules/python-openzwave-mqtt { }; + python-owasp-zap-v2-4 = callPackage ../development/python-modules/python-owasp-zap-v2-4 { }; + python-songpal = callPackage ../development/python-modules/python-songpal { }; python-swiftclient = callPackage ../development/python-modules/python-swiftclient { }; From 1bd9c25912a2c7ab19d4287616f329b5ad9da52e Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sat, 25 Sep 2021 03:03:58 +0000 Subject: [PATCH 02/27] python38Packages.google-cloud-tasks: 2.5.1 -> 2.5.2 --- .../development/python-modules/google-cloud-tasks/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-tasks/default.nix b/pkgs/development/python-modules/google-cloud-tasks/default.nix index db74ce39812a..138637d70a7b 100644 --- a/pkgs/development/python-modules/google-cloud-tasks/default.nix +++ b/pkgs/development/python-modules/google-cloud-tasks/default.nix @@ -12,11 +12,11 @@ buildPythonPackage rec { pname = "google-cloud-tasks"; - version = "2.5.1"; + version = "2.5.2"; src = fetchPypi { inherit pname version; - sha256 = "sha256-4QOKG7Forf3x5l1XQbbX4A8upIxe+eCiwhPily26du4="; + sha256 = "af870971187b3d58fc87a81323cabec1628fac910c6af82076dd6270b111f17e"; }; propagatedBuildInputs = [ google-api-core grpc-google-iam-v1 libcst proto-plus ]; From cc52fdf55cf1824f0dfd2b4332c190a3f6d85ce4 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sat, 25 Sep 2021 03:58:50 +0000 Subject: [PATCH 03/27] python38Packages.google-cloud-container: 2.7.1 -> 2.8.0 --- .../python-modules/google-cloud-container/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-container/default.nix b/pkgs/development/python-modules/google-cloud-container/default.nix index fccae98ac064..9bac30fd3c13 100644 --- a/pkgs/development/python-modules/google-cloud-container/default.nix +++ b/pkgs/development/python-modules/google-cloud-container/default.nix @@ -12,11 +12,11 @@ buildPythonPackage rec { pname = "google-cloud-container"; - version = "2.7.1"; + version = "2.8.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-nMUMGFU383TC7cXkj6EHaEe4HHS5NzcLBIxp1xgWUzg="; + sha256 = "f58192b534b5324c874547835808ed7d5c116e986f07e57b27b0ac5e12baddca"; }; propagatedBuildInputs = [ google-api-core grpc-google-iam-v1 libcst proto-plus ]; From 754bb699eda359277ebd4e68d359f134dda06ff7 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sat, 25 Sep 2021 05:09:41 +0000 Subject: [PATCH 04/27] python38Packages.google-cloud-firestore: 2.3.2 -> 2.3.3 --- .../python-modules/google-cloud-firestore/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-firestore/default.nix b/pkgs/development/python-modules/google-cloud-firestore/default.nix index c0ec04b4330f..f476dcea7a43 100644 --- a/pkgs/development/python-modules/google-cloud-firestore/default.nix +++ b/pkgs/development/python-modules/google-cloud-firestore/default.nix @@ -13,11 +13,11 @@ buildPythonPackage rec { pname = "google-cloud-firestore"; - version = "2.3.2"; + version = "2.3.3"; src = fetchPypi { inherit pname version; - sha256 = "6e2eb65ccd75c6579214fb2099cfb98c57b2b4907ccb38a2ed21f00f492b7a50"; + sha256 = "ef7572cbc83412dbc9cadd95962e77bfa9962a5cb030706638a4aafa7cad84aa"; }; propagatedBuildInputs = [ From 63c53fb13885d98f82cb5fc5dcf0b92014d8b34d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Sep 2021 09:46:51 +0200 Subject: [PATCH 05/27] python3Packages.pypoolstation: init at 0.4.0 --- .../python-modules/pypoolstation/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/pypoolstation/default.nix diff --git a/pkgs/development/python-modules/pypoolstation/default.nix b/pkgs/development/python-modules/pypoolstation/default.nix new file mode 100644 index 000000000000..b49599cfda10 --- /dev/null +++ b/pkgs/development/python-modules/pypoolstation/default.nix @@ -0,0 +1,41 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchPypi +, poetry-core +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pypoolstation"; + version = "0.4.0"; + format = "pyproject"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "PyPoolstation"; + inherit version; + sha256 = "0qacrjv3qybgx052i8jqs4il3k2g0cdhjcn2lqapv87iqyp287k0"; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "pypoolstation" ]; + + meta = with lib; { + description = "Python library to interact the the Poolstation platform"; + homepage = "https://github.com/cibernox/PyPoolstation"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 50803af17df7..6d010e4ed7b2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5565,6 +5565,8 @@ in { pypoint = callPackage ../development/python-modules/pypoint { }; + pypoolstation = callPackage ../development/python-modules/pypoolstation { }; + pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { }; pyrogram = callPackage ../development/python-modules/pyrogram { }; From af34c6f62703f81963953a35a7176652aa2fe0bd Mon Sep 17 00:00:00 2001 From: Flakebi Date: Sun, 19 Sep 2021 12:13:11 +0200 Subject: [PATCH 06/27] dex-oidc: 2.28.1 -> 2.30.0 --- pkgs/servers/dex/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/dex/default.nix b/pkgs/servers/dex/default.nix index 0f4282699ee2..a27870453c82 100644 --- a/pkgs/servers/dex/default.nix +++ b/pkgs/servers/dex/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "dex"; - version = "2.28.1"; + version = "2.30.0"; src = fetchFromGitHub { owner = "dexidp"; repo = pname; rev = "v${version}"; - sha256 = "sha256-MdrkQ4qclylkan8y845BjLiL+W16iqRuNMmvWsKo+zw="; + sha256 = "sha256-Z/X9Db57eNUJdjzLCJNIW3lCRw05JP2TQ43PqKO6CiI="; }; - vendorSha256 = "sha256-rAqqvnP72BQY/qbSvqNzxh2ZUlF/rP0MR/+yqJai+KY="; + vendorSha256 = "sha256-ksN/1boBQVhevlDseVZsGUWL+Bwy4AMgGNdOPgsNNxk="; subPackages = [ "cmd/dex" From 6ca43a69cc11dfeeab6bcac028847eb946d9c0fd Mon Sep 17 00:00:00 2001 From: Flakebi Date: Mon, 20 Sep 2021 01:43:54 +0200 Subject: [PATCH 07/27] dex-oidc: add module --- .../from_md/release-notes/rl-2111.section.xml | 10 +- .../manual/release-notes/rl-2111.section.md | 5 +- nixos/modules/module-list.nix | 1 + nixos/modules/services/web-apps/dex.nix | 115 ++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/dex-oidc.nix | 78 ++++++++++++ pkgs/servers/dex/default.nix | 4 +- 7 files changed, 210 insertions(+), 4 deletions(-) create mode 100644 nixos/modules/services/web-apps/dex.nix create mode 100644 nixos/tests/dex-oidc.nix diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml index 0f768fbe7a89..c832d28779b8 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml @@ -99,7 +99,15 @@ clipcat, an X11 clipboard manager written in Rust. Available at - [services.clipcat](options.html#o pt-services.clipcat.enable). + services.clipcat. + + + + + dex, + an OpenID Connect (OIDC) identity and OAuth 2.0 provider. + Available at + services.dex. diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md index e169c0a5b8d2..015653f1b2f6 100644 --- a/nixos/doc/manual/release-notes/rl-2111.section.md +++ b/nixos/doc/manual/release-notes/rl-2111.section.md @@ -32,8 +32,9 @@ In addition to numerous new and upgraded packages, this release has the followin - [btrbk](https://digint.ch/btrbk/index.html), a backup tool for btrfs subvolumes, taking advantage of btrfs specific capabilities to create atomic snapshots and transfer them incrementally to your backup locations. Available as [services.btrbk](options.html#opt-services.brtbk.instances). -- [clipcat](https://github.com/xrelkd/clipcat/), an X11 clipboard manager written in Rust. Available at [services.clipcat](options.html#o - pt-services.clipcat.enable). +- [clipcat](https://github.com/xrelkd/clipcat/), an X11 clipboard manager written in Rust. Available at [services.clipcat](options.html#opt-services.clipcat.enable). + +- [dex](https://github.com/dexidp/dex), an OpenID Connect (OIDC) identity and OAuth 2.0 provider. Available at [services.dex](options.html#opt-services.dex.enable). - [geoipupdate](https://github.com/maxmind/geoipupdate), a GeoIP database updater from MaxMind. Available as [services.geoipupdate](options.html#opt-services.geoipupdate.enable). diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index a7decf889877..9f4664d3295f 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -962,6 +962,7 @@ ./services/web-apps/calibre-web.nix ./services/web-apps/convos.nix ./services/web-apps/cryptpad.nix + ./services/web-apps/dex.nix ./services/web-apps/discourse.nix ./services/web-apps/documize.nix ./services/web-apps/dokuwiki.nix diff --git a/nixos/modules/services/web-apps/dex.nix b/nixos/modules/services/web-apps/dex.nix new file mode 100644 index 000000000000..2b5999706d72 --- /dev/null +++ b/nixos/modules/services/web-apps/dex.nix @@ -0,0 +1,115 @@ +{ config, lib, pkgs, ... }: + +with lib; + +let + cfg = config.services.dex; + fixClient = client: if client ? secretFile then ((builtins.removeAttrs client [ "secretFile" ]) // { secret = client.secretFile; }) else client; + filteredSettings = mapAttrs (n: v: if n == "staticClients" then (builtins.map fixClient v) else v) cfg.settings; + secretFiles = flatten (builtins.map (c: if c ? secretFile then [ c.secretFile ] else []) (cfg.settings.staticClients or [])); + + settingsFormat = pkgs.formats.yaml {}; + configFile = settingsFormat.generate "config.yaml" filteredSettings; + + startPreScript = pkgs.writeShellScript "dex-start-pre" ('' + '' + (concatStringsSep "\n" (builtins.map (file: '' + ${pkgs.replace-secret}/bin/replace-secret '${file}' '${file}' /run/dex/config.yaml + '') secretFiles))); +in +{ + options.services.dex = { + enable = mkEnableOption "the OpenID Connect and OAuth2 identity provider"; + + settings = mkOption { + type = settingsFormat.type; + default = {}; + example = literalExample '' + { + # External url + issuer = "http://127.0.0.1:5556/dex"; + storage = { + type = "postgres"; + config.host = "/var/run/postgres"; + }; + web = { + http = "127.0.0.1:5556"; + }; + enablePasswordDB = true; + staticClients = [ + { + id = "oidcclient"; + name = "Client"; + redirectURIs = [ "https://example.com/callback" ]; + secretFile = "/etc/dex/oidcclient"; # The content of `secretFile` will be written into to the config as `secret`. + } + ]; + } + ''; + description = '' + The available options can be found in + the example configuration. + ''; + }; + }; + + config = mkIf cfg.enable { + systemd.services.dex = { + description = "dex identity provider"; + wantedBy = [ "multi-user.target" ]; + after = [ "networking.target" ] ++ (optional (cfg.settings.storage.type == "postgres") "postgresql.service"); + + serviceConfig = { + ExecStart = "${pkgs.dex-oidc}/bin/dex serve /run/dex/config.yaml"; + ExecStartPre = [ + "${pkgs.coreutils}/bin/install -m 600 ${configFile} /run/dex/config.yaml" + "+${startPreScript}" + ]; + RuntimeDirectory = "dex"; + + AmbientCapabilities = "CAP_NET_BIND_SERVICE"; + BindReadOnlyPaths = [ + "/nix/store" + "-/etc/resolv.conf" + "-/etc/nsswitch.conf" + "-/etc/hosts" + "-/etc/localtime" + "-/etc/dex" + ]; + BindPaths = optional (cfg.settings.storage.type == "postgres") "/var/run/postgresql"; + CapabilityBoundingSet = "CAP_NET_BIND_SERVICE"; + # ProtectClock= adds DeviceAllow=char-rtc r + DeviceAllow = ""; + DynamicUser = true; + LockPersonality = true; + MemoryDenyWriteExecute = true; + NoNewPrivileges = true; + PrivateDevices = true; + PrivateMounts = true; + # Port needs to be exposed to the host network + #PrivateNetwork = true; + PrivateTmp = true; + PrivateUsers = true; + ProcSubset = "pid"; + ProtectClock = true; + ProtectHome = true; + ProtectHostname = true; + # Would re-mount paths ignored by temporary root + #ProtectSystem = "strict"; + ProtectControlGroups = true; + ProtectKernelLogs = true; + ProtectKernelModules = true; + ProtectKernelTunables = true; + ProtectProc = "invisible"; + RestrictAddressFamilies = [ "AF_INET" "AF_INET6" "AF_UNIX" ]; + RestrictNamespaces = true; + RestrictRealtime = true; + RestrictSUIDSGID = true; + SystemCallArchitectures = "native"; + SystemCallFilter = [ "@system-service" "~@privileged @resources @setuid @keyring" ]; + TemporaryFileSystem = "/:ro"; + # Does not work well with the temporary root + #UMask = "0066"; + }; + }; + }; +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 66b0f4f258d3..ccdeb33d2e27 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -97,6 +97,7 @@ in cryptpad = handleTest ./cryptpad.nix {}; deluge = handleTest ./deluge.nix {}; dendrite = handleTest ./dendrite.nix {}; + dex-oidc = handleTest ./dex-oidc.nix {}; dhparams = handleTest ./dhparams.nix {}; disable-installer-tools = handleTest ./disable-installer-tools.nix {}; discourse = handleTest ./discourse.nix {}; diff --git a/nixos/tests/dex-oidc.nix b/nixos/tests/dex-oidc.nix new file mode 100644 index 000000000000..37275a97ef0f --- /dev/null +++ b/nixos/tests/dex-oidc.nix @@ -0,0 +1,78 @@ +import ./make-test-python.nix ({ lib, ... }: { + name = "dex-oidc"; + meta.maintainers = with lib.maintainers; [ Flakebi ]; + + nodes.machine = { pkgs, ... }: { + environment.systemPackages = with pkgs; [ jq ]; + services.dex = { + enable = true; + settings = { + issuer = "http://127.0.0.1:8080/dex"; + storage = { + type = "postgres"; + config.host = "/var/run/postgresql"; + }; + web.http = "127.0.0.1:8080"; + oauth2.skipApprovalScreen = true; + staticClients = [ + { + id = "oidcclient"; + name = "Client"; + redirectURIs = [ "https://example.com/callback" ]; + secretFile = "/etc/dex/oidcclient"; + } + ]; + connectors = [ + { + type = "mockPassword"; + id = "mock"; + name = "Example"; + config = { + username = "admin"; + password = "password"; + }; + } + ]; + }; + }; + + # This should not be set from nix but through other means to not leak the secret. + environment.etc."dex/oidcclient" = { + mode = "0400"; + user = "dex"; + text = "oidcclientsecret"; + }; + + services.postgresql = { + enable = true; + ensureDatabases =[ "dex" ]; + ensureUsers = [ + { + name = "dex"; + ensurePermissions = { "DATABASE dex" = "ALL PRIVILEGES"; }; + } + ]; + }; + }; + + testScript = '' + with subtest("Web server gets ready"): + machine.wait_for_unit("dex.service") + # Wait until server accepts connections + machine.wait_until_succeeds("curl -fs 'localhost:8080/dex/auth/mock?client_id=oidcclient&response_type=code&redirect_uri=https://example.com/callback&scope=openid'") + + with subtest("Login"): + state = machine.succeed("curl -fs 'localhost:8080/dex/auth/mock?client_id=oidcclient&response_type=code&redirect_uri=https://example.com/callback&scope=openid' | sed -n 's/.*state=\\(.*\\)\">.*/\\1/p'").strip() + print(f"Got state {state}") + machine.succeed(f"curl -fs 'localhost:8080/dex/auth/mock/login?back=&state={state}' -d 'login=admin&password=password'") + code = machine.succeed(f"curl -fs localhost:8080/dex/approval?req={state} | sed -n 's/.*code=\\(.*\\)&.*/\\1/p'").strip() + print(f"Got approval code {code}") + bearer = machine.succeed(f"curl -fs localhost:8080/dex/token -u oidcclient:oidcclientsecret -d 'grant_type=authorization_code&redirect_uri=https://example.com/callback&code={code}' | jq .access_token -r").strip() + print(f"Got access token {bearer}") + + with subtest("Get userinfo"): + assert '"sub"' in machine.succeed( + f"curl -fs localhost:8080/dex/userinfo --oauth2-bearer {bearer}" + ) + ''; +}) diff --git a/pkgs/servers/dex/default.nix b/pkgs/servers/dex/default.nix index a27870453c82..16dc5f8bafd6 100644 --- a/pkgs/servers/dex/default.nix +++ b/pkgs/servers/dex/default.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, nixosTests }: buildGoModule rec { pname = "dex"; @@ -26,6 +26,8 @@ buildGoModule rec { cp -r $src/web $out/share/web ''; + passthru.tests = { inherit (nixosTests) dex-oidc; }; + meta = with lib; { description = "OpenID Connect and OAuth2 identity provider with pluggable connectors"; homepage = "https://github.com/dexidp/dex"; From 2f54d52e8654d97fc2331eeae86c1bc5c33e8f73 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 25 Sep 2021 14:00:40 +0200 Subject: [PATCH 08/27] python3Packages.pyflexit: init at 0.3 --- .../python-modules/pyflexit/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/pyflexit/default.nix diff --git a/pkgs/development/python-modules/pyflexit/default.nix b/pkgs/development/python-modules/pyflexit/default.nix new file mode 100644 index 000000000000..6f1f582a931d --- /dev/null +++ b/pkgs/development/python-modules/pyflexit/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pyflexit"; + version = "0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "Sabesto"; + repo = pname; + rev = version; + sha256 = "1ajlqr3z6zj4fyslqzpwpfkvh8xjx94wsznzij0vx0q7jp43bqig"; + }; + + # Project has no tests + doCheck = false; + + pythonImportsCheck = [ "pyflexit" ]; + + meta = with lib; { + description = "Python library for Flexit A/C units"; + homepage = "https://github.com/Sabesto/pyflexit"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 50803af17df7..2d1ef71ea2a3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5539,6 +5539,8 @@ in { pyfireservicerota = callPackage ../development/python-modules/pyfireservicerota { }; + pyflexit = callPackage ../development/python-modules/pyflexit { }; + pyflick = callPackage ../development/python-modules/pyflick { }; pyfreedompro = callPackage ../development/python-modules/pyfreedompro { }; From e9dfd3f9d6246dda726a7a66eeb1c42d551d12c9 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 26 Sep 2021 07:34:42 +0000 Subject: [PATCH 09/27] python38Packages.scikit-fmm: 2021.7.8 -> 2021.9.23 --- pkgs/development/python-modules/scikit-fmm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/scikit-fmm/default.nix b/pkgs/development/python-modules/scikit-fmm/default.nix index 742c404a8454..ab51a47d19b0 100644 --- a/pkgs/development/python-modules/scikit-fmm/default.nix +++ b/pkgs/development/python-modules/scikit-fmm/default.nix @@ -7,11 +7,11 @@ buildPythonPackage rec { pname = "scikit-fmm"; - version = "2021.7.8"; + version = "2021.9.23"; src = fetchPypi { inherit pname version; - sha256 = "f931a2600e7f0824ac51ebde86ee40295146cc1ad5f88fdc208b0a12fcb2ddb3"; + sha256 = "94808e6d747143cc9d50aa946cf5b1e61dbd4d8bc6229a7a5f57db6cedf38a47"; }; propagatedBuildInputs = [ From e41b098f1619c6e75a7e3d2cd24dd8adbb0e70b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Mon, 27 Sep 2021 12:54:46 +0200 Subject: [PATCH 10/27] openresty: 1.19.3.2 -> 1.19.9.1 https://openresty.org/en/changelog-1019009.html --- pkgs/servers/http/openresty/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/http/openresty/default.nix b/pkgs/servers/http/openresty/default.nix index 71490b342805..3c30b2c3ed0a 100644 --- a/pkgs/servers/http/openresty/default.nix +++ b/pkgs/servers/http/openresty/default.nix @@ -8,12 +8,12 @@ callPackage ../nginx/generic.nix args rec { pname = "openresty"; - nginxVersion = "1.19.3"; - version = "${nginxVersion}.2"; + nginxVersion = "1.19.9"; + version = "${nginxVersion}.1"; src = fetchurl { url = "https://openresty.org/download/openresty-${version}.tar.gz"; - sha256 = "1fav3qykckqcyw9ksi8s61prpwab44zbcvj95rwfpfqgk5jffh6f"; + sha256 = "1xn1d0x2y63z0mi0qq3js6lz6ziba92r7vyyfkj1qc738vjz8vsp"; }; # generic.nix applies fixPatch on top of every patch defined there. This From 5b19a8c897af23bb553ce6b37173c252e2505af2 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 28 Sep 2021 04:46:29 +0000 Subject: [PATCH 11/27] python38Packages.google-cloud-iam: 2.3.1 -> 2.3.2 --- pkgs/development/python-modules/google-cloud-iam/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-iam/default.nix b/pkgs/development/python-modules/google-cloud-iam/default.nix index 0daff0ac2cd3..702deeb6eb61 100644 --- a/pkgs/development/python-modules/google-cloud-iam/default.nix +++ b/pkgs/development/python-modules/google-cloud-iam/default.nix @@ -12,12 +12,12 @@ buildPythonPackage rec { pname = "google-cloud-iam"; - version = "2.3.1"; + version = "2.3.2"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "166pcra1x8lisgf7cla4vq97qpc1hrpwnvlj1sza1igny2m59w5i"; + sha256 = "c59ceebe2ff5d45a7367ddbe1a702bbbb010d6d3423d278797835d59e885fa50"; }; propagatedBuildInputs = [ google-api-core libcst proto-plus ]; From b4d5b20a438bcd41bb4d74f5a80f1409ac1ac7ce Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 28 Sep 2021 04:55:49 +0000 Subject: [PATCH 12/27] python38Packages.google-cloud-iot: 2.2.1 -> 2.3.0 --- pkgs/development/python-modules/google-cloud-iot/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-iot/default.nix b/pkgs/development/python-modules/google-cloud-iot/default.nix index f3a56429273b..507ba6aef18c 100644 --- a/pkgs/development/python-modules/google-cloud-iot/default.nix +++ b/pkgs/development/python-modules/google-cloud-iot/default.nix @@ -12,11 +12,11 @@ buildPythonPackage rec { pname = "google-cloud-iot"; - version = "2.2.1"; + version = "2.3.0"; src = fetchPypi { inherit pname version; - sha256 = "sha256-vMzq4ffA7877zRtdZ+VpFdEHU0BZhDdhgxuk5154hMU="; + sha256 = "cb31a864be75c47880748b6c81f0c57cbce190a87e402ce32b2b772be2dba5fa"; }; propagatedBuildInputs = [ grpc-google-iam-v1 google-api-core libcst proto-plus ]; From 89e2f6a5c392e8b573d15a307c2c6d33e4ae1480 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 28 Sep 2021 05:13:19 +0000 Subject: [PATCH 13/27] python38Packages.google-cloud-speech: 2.9.0 -> 2.9.1 --- .../python-modules/google-cloud-speech/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-speech/default.nix b/pkgs/development/python-modules/google-cloud-speech/default.nix index 59d08bd8e5e9..9eb3fcf24239 100644 --- a/pkgs/development/python-modules/google-cloud-speech/default.nix +++ b/pkgs/development/python-modules/google-cloud-speech/default.nix @@ -11,11 +11,11 @@ buildPythonPackage rec { pname = "google-cloud-speech"; - version = "2.9.0"; + version = "2.9.1"; src = fetchPypi { inherit pname version; - sha256 = "2368beb60e5cdeb6db527509cdcc8fc1156eddfc0c73da8f62d60658a551eee1"; + sha256 = "321a11863124d2fba73c519594d5a8803650f1f4323b08b9de3d096e536e98c1"; }; propagatedBuildInputs = [ libcst google-api-core proto-plus ]; From 48bf15f8592557172f4003ab95829314c508340d Mon Sep 17 00:00:00 2001 From: Austin Butler Date: Tue, 28 Sep 2021 06:20:53 +0000 Subject: [PATCH 14/27] python3Packages.awslambdaric: fix build following simplejson upgrade --- .../python-modules/awslambdaric/default.nix | 24 +++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/awslambdaric/default.nix b/pkgs/development/python-modules/awslambdaric/default.nix index 1826291da502..2ccba6995ade 100644 --- a/pkgs/development/python-modules/awslambdaric/default.nix +++ b/pkgs/development/python-modules/awslambdaric/default.nix @@ -1,5 +1,17 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27, pytestCheckHook, autoconf -, automake, cmake, gcc, libtool, perl, simplejson }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, isPy27 +, pytestCheckHook +, autoconf +, automake +, cmake +, gcc +, libtool +, perl +, simplejson +}: buildPythonPackage rec { pname = "awslambdaric"; @@ -13,6 +25,14 @@ buildPythonPackage rec { sha256 = "1r4b4w5xhf6p4vs7yx89kighlqim9f96v2ryknmrnmblgr4kg0h1"; }; + patches = [ + (fetchpatch { + # https://github.com/aws/aws-lambda-python-runtime-interface-client/pull/58 + url = "https://github.com/aws/aws-lambda-python-runtime-interface-client/commit/162c3c0051bb9daa92e4a2a4af7e90aea60ee405.patch"; + sha256 = "09qqq5x6npc9jw2qbhzifqn5sqiby4smiin1aw30psmlp21fv7j8"; + }) + ]; + postPatch = '' substituteInPlace requirements/base.txt \ --replace 'simplejson==3' 'simplejson~=3' From 779044ee7f70a3d8d38addaba01b364652c3ca28 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 28 Sep 2021 06:22:14 +0000 Subject: [PATCH 15/27] python38Packages.google-cloud-os-config: 1.5.0 -> 1.5.1 --- .../python-modules/google-cloud-os-config/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-os-config/default.nix b/pkgs/development/python-modules/google-cloud-os-config/default.nix index b521854c4b18..5dc2f5eeadf9 100644 --- a/pkgs/development/python-modules/google-cloud-os-config/default.nix +++ b/pkgs/development/python-modules/google-cloud-os-config/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "google-cloud-os-config"; - version = "1.5.0"; + version = "1.5.1"; src = fetchPypi { inherit pname version; - sha256 = "69764c406c8e1a95b66a84c042b7023c13eaef3bf79e493e60edd9ce62e8f2e4"; + sha256 = "4dc498d6fede223049c415f301ba1129ecaf628f31a77ae87d2678e6d71556f6"; }; propagatedBuildInputs = [ google-api-core libcst proto-plus ]; From b1cf40d22847a79577d232ac34477e261b3c5dbc Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Tue, 28 Sep 2021 13:28:21 +0200 Subject: [PATCH 16/27] openocd: enable libgpiod bit-banging driver --- pkgs/development/embedded/openocd/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/embedded/openocd/default.nix b/pkgs/development/embedded/openocd/default.nix index 7b3a16fb75e4..f61c0cbe5175 100644 --- a/pkgs/development/embedded/openocd/default.nix +++ b/pkgs/development/embedded/openocd/default.nix @@ -5,6 +5,7 @@ , hidapi , libftdi1 , libusb1 +, libgpiod }: stdenv.mkDerivation rec { @@ -17,7 +18,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ hidapi libftdi1 libusb1 ]; + buildInputs = [ hidapi libftdi1 libusb1 libgpiod ]; configureFlags = [ "--enable-jtag_vpi" @@ -29,6 +30,7 @@ stdenv.mkDerivation rec { (lib.enableFeature (! stdenv.isDarwin) "oocd_trace") "--enable-buspirate" (lib.enableFeature stdenv.isLinux "sysfsgpio") + (lib.enableFeature stdenv.isLinux "linuxgpiod") "--enable-remote-bitbang" ]; From dc7bcb2c85ca2ffe1bb51a2c88b45b9a1a57cd5e Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 27 Sep 2021 14:03:55 -0700 Subject: [PATCH 17/27] roon-server: use upstream stable URL for src --- pkgs/servers/roon-server/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/roon-server/default.nix b/pkgs/servers/roon-server/default.nix index b657f1b957fa..1236d2077733 100644 --- a/pkgs/servers/roon-server/default.nix +++ b/pkgs/servers/roon-server/default.nix @@ -9,18 +9,19 @@ , makeWrapper , stdenv , zlib -}: stdenv.mkDerivation rec { +}: +stdenv.mkDerivation rec { pname = "roon-server"; version = "1.8-831"; - # N.B. The URL is unstable. I've asked for them to provide a stable URL but - # they have ignored me. If this package fails to build for you, you may need - # to update the version and sha256. - # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129 - src = fetchurl { - url = "https://web.archive.org/web/20210921161727/http://download.roonlabs.com/builds/RoonServer_linuxx64.tar.bz2"; - sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk="; - }; + src = + let + urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version; + in + fetchurl { + url = "http://download.roonlabs.com/builds/RoonServer_linuxx64_${urlVersion}.tar.bz2"; + sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk="; + }; buildInputs = [ alsa-lib From cfa8af7f1b02b88611b593ddd91cd4ac935ef87e Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Mon, 27 Sep 2021 14:08:33 -0700 Subject: [PATCH 18/27] roon-bridge: use upstream stable URL for src --- pkgs/servers/roon-bridge/default.nix | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/servers/roon-bridge/default.nix b/pkgs/servers/roon-bridge/default.nix index 74851446c999..05504805a3e5 100644 --- a/pkgs/servers/roon-bridge/default.nix +++ b/pkgs/servers/roon-bridge/default.nix @@ -15,20 +15,20 @@ stdenv.mkDerivation rec { pname = "roon-bridge"; version = "1.8-814"; - # N.B. The URL is unstable. I've asked for them to provide a stable URL but - # they have ignored me. If this package fails to build for you, you may need - # to update the version and sha256. - # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129 - src = { - x86_64-linux = fetchurl { - url = "https://web.archive.org/web/20210729154257/http://download.roonlabs.com/builds/RoonBridge_linuxx64.tar.bz2"; - sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A="; - }; - aarch64-linux = fetchurl { - url = "https://web.archive.org/web/20210803071334/http://download.roonlabs.com/builds/RoonBridge_linuxarmv8.tar.bz2"; - sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U="; - }; - }.${system} or throwSystem; + src = + let + urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version; + in + { + x86_64-linux = fetchurl { + url = "http://download.roonlabs.com/builds/RoonBridge_linuxx64_${urlVersion}.tar.bz2"; + sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A="; + }; + aarch64-linux = fetchurl { + url = "http://download.roonlabs.com/builds/RoonBridge_linuxarmv8_${urlVersion}.tar.bz2"; + sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U="; + }; + }.${system} or throwSystem; buildInputs = [ alsa-lib From a5a7c33e772353cb0c8faf3c5904be55d2538c77 Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Tue, 28 Sep 2021 14:00:01 +0200 Subject: [PATCH 19/27] threejs-sage: install in expected location Co-authored-by: Timo Kaufmann --- pkgs/applications/science/math/sage/threejs-sage.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/math/sage/threejs-sage.nix b/pkgs/applications/science/math/sage/threejs-sage.nix index 0e4ad4dee955..bc7230f333ab 100644 --- a/pkgs/applications/science/math/sage/threejs-sage.nix +++ b/pkgs/applications/science/math/sage/threejs-sage.nix @@ -12,7 +12,8 @@ stdenv.mkDerivation rec { }; installPhase = '' - mkdir -p $out/lib/node_modules/three - cp -r build version $out/lib/node_modules/three + mkdir -p "$out/lib/node_modules/three/" + cp version "$out/lib/node_modules/three" + cp -r build "$out/lib/node_modules/three/$(cat version)" ''; } From affef156d169d87cec1c80f5e52bbaa4fe1bd059 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 28 Sep 2021 10:58:55 -0700 Subject: [PATCH 20/27] roon-bridge: correctly set platforms --- pkgs/servers/roon-bridge/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/roon-bridge/default.nix b/pkgs/servers/roon-bridge/default.nix index 05504805a3e5..14161b5d5a3f 100644 --- a/pkgs/servers/roon-bridge/default.nix +++ b/pkgs/servers/roon-bridge/default.nix @@ -70,6 +70,6 @@ stdenv.mkDerivation rec { homepage = "https://roonlabs.com"; license = licenses.unfree; maintainers = with maintainers; [ lovesegfault ]; - platforms = platforms.linux; + platforms = [ "aarch64-linux" "x86_64-linux" ]; }; } From 1ac46a05a8672ed63097d7c929c3a677cab61922 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Tue, 28 Sep 2021 10:59:03 -0700 Subject: [PATCH 21/27] roon-server: correctly set platforms --- pkgs/servers/roon-server/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/roon-server/default.nix b/pkgs/servers/roon-server/default.nix index 1236d2077733..d97a5df42e19 100644 --- a/pkgs/servers/roon-server/default.nix +++ b/pkgs/servers/roon-server/default.nix @@ -69,6 +69,6 @@ stdenv.mkDerivation rec { homepage = "https://roonlabs.com"; license = licenses.unfree; maintainers = with maintainers; [ lovesegfault steell ]; - platforms = platforms.linux; + platforms = [ "x86_64-linux" ]; }; } From c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89 Mon Sep 17 00:00:00 2001 From: p3psi Date: Sat, 18 Sep 2021 00:35:29 +0800 Subject: [PATCH 22/27] powershell: patchelf replace liblttng-ust.so.0 to so.1 --- pkgs/shells/powershell/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/shells/powershell/default.nix b/pkgs/shells/powershell/default.nix index 5c082641e9f2..4d3038079a80 100644 --- a/pkgs/shells/powershell/default.nix +++ b/pkgs/shells/powershell/default.nix @@ -49,6 +49,10 @@ stdenv.mkDerivation rec { '' + lib.optionalString (!stdenv.isDarwin && !stdenv.isAarch64) '' patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so + '' + lib.optionalString (!stdenv.isDarwin) '' + # Remove liblttng-ust from dependencies once + # https://github.com/PowerShell/PowerShell/pull/14688 is in a release + patchelf --replace-needed liblttng-ust${ext}.0 liblttng-ust${ext}.1 $pslibs/libcoreclrtraceptprovider.so '' + '' mkdir -p $out/bin @@ -69,7 +73,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET"; homepage = "https://github.com/PowerShell/PowerShell"; - maintainers = with maintainers; [ yrashk srgom ]; + maintainers = with maintainers; [ yrashk srgom p3psi ]; platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-linux"]; license = with licenses; [ mit ]; }; From 87fe4dad31522d1130505267a32251eddfcaa051 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 28 Sep 2021 16:31:51 -0400 Subject: [PATCH 23/27] taplo-lsp: 0.2.5 -> 0.2.6 --- pkgs/development/tools/taplo-lsp/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/taplo-lsp/default.nix b/pkgs/development/tools/taplo-lsp/default.nix index caa7facc0b5f..07fcfaec9334 100644 --- a/pkgs/development/tools/taplo-lsp/default.nix +++ b/pkgs/development/tools/taplo-lsp/default.nix @@ -2,14 +2,14 @@ rustPlatform.buildRustPackage rec { pname = "taplo-lsp"; - version = "0.2.5"; + version = "0.2.6"; src = fetchCrate { inherit pname version; - sha256 = "0a8y2fdkflc7lq0q40j7dr80hbj56bbsc585isbd7lk6xavg7cvi"; + sha256 = "sha256-jd4l9iTCeHnUa/GC13paD3zDiCZBk9VgEbCDsOs/Xq4="; }; - cargoSha256 = "133p5kmcfq5ksrri2f8jvnc1ljmsczq49gh3k0gmgby45yvy6xa1"; + cargoSha256 = "sha256-zQ303JFqnbulkWL4t5+fRWijaY9zd9tLKvrvdUEvKpY="; # excludes test_tcp since it fails cargoTestFlags = [ "test_stdio" ]; From 0a3d9773b43e6ef71dea6266d890a07b5219765c Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 28 Sep 2021 16:25:55 +0000 Subject: [PATCH 24/27] python38Packages.scikit-hep-testdata: 0.4.8 -> 0.4.9 --- .../python-modules/scikit-hep-testdata/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/scikit-hep-testdata/default.nix b/pkgs/development/python-modules/scikit-hep-testdata/default.nix index d4e31966da2c..8f02f67c1b50 100644 --- a/pkgs/development/python-modules/scikit-hep-testdata/default.nix +++ b/pkgs/development/python-modules/scikit-hep-testdata/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "scikit-hep-testdata"; - version = "0.4.8"; + version = "0.4.9"; format = "pyproject"; # fetch from github as we want the data files @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "scikit-hep"; repo = pname; rev = "v${version}"; - sha256 = "0x5p42c9iqwdx15gdvccddlx4a5a8aix7h01345afrlgpnnpqcv4"; + sha256 = "0y70nx94y2qf0zmaqjq4ljld31jh277ica0j4c3ck2ph7jrs5pg0"; }; nativeBuildInputs = [ From 56cf4e1d0759ed2164128e4ba1b3acb32ce7c40d Mon Sep 17 00:00:00 2001 From: ivan-timokhin Date: Wed, 29 Sep 2021 00:39:14 +0300 Subject: [PATCH 25/27] chromedriver: add dbus to libraries, correct LD_LIBRARY_PATH wrapping (#139723) * chromedriver: add dbus to libraries It is apparently required since version 94. Fixes issue #139547 * chromedriver: remove extraneous LD_LIBRARY_PATH in wrapProgram wrapProgram already prepends passed value to the specified environment variable; no need to specify it explicitly. * chromedriver: add a package test checking the reported version * Update pkgs/development/tools/selenium/chromedriver/default.nix Co-authored-by: Sandro --- pkgs/development/tools/selenium/chromedriver/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/selenium/chromedriver/default.nix b/pkgs/development/tools/selenium/chromedriver/default.nix index d777d788aec6..4df279f73133 100644 --- a/pkgs/development/tools/selenium/chromedriver/default.nix +++ b/pkgs/development/tools/selenium/chromedriver/default.nix @@ -1,7 +1,8 @@ { lib, stdenv, fetchurl, unzip, makeWrapper , cairo, fontconfig, freetype, gdk-pixbuf, glib , glibc, gtk2, libX11, nspr, nss, pango, gconf -, libxcb, libXi, libXrender, libXext +, libxcb, libXi, libXrender, libXext, dbus +, testVersion, chromedriver }: let @@ -27,6 +28,7 @@ let gdk-pixbuf glib gtk2 gconf libX11 nspr nss pango libXrender gconf libxcb libXext libXi + dbus ]; in stdenv.mkDerivation rec { @@ -46,9 +48,11 @@ in stdenv.mkDerivation rec { install -m755 -D chromedriver $out/bin/chromedriver '' + lib.optionalString (!stdenv.isDarwin) '' patchelf --set-interpreter ${glibc.out}/lib/ld-linux-x86-64.so.2 $out/bin/chromedriver - wrapProgram "$out/bin/chromedriver" --prefix LD_LIBRARY_PATH : "${libs}:\$LD_LIBRARY_PATH" + wrapProgram "$out/bin/chromedriver" --prefix LD_LIBRARY_PATH : "${libs}" ''; + passthru.tests.version = testVersion { package = chromedriver; }; + meta = with lib; { homepage = "https://chromedriver.chromium.org/"; description = "A WebDriver server for running Selenium tests on Chrome"; From c3c2cf65cfd023c094ddbc2450486bd8d3c36aa6 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 26 Sep 2021 05:42:55 +0000 Subject: [PATCH 26/27] python38Packages.thrift: 0.13.0 -> 0.15.0 --- pkgs/development/python-modules/thrift/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/thrift/default.nix b/pkgs/development/python-modules/thrift/default.nix index 7b16d6668705..5e80ac14e5ac 100644 --- a/pkgs/development/python-modules/thrift/default.nix +++ b/pkgs/development/python-modules/thrift/default.nix @@ -6,11 +6,11 @@ buildPythonPackage rec { pname = "thrift"; - version = "0.13.0"; + version = "0.15.0"; src = fetchPypi { inherit pname version; - sha256 = "9af1c86bf73433afc6010ed376a6c6aca2b54099cc0d61895f640870a9ae7d89"; + sha256 = "87c8205a71cf8bbb111cb99b1f7495070fbc9cabb671669568854210da5b3e29"; }; propagatedBuildInputs = [ six ]; @@ -18,11 +18,12 @@ buildPythonPackage rec { # No tests. Breaks when not disabling. doCheck = false; + pythonImportsCheck = [ "thrift" ]; + meta = with lib; { description = "Python bindings for the Apache Thrift RPC system"; - homepage = "http://thrift.apache.org/"; + homepage = "https://thrift.apache.org/"; license = licenses.asl20; maintainers = with maintainers; [ hbunke ]; }; - } From 60dcbe9837101489af5f6db6171de3c3826224a2 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Wed, 29 Sep 2021 00:45:21 +0200 Subject: [PATCH 27/27] melonDS: add libpcap to library path (#139787) melonDS loads libpcap dynamically using dlopen. --- pkgs/misc/emulators/melonDS/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/emulators/melonDS/default.nix b/pkgs/misc/emulators/melonDS/default.nix index bd3bffde54f2..7123f496fad6 100644 --- a/pkgs/misc/emulators/melonDS/default.nix +++ b/pkgs/misc/emulators/melonDS/default.nix @@ -26,12 +26,13 @@ mkDerivation rec { buildInputs = [ epoxy libarchive - libpcap libslirp qtbase SDL2 ]; + qtWrapperArgs = [ "--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libpcap ]}" ]; + meta = with lib; { homepage = "http://melonds.kuribo64.net/"; description = "Work in progress Nintendo DS emulator";