From cd23ec7c7b8c46b729780c728b9e380730b64e6b Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Wed, 1 Nov 2023 13:09:29 +0000 Subject: [PATCH 01/69] nixos/coder: add environment.extra and environment.file --- nixos/modules/services/web-apps/coder.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/coder.nix b/nixos/modules/services/web-apps/coder.nix index 469a29bc3aa8..3fdc0b61e496 100644 --- a/nixos/modules/services/web-apps/coder.nix +++ b/nixos/modules/services/web-apps/coder.nix @@ -79,6 +79,23 @@ in { example = "*.coder.example.com"; }; + environment = { + extra = mkOption { + type = types.attrs; + description = lib.mdDoc "Extra environment variables to pass run Coder's server with. See Coder documentation."; + default = {}; + example = { + CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS = true; + CODER_OAUTH2_GITHUB_ALLOWED_ORGS = "your-org"; + }; + }; + file = mkOption { + type = types.nullOr types.path; + description = lib.mdDoc "Systemd environment file to add to Coder."; + default = null; + }; + }; + database = { createLocally = mkOption { type = types.bool; @@ -159,7 +176,7 @@ in { after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; - environment = { + environment = config.environment.extra // { CODER_ACCESS_URL = cfg.accessUrl; CODER_WILDCARD_ACCESS_URL = cfg.wildcardAccessUrl; CODER_PG_CONNECTION_URL = "user=${cfg.database.username} ${optionalString (cfg.database.password != null) "password=${cfg.database.password}"} database=${cfg.database.database} host=${cfg.database.host} ${optionalString (cfg.database.sslmode != null) "sslmode=${cfg.database.sslmode}"}"; @@ -184,6 +201,7 @@ in { ExecStart = "${cfg.package}/bin/coder server"; User = cfg.user; Group = cfg.group; + EnvironmentFile = lib.mkIf (cfg.environment.file != null) cfg.environment.file; }; }; From ab0bd8ca527f9e21a80562f39eb4a5a9a565780a Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 15:48:22 +0100 Subject: [PATCH 02/69] puppet-lint: add meta, passthru.{tests,updateScript} --- .../tools/puppet/puppet-lint/default.nix | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/puppet/puppet-lint/default.nix b/pkgs/development/tools/puppet/puppet-lint/default.nix index 2940605b1b08..588d9f0c86fa 100644 --- a/pkgs/development/tools/puppet/puppet-lint/default.nix +++ b/pkgs/development/tools/puppet/puppet-lint/default.nix @@ -1,7 +1,30 @@ -{ bundlerApp }: +{ + bundlerApp, + bundlerUpdateScript, + lib, + puppet-lint, + testers, +}: bundlerApp { pname = "puppet-lint"; gemdir = ./.; exes = [ "puppet-lint" ]; + + passthru = { + tests.version = testers.testVersion { + package = puppet-lint; + version = (import ./gemset.nix).puppet-lint.version; + }; + updateScript = bundlerUpdateScript "puppet-lint"; + }; + + meta = { + description = "Checks Puppet code against the recommended Puppet language style guide"; + homepage = "https://github.com/puppetlabs/puppet-lint"; + changelog = "https://github.com/puppetlabs/puppet-lint/blob/main/CHANGELOG.md"; + license = lib.licenses.mit; + mainProgram = "puppet-lint"; + maintainers = with lib.maintainers; [ anthonyroussel ]; + }; } From 1e2f6ebbedc567823c188b256c7e55fc9612f51d Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 15:57:25 +0100 Subject: [PATCH 03/69] puppet-lint: 2.5.2 -> 4.2.4 https://github.com/puppetlabs/puppet-lint/compare/2.5.2...v4.2.4 --- pkgs/development/tools/puppet/puppet-lint/Gemfile.lock | 4 ++-- pkgs/development/tools/puppet/puppet-lint/gemset.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/puppet/puppet-lint/Gemfile.lock b/pkgs/development/tools/puppet/puppet-lint/Gemfile.lock index 7569b5e2d13c..61842458aa5b 100644 --- a/pkgs/development/tools/puppet/puppet-lint/Gemfile.lock +++ b/pkgs/development/tools/puppet/puppet-lint/Gemfile.lock @@ -1,7 +1,7 @@ GEM remote: https://rubygems.org/ specs: - puppet-lint (2.5.2) + puppet-lint (4.2.4) PLATFORMS ruby @@ -10,4 +10,4 @@ DEPENDENCIES puppet-lint BUNDLED WITH - 2.2.24 + 2.5.6 diff --git a/pkgs/development/tools/puppet/puppet-lint/gemset.nix b/pkgs/development/tools/puppet/puppet-lint/gemset.nix index e3911e63536a..f936a39af0a0 100644 --- a/pkgs/development/tools/puppet/puppet-lint/gemset.nix +++ b/pkgs/development/tools/puppet/puppet-lint/gemset.nix @@ -4,9 +4,9 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1rcj3cb6lf90g6vvhh3c9p8yn7pgibglf9k5878bzd6pn5ag0h9v"; + sha256 = "1n2pffwxj1n33hc7aw74g6a4gn5v7rawcs7rglidbdq1g4kzd829"; type = "gem"; }; - version = "2.5.2"; + version = "4.2.4"; }; } From 5b7b5e9e1df432451ae1d955537b4b9d96bd2233 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 15:59:39 +0100 Subject: [PATCH 04/69] puppet-lint: move to pkgs/by-name --- .../tools/puppet => by-name/pu}/puppet-lint/Gemfile | 0 .../tools/puppet => by-name/pu}/puppet-lint/Gemfile.lock | 0 .../tools/puppet => by-name/pu}/puppet-lint/gemset.nix | 0 .../default.nix => by-name/pu/puppet-lint/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 2 deletions(-) rename pkgs/{development/tools/puppet => by-name/pu}/puppet-lint/Gemfile (100%) rename pkgs/{development/tools/puppet => by-name/pu}/puppet-lint/Gemfile.lock (100%) rename pkgs/{development/tools/puppet => by-name/pu}/puppet-lint/gemset.nix (100%) rename pkgs/{development/tools/puppet/puppet-lint/default.nix => by-name/pu/puppet-lint/package.nix} (100%) diff --git a/pkgs/development/tools/puppet/puppet-lint/Gemfile b/pkgs/by-name/pu/puppet-lint/Gemfile similarity index 100% rename from pkgs/development/tools/puppet/puppet-lint/Gemfile rename to pkgs/by-name/pu/puppet-lint/Gemfile diff --git a/pkgs/development/tools/puppet/puppet-lint/Gemfile.lock b/pkgs/by-name/pu/puppet-lint/Gemfile.lock similarity index 100% rename from pkgs/development/tools/puppet/puppet-lint/Gemfile.lock rename to pkgs/by-name/pu/puppet-lint/Gemfile.lock diff --git a/pkgs/development/tools/puppet/puppet-lint/gemset.nix b/pkgs/by-name/pu/puppet-lint/gemset.nix similarity index 100% rename from pkgs/development/tools/puppet/puppet-lint/gemset.nix rename to pkgs/by-name/pu/puppet-lint/gemset.nix diff --git a/pkgs/development/tools/puppet/puppet-lint/default.nix b/pkgs/by-name/pu/puppet-lint/package.nix similarity index 100% rename from pkgs/development/tools/puppet/puppet-lint/default.nix rename to pkgs/by-name/pu/puppet-lint/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 690d87da8118..2581d85eeba0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19532,8 +19532,6 @@ with pkgs; puppet-bolt = callPackage ../tools/admin/puppet/puppet-bolt { }; - puppet-lint = callPackage ../development/tools/puppet/puppet-lint { }; - puppeteer-cli = callPackage ../tools/graphics/puppeteer-cli { }; pyrseas = callPackage ../development/tools/database/pyrseas { }; From 2e1fe503f85c2244328c3a5df239bbf63e6c6976 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:18:33 +0100 Subject: [PATCH 05/69] puppet-bolt: 3.24.0 -> 3.28.0 https://github.com/puppetlabs/bolt/compare/3.24.0...3.28.0 --- .../admin/puppet/puppet-bolt/Gemfile.lock | 152 +++++----- .../tools/admin/puppet/puppet-bolt/gemset.nix | 278 +++++++++++------- 2 files changed, 247 insertions(+), 183 deletions(-) diff --git a/pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock b/pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock index d5c402330b3e..a0156a8912e4 100644 --- a/pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock +++ b/pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock @@ -1,24 +1,29 @@ GEM remote: https://rubygems.org/ specs: - CFPropertyList (2.3.6) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - aws-eventstream (1.2.0) - aws-partitions (1.607.0) - aws-sdk-core (3.131.2) - aws-eventstream (~> 1, >= 1.0.2) - aws-partitions (~> 1, >= 1.525.0) - aws-sigv4 (~> 1.1) + CFPropertyList (3.0.7) + base64 + nkf + rexml + addressable (2.8.6) + public_suffix (>= 2.0.2, < 6.0) + aws-eventstream (1.3.0) + aws-partitions (1.899.0) + aws-sdk-core (3.191.4) + aws-eventstream (~> 1, >= 1.3.0) + aws-partitions (~> 1, >= 1.651.0) + aws-sigv4 (~> 1.8) jmespath (~> 1, >= 1.6.1) - aws-sdk-ec2 (1.322.0) - aws-sdk-core (~> 3, >= 3.127.0) + aws-sdk-ec2 (1.444.0) + aws-sdk-core (~> 3, >= 3.191.0) aws-sigv4 (~> 1.1) - aws-sigv4 (1.5.0) + aws-sigv4 (1.8.0) aws-eventstream (~> 1, >= 1.0.2) - bindata (2.4.10) - bolt (3.24.0) - CFPropertyList (~> 2.2) + base64 (0.2.0) + bigdecimal (3.1.7) + bindata (2.5.0) + bolt (3.28.0) + CFPropertyList (>= 2.2) addressable (~> 2.5) aws-sdk-ec2 (~> 1) concurrent-ruby (~> 1.0) @@ -27,14 +32,14 @@ GEM jwt (~> 2.2) logging (~> 2.2) minitar (~> 0.6) - net-scp (~> 1.2) - net-ssh (>= 4.0, < 7.0) + net-scp (>= 1.2, < 5.0) + net-ssh (>= 4.0, < 8.0) net-ssh-krb (~> 0.5) orchestrator_client (~> 0.5) puppet (>= 6.18.0) puppet-resource_api (>= 1.8.1) - puppet-strings (~> 2.3) - puppetfile-resolver (~> 0.5) + puppet-strings (>= 2.3.0, < 5.0) + puppetfile-resolver (>= 0.6.2, < 1.0) r10k (~> 3.10) ruby_smb (~> 1.0) terminal-table (~> 3.0) @@ -42,15 +47,15 @@ GEM winrm-fs (~> 1.3) builder (3.2.4) colored2 (3.1.2) - concurrent-ruby (1.1.10) - connection_pool (2.2.5) + concurrent-ruby (1.2.3) + connection_pool (2.4.1) cri (2.15.11) deep_merge (1.2.2) - erubi (1.10.0) - facter (4.2.10) + erubi (1.12.0) + facter (4.6.1) hocon (~> 1.3) thor (>= 1.0.1, < 2.0) - faraday (1.10.0) + faraday (1.10.3) faraday-em_http (~> 1.0) faraday-em_synchrony (~> 1.0) faraday-excon (~> 1.1) @@ -75,31 +80,34 @@ GEM faraday-retry (1.0.3) faraday_middleware (1.2.0) faraday (~> 1.0) - fast_gettext (1.1.2) - ffi (1.15.5) - gettext (3.2.9) + fast_gettext (2.3.0) + ffi (1.16.3) + forwardable (1.3.3) + gettext (3.4.9) + erubi locale (>= 2.0.5) + prime + racc text (>= 1.3.0) - gettext-setup (0.34) - fast_gettext (~> 1.1.0) - gettext (>= 3.0.2, < 3.3.0) + gettext-setup (1.1.0) + fast_gettext (~> 2.1) + gettext (~> 3.4) locale gssapi (1.3.1) ffi (>= 1.0.1) gyoku (1.4.0) builder (>= 2.1.2) rexml (~> 3.0) - hiera (3.9.0) - hiera-eyaml (3.3.0) + hiera-eyaml (3.4.0) highline optimist - highline (2.0.3) - hocon (1.3.1) + highline (3.0.1) + hocon (1.4.0) httpclient (2.8.3) - jmespath (1.6.1) - jwt (2.2.3) + jmespath (1.6.2) + jwt (2.7.1) little-plugger (1.1.4) - locale (2.1.3) + locale (2.1.4) log4r (1.1.10) logging (2.3.1) little-plugger (~> 1.1) @@ -107,58 +115,63 @@ GEM minitar (0.9) molinillo (0.8.0) multi_json (1.15.0) - multipart-post (2.2.3) - net-http-persistent (4.0.1) + multipart-post (2.4.0) + net-http-persistent (4.0.2) connection_pool (~> 2.2) - net-scp (1.2.1) - net-ssh (>= 2.6.5) - net-ssh (6.1.0) + net-scp (4.0.0) + net-ssh (>= 2.6.5, < 8.0.0) + net-ssh (7.2.1) net-ssh-krb (0.5.1) gssapi (~> 1.3.0) net-ssh (>= 2.0) - nori (2.6.0) - optimist (3.0.1) - orchestrator_client (0.6.1) + nkf (0.2.0) + nori (2.7.0) + bigdecimal + optimist (3.1.0) + orchestrator_client (0.7.0) faraday (~> 1.4) net-http-persistent (~> 4.0) - public_suffix (4.0.7) - puppet (7.17.0) + prime (0.1.2) + forwardable + singleton + public_suffix (5.0.4) + puppet (8.5.1) concurrent-ruby (~> 1.0) deep_merge (~> 1.0) - facter (> 2.0.1, < 5) - fast_gettext (>= 1.1, < 3) - hiera (>= 3.2.1, < 4) + facter (>= 4.3.0, < 5) + fast_gettext (>= 2.1, < 3) locale (~> 2.1) - multi_json (~> 1.10) + multi_json (~> 1.13) puppet-resource_api (~> 1.5) scanf (~> 1.0) semantic_puppet (~> 1.0) - puppet-resource_api (1.8.14) + puppet-resource_api (1.9.0) hocon (>= 1.0) - puppet-strings (2.9.0) - rgen - yard (~> 0.9.5) + puppet-strings (4.1.2) + rgen (~> 0.9) + yard (~> 0.9) puppet_forge (3.2.0) faraday (~> 1.3) faraday_middleware (~> 1.0) minitar semantic_puppet (~> 1.0) - puppetfile-resolver (0.6.1) + puppetfile-resolver (0.6.3) molinillo (~> 0.6) semantic_puppet (~> 1.0) - r10k (3.15.0) + r10k (3.16.0) colored2 (= 3.1.2) cri (>= 2.15.10) fast_gettext (>= 1.1.0, < 3.0.0) gettext (>= 3.0.2, < 4.0.0) - gettext-setup (~> 0.24) - jwt (~> 2.2.3) + gettext-setup (>= 0.24, < 2.0.0) + jwt (>= 2.2.3, < 2.8.0) log4r (= 1.1.10) minitar (~> 0.9) multi_json (~> 1.10) - puppet_forge (>= 2.3.0) - rexml (3.2.5) - rgen (0.9.0) + puppet_forge (>= 2.3.0, < 4.0.0) + racc (1.7.3) + rexml (3.2.6) + rgen (0.9.1) ruby2_keywords (0.0.5) ruby_smb (1.1.0) bindata @@ -167,14 +180,14 @@ GEM rubyntlm (0.6.3) rubyzip (2.3.2) scanf (1.0.0) - semantic_puppet (1.0.4) + semantic_puppet (1.1.0) + singleton (0.2.0) terminal-table (3.0.2) unicode-display_width (>= 1.1.1, < 3) text (1.3.1) - thor (1.2.1) - unicode-display_width (2.2.0) - webrick (1.7.0) - windows_error (0.1.4) + thor (1.3.1) + unicode-display_width (2.5.0) + windows_error (0.1.5) winrm (2.3.6) builder (>= 2.1.2) erubi (~> 1.8) @@ -189,8 +202,7 @@ GEM logging (>= 1.6.1, < 3.0) rubyzip (~> 2.0) winrm (~> 2.0) - yard (0.9.28) - webrick (~> 1.7.0) + yard (0.9.36) PLATFORMS ruby @@ -199,4 +211,4 @@ DEPENDENCIES bolt BUNDLED WITH - 2.3.9 + 2.5.6 diff --git a/pkgs/tools/admin/puppet/puppet-bolt/gemset.nix b/pkgs/tools/admin/puppet/puppet-bolt/gemset.nix index fc02ba396183..df8e2c3fb8ce 100644 --- a/pkgs/tools/admin/puppet/puppet-bolt/gemset.nix +++ b/pkgs/tools/admin/puppet/puppet-bolt/gemset.nix @@ -5,30 +5,30 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "022r3m9wdxljpbya69y2i3h9g3dhhfaqzidf95m6qjzms792jvgp"; + sha256 = "0irbdwkkjwzajq1ip6ba46q49sxnrl2cw7ddkdhsfhb6aprnm3vr"; type = "gem"; }; - version = "2.8.0"; + version = "2.8.6"; }; aws-eventstream = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1pyis1nvnbjxk12a43xvgj2gv0mvp4cnkc1gzw0v1018r61399gz"; + sha256 = "0gvdg4yx4p9av2glmp7vsxhs0n8fj1ga9kq2xdb8f95j7b04qhzi"; type = "gem"; }; - version = "1.2.0"; + version = "1.3.0"; }; aws-partitions = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0af0fv57wgnzn4sjbhwd504dina62i60by3npl14ad4bc2aw7pnc"; + sha256 = "0mydgvc5wn4adsic86907hzyfhgvzaq6nr394pnvk83ryv4zx77p"; type = "gem"; }; - version = "1.607.0"; + version = "1.899.0"; }; aws-sdk-core = { dependencies = ["aws-eventstream" "aws-partitions" "aws-sigv4" "jmespath"]; @@ -36,10 +36,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "164abp3cvmvfa2qsgzbxvkafbhwbgn3qwknp0amwmxw5nwvz8p3s"; + sha256 = "0dlalj0pw6nfmmfqddjj8b5rv6lq1hqdq19im3s8fjq5ln5ij8lr"; type = "gem"; }; - version = "3.131.2"; + version = "3.191.4"; }; aws-sdk-ec2 = { dependencies = ["aws-sdk-core" "aws-sigv4"]; @@ -47,10 +47,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1c56an4cmvr1ync8pif588b4alvv8zfchna092xjbdzx4ip1yrfg"; + sha256 = "19gfcb07kvywx9ymdf80k4i3yc61h41cdxnygp7197h92ff4qxhv"; type = "gem"; }; - version = "1.322.0"; + version = "1.444.0"; }; aws-sigv4 = { dependencies = ["aws-eventstream"]; @@ -58,20 +58,40 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0xp7diwq7nv4vvxrl9x3lis2l4x6bissrfzbfyy6rv5bmj5w109z"; + sha256 = "1g3w27wzjy4si6kp49w10as6ml6g6zl3xrfqs5ikpfciidv9kpc4"; type = "gem"; }; - version = "1.5.0"; + version = "1.8.0"; + }; + base64 = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "01qml0yilb9basf7is2614skjp8384h2pycfx86cr8023arfj98g"; + type = "gem"; + }; + version = "0.2.0"; + }; + bigdecimal = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0cq1c29zbkcxgdihqisirhcw76xc768z2zpd5vbccpq0l1lv76g7"; + type = "gem"; + }; + version = "3.1.7"; }; bindata = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "06lqi4svq5qls9f7nnvd2zmjdqmi2sf82sq78ci5d78fq0z5x2vr"; + sha256 = "08r67nglsqnxrbn803szf5bdnqhchhq8kf2by94f37fcl65wpp19"; type = "gem"; }; - version = "2.4.10"; + version = "2.5.0"; }; bolt = { dependencies = ["CFPropertyList" "addressable" "aws-sdk-ec2" "concurrent-ruby" "ffi" "hiera-eyaml" "jwt" "logging" "minitar" "net-scp" "net-ssh" "net-ssh-krb" "orchestrator_client" "puppet" "puppet-resource_api" "puppet-strings" "puppetfile-resolver" "r10k" "ruby_smb" "terminal-table" "winrm" "winrm-fs"]; @@ -79,10 +99,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0jshg2b2j24zgkh2nldwjqxm43dz9val6scxsjvq5kg3bwkdrby8"; + sha256 = "1abj694v2asrlzpr68shy3whf73ajk6626zqy6mhmyy8qmg8i19h"; type = "gem"; }; - version = "3.24.0"; + version = "3.28.0"; }; builder = { groups = ["default"]; @@ -95,14 +115,15 @@ version = "3.2.4"; }; CFPropertyList = { + dependencies = ["base64" "nkf" "rexml"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0hadm41xr1fq3qp74jd9l5q8l0j9083rgklgzsilllwaav7qrrid"; + sha256 = "0k1w5i4lb1z941m7ds858nly33f3iv12wvr1zav5x3fa99hj2my4"; type = "gem"; }; - version = "2.3.6"; + version = "3.0.7"; }; colored2 = { groups = ["default"]; @@ -119,20 +140,20 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0s4fpn3mqiizpmpy2a24k4v365pv75y50292r8ajrv4i1p5b2k14"; + sha256 = "1qh1b14jwbbj242klkyz5fc7npd4j0mvndz62gajhvl1l3wd7zc2"; type = "gem"; }; - version = "1.1.10"; + version = "1.2.3"; }; connection_pool = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0ffdxhgirgc86qb42yvmfj6v1v0x4lvi0pxn9zhghkff44wzra0k"; + sha256 = "1x32mcpm2cl5492kd6lbjbaf17qsssmpx9kdyr7z1wcif2cwyh0g"; type = "gem"; }; - version = "2.2.5"; + version = "2.4.1"; }; cri = { groups = ["default"]; @@ -159,10 +180,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "09l8lz3j00m898li0yfsnb6ihc63rdvhw3k5xczna5zrjk104f2l"; + sha256 = "08s75vs9cxlc4r1q2bjg4br8g9wc5lc5x5vl0vv4zq5ivxsdpgi7"; type = "gem"; }; - version = "1.10.0"; + version = "1.12.0"; }; facter = { dependencies = ["hocon" "thor"]; @@ -170,10 +191,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "16xwli99vqj5329wzmf0ifzikllrym46scm9xp28syfygsrz39j0"; + sha256 = "0pxpldfcf40dr9khra3sa131ij7gzd97bba2vpw89c785pl736a7"; type = "gem"; }; - version = "4.2.10"; + version = "4.6.1"; }; faraday = { dependencies = ["faraday-em_http" "faraday-em_synchrony" "faraday-excon" "faraday-httpclient" "faraday-multipart" "faraday-net_http" "faraday-net_http_persistent" "faraday-patron" "faraday-rack" "faraday-retry" "ruby2_keywords"]; @@ -181,10 +202,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "00palwawk897p5gypw5wjrh93d4p0xz2yl9w93yicb4kq7amh8d4"; + sha256 = "1c760q0ks4vj4wmaa7nh1dgvgqiwaw0mjr7v8cymy7i3ffgjxx90"; type = "gem"; }; - version = "1.10.0"; + version = "1.10.3"; }; faraday-em_http = { groups = ["default"]; @@ -303,31 +324,41 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0ci71w9jb979c379c7vzm88nc3k6lf68kbrsgw9nlx5g4hng0s78"; + sha256 = "112gsrqah2w03kgi9mjsn6hl74mrwckphf223h36iayc4djf4lq2"; type = "gem"; }; - version = "1.1.2"; + version = "2.3.0"; }; ffi = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1862ydmclzy1a0cjbvm8dz7847d9rch495ib0zb64y84d3xd4bkg"; + sha256 = "1yvii03hcgqj30maavddqamqy50h7y6xcn2wcyq72wn823zl4ckd"; type = "gem"; }; - version = "1.15.5"; + version = "1.16.3"; }; - gettext = { - dependencies = ["locale" "text"]; + forwardable = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0764vj7gacn0aypm2bf6m46dzjzwzrjlmbyx6qwwwzbmi94r40wr"; + sha256 = "1b5g1i3xdvmxxpq4qp0z4v78ivqnazz26w110fh4cvzsdayz8zgi"; type = "gem"; }; - version = "3.2.9"; + version = "1.3.3"; + }; + gettext = { + dependencies = ["erubi" "locale" "prime" "racc" "text"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "16h0kda5z4s4zqygyk0f52xzs9mlz9r4lnhjwk729hhmdbz68a19"; + type = "gem"; + }; + version = "3.4.9"; }; gettext-setup = { dependencies = ["fast_gettext" "gettext" "locale"]; @@ -335,10 +366,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1vfnayz20xd8q0sz27816kvgia9z2dpj9fy7z15da239wmmnz7ga"; + sha256 = "1v6liz934gmx1wv1z6bvpim6aanbr66xjhb90lc9z1jxayczmm1a"; type = "gem"; }; - version = "0.34"; + version = "1.1.0"; }; gssapi = { dependencies = ["ffi"]; @@ -362,46 +393,36 @@ }; version = "1.4.0"; }; - hiera = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "01kh882rp9xdy2cx2avax79ywpfxqhnwsn05cxwyiqrhfkk36p4x"; - type = "gem"; - }; - version = "3.9.0"; - }; hiera-eyaml = { dependencies = ["highline" "optimist"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1iydhxavcniprqly7ad8c2413jwvrdf7zjmzl3xxlnkmq9900zf9"; + sha256 = "0m7zr33qfhvwxqx4kh61rabmbkhp3y4ans66kfpgrzjyvj1vdb6d"; type = "gem"; }; - version = "3.3.0"; + version = "3.4.0"; }; highline = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0yclf57n2j3cw8144ania99h1zinf8q3f5zrhqa754j6gl95rp9d"; + sha256 = "02ghhvigqbq4252gsi4w8a9klkdkybmbz29ghfp1y6sqzlcb466a"; type = "gem"; }; - version = "2.0.3"; + version = "3.0.1"; }; hocon = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0mifv4vfvppfdpkd0cwgy634sj0aplz6ys84sp8s11qrnm6vlnmn"; + sha256 = "106dmzsl1bxkqw5xaif012nwwfr3k9wff32cqc77ibjngknj6477"; type = "gem"; }; - version = "1.3.1"; + version = "1.4.0"; }; httpclient = { groups = ["default"]; @@ -418,20 +439,20 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1mnvb80cdg7fzdcs3xscv21p28w4igk5sj5m7m81xp8v2ks87jj0"; + sha256 = "1cdw9vw2qly7q7r41s7phnac264rbsdqgj4l0h4nqgbjb157g393"; type = "gem"; }; - version = "1.6.1"; + version = "1.6.2"; }; jwt = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "036i5fc09275ms49mw43mh4i9pwaap778ra2pmx06ipzyyjl6bfs"; + sha256 = "16z11alz13vfc4zs5l3fk6n51n2jw9lskvc4h4prnww0y797qd87"; type = "gem"; }; - version = "2.2.3"; + version = "2.7.1"; }; little-plugger = { groups = ["default"]; @@ -448,10 +469,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0997465kxvpxm92fiwc2b16l49mngk7b68g5k35ify0m3q0yxpdn"; + sha256 = "107pm4ccmla23z963kyjldgngfigvchnv85wr6m69viyxxrrjbsj"; type = "gem"; }; - version = "2.1.3"; + version = "2.1.4"; }; log4r = { groups = ["default"]; @@ -509,10 +530,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1n0kvnrcrjn31jb97kcx3wj1f5kkjza7yygfq8rxzf3i57g7jaa6"; + sha256 = "1033p35166d9p97y4vajbbvr13pmkk9zwn7sylxpmk9jrpk8ri67"; type = "gem"; }; - version = "2.2.3"; + version = "2.4.0"; }; net-http-persistent = { dependencies = ["connection_pool"]; @@ -520,10 +541,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1yfypmfg1maf20yfd22zzng8k955iylz7iip0mgc9lazw36g8li7"; + sha256 = "0i1as2lgnw7b4jid0gw5glv5hnxz36nmfsbr9rmxbcap72ijgy03"; type = "gem"; }; - version = "4.0.1"; + version = "4.0.2"; }; net-scp = { dependencies = ["net-ssh"]; @@ -531,20 +552,20 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0b0jqrcsp4bbi4n4mzyf70cp2ysyp6x07j8k8cqgxnvb4i3a134j"; + sha256 = "1si2nq9l6jy5n2zw1q59a5gaji7v9vhy8qx08h4fg368906ysbdk"; type = "gem"; }; - version = "1.2.1"; + version = "4.0.0"; }; net-ssh = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0jp3jgcn8cij407xx9ldb5h9c6jv13jc4cf6kk2idclz43ww21c9"; + sha256 = "1i01340c4i144vvn3x54lc2rb77ch829qipl1rh6rqwm3yxzml9w"; type = "gem"; }; - version = "6.1.0"; + version = "7.2.1"; }; net-ssh-krb = { dependencies = ["gssapi" "net-ssh"]; @@ -557,25 +578,36 @@ }; version = "0.5.1"; }; - nori = { + nkf = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "066wc774a2zp4vrq3k7k8p0fhv30ymqmxma1jj7yg5735zls8agn"; + sha256 = "09piyp2pd74klb9wcn0zw4mb5l0k9wzwppxggxi1yi95l2ym3hgv"; type = "gem"; }; - version = "2.6.0"; + version = "0.2.0"; + }; + nori = { + dependencies = ["bigdecimal"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "12wfv36jzc0978ij5c56nnfh5k8ax574njawigs98ysmp1x5s2ql"; + type = "gem"; + }; + version = "2.7.0"; }; optimist = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1vg2chy1cfmdj6c1gryl8zvjhhmb3plwgyh1jfnpq4fnfqv7asrk"; + sha256 = "0q4jqq3v1bxlfr9jgqmahnygkvl81lr6s1rhm8qg66c9xr9nz241"; type = "gem"; }; - version = "3.0.1"; + version = "3.1.0"; }; orchestrator_client = { dependencies = ["faraday" "net-http-persistent"]; @@ -583,31 +615,42 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1lfispcl4sr1c7am22j55sj5xvsky422b3bh7645j3n12zqg7pp2"; + sha256 = "05jb10gjffrj5wy8ps1chki3n0z734bx1nx7a6wahh7cjnrqqmsg"; type = "gem"; }; - version = "0.6.1"; + version = "0.7.0"; + }; + prime = { + dependencies = ["forwardable" "singleton"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1973kz8lbck6ga5v42f55jk8b8pnbgwp9p67dl1xw15gvz55dsfl"; + type = "gem"; + }; + version = "0.1.2"; }; public_suffix = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1f3knlwfwm05sfbaihrxm4g772b79032q14c16q4b38z8bi63qcb"; + sha256 = "1bni4qjrsh2q49pnmmd6if4iv3ak36bd2cckrs6npl111n769k9m"; type = "gem"; }; - version = "4.0.7"; + version = "5.0.4"; }; puppet = { - dependencies = ["concurrent-ruby" "deep_merge" "facter" "fast_gettext" "hiera" "locale" "multi_json" "puppet-resource_api" "scanf" "semantic_puppet"]; + dependencies = ["concurrent-ruby" "deep_merge" "facter" "fast_gettext" "locale" "multi_json" "puppet-resource_api" "scanf" "semantic_puppet"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1lfpmfjc95a7s19h1q0hwjcm6gzgiaxklpayxy32p8c2hzwzjk00"; + sha256 = "1dhax5d40c03n0lffy10mvs0c3mgfqq1dsc3gb5ihgb2l1sbs0a7"; type = "gem"; }; - version = "7.17.0"; + version = "8.5.1"; }; puppet-resource_api = { dependencies = ["hocon"]; @@ -615,10 +658,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1dchnnrrx0wd0pcrry5aaqwnbbgvp81g6f3brqhgvkc397kly3lj"; + sha256 = "0rxy5s7hl707x4sc1b4v2yqyii6pkym2gmsam3ri0f0xmmzyg0jb"; type = "gem"; }; - version = "1.8.14"; + version = "1.9.0"; }; puppet-strings = { dependencies = ["rgen" "yard"]; @@ -626,10 +669,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0w3rc5swdin44an1l5jgnljv46yflcd2d2zvakd54nvdh0r30ypx"; + sha256 = "0zcs25xxkfymks4knilryfpr8k0v7z3nazdm61v7a1x4rxhs7sxp"; type = "gem"; }; - version = "2.9.0"; + version = "4.1.2"; }; puppet_forge = { dependencies = ["faraday" "faraday_middleware" "minitar" "semantic_puppet"]; @@ -648,10 +691,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0d36nzdlb7gvsikbvkm840qd5xglyph6ry395ynch6g75vlkr5xi"; + sha256 = "1kil8sbrl9c34ygrgm35893zygr4j6fjvfhbs4rs0b5n3cjrainm"; type = "gem"; }; - version = "0.6.1"; + version = "0.6.3"; }; r10k = { dependencies = ["colored2" "cri" "fast_gettext" "gettext" "gettext-setup" "jwt" "log4r" "minitar" "multi_json" "puppet_forge"]; @@ -659,30 +702,40 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0hdlq01186w9bx270iyyk10w6jccxc4f0dx7kxgg6lnl1rsnkd4i"; + sha256 = "198bar06xqap19j9y831j98ahd3w4ky2k0klwaa39sa1p6fpcjdi"; type = "gem"; }; - version = "3.15.0"; + version = "3.16.0"; + }; + racc = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "01b9662zd2x9bp4rdjfid07h09zxj7kvn7f5fghbqhzc625ap1dp"; + type = "gem"; + }; + version = "1.7.3"; }; rexml = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "08ximcyfjy94pm1rhcx04ny1vx2sk0x4y185gzn86yfsbzwkng53"; + sha256 = "05i8518ay14kjbma550mv0jm8a6di8yp5phzrd8rj44z9qnrlrp0"; type = "gem"; }; - version = "3.2.5"; + version = "3.2.6"; }; rgen = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "18ryflbkc2pvbb7jwl35pnyb1mlx9fby85dnqi7hsbz78mzsf87n"; + sha256 = "1abg3frzak6inwbr4caq6mfd5spx37xnwlxss8615jr12wh525vp"; type = "gem"; }; - version = "0.9.0"; + version = "0.9.1"; }; ruby2_keywords = { groups = ["default"]; @@ -740,10 +793,20 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0gg1bizlgb8wswxwy3irgppqvd6mlr27qsp0fzpm459wffzq10sx"; + sha256 = "0ndqm3jnpdlwkk1jwqdyyb7yw7gv6r4kmjs30g09ap8siv80ilaj"; type = "gem"; }; - version = "1.0.4"; + version = "1.1.0"; + }; + singleton = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0qq54imvbksnckzf9hrq9bjzcdb0n8wfv6l5jc0di10n88277jx6"; + type = "gem"; + }; + version = "0.2.0"; }; terminal-table = { dependencies = ["unicode-display_width"]; @@ -771,40 +834,30 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0inl77jh4ia03jw3iqm5ipr76ghal3hyjrd6r8zqsswwvi9j2xdi"; + sha256 = "1vq1fjp45az9hfp6fxljhdrkv75cvbab1jfrwcw738pnsiqk8zps"; type = "gem"; }; - version = "1.2.1"; + version = "1.3.1"; }; unicode-display_width = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1nlfck6z986fngp0r74maswmyb1rcksc8xc3mfpw9cj23c3s8zwn"; + sha256 = "1d0azx233nags5jx3fqyr23qa2rhgzbhv8pxp46dgbg1mpf82xky"; type = "gem"; }; - version = "2.2.0"; - }; - webrick = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1d4cvgmxhfczxiq5fr534lmizkhigd15bsx5719r5ds7k7ivisc7"; - type = "gem"; - }; - version = "1.7.0"; + version = "2.5.0"; }; windows_error = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0zmm2if81ia33hp18h8yrgnpgcdyrxziyf185r0zx8qy7n8mlchl"; + sha256 = "1825v7hvcl0xss6scyfv76i0cs0kvj72wy20kn7xqylw9avjga2r"; type = "gem"; }; - version = "0.1.4"; + version = "0.1.5"; }; winrm = { dependencies = ["builder" "erubi" "gssapi" "gyoku" "httpclient" "logging" "nori" "rubyntlm"]; @@ -829,14 +882,13 @@ version = "1.3.5"; }; yard = { - dependencies = ["webrick"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0p1if8g9ww6hlpfkphqv3y1z0rbqnnrvb38c5qhnala0f8qpw6yk"; + sha256 = "1r0b8w58p7gy06wph1qdjv2p087hfnmhd9jk23vjdj803dn761am"; type = "gem"; }; - version = "0.9.28"; + version = "0.9.36"; }; } From 79f0d47bb9daca4c191be13e16633ce5bd0fb183 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:22:36 +0100 Subject: [PATCH 06/69] puppet-bolt: add meta.changelog, maintainers, and remove `with lib;` --- .../admin/puppet/puppet-bolt/default.nix | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/admin/puppet/puppet-bolt/default.nix b/pkgs/tools/admin/puppet/puppet-bolt/default.nix index cf6ffb6fb893..23047c3cff47 100644 --- a/pkgs/tools/admin/puppet/puppet-bolt/default.nix +++ b/pkgs/tools/admin/puppet/puppet-bolt/default.nix @@ -1,4 +1,11 @@ -{ lib, bundlerApp, makeWrapper, bundlerUpdateScript, puppet-bolt, testers }: +{ + bundlerApp, + bundlerUpdateScript, + lib, + makeWrapper, + puppet-bolt, + testers, +}: bundlerApp { pname = "bolt"; @@ -26,11 +33,13 @@ bundlerApp { updateScript = bundlerUpdateScript "puppet-bolt"; }; - meta = with lib; { + meta = { description = "Execute commands remotely over SSH and WinRM"; homepage = "https://github.com/puppetlabs/bolt"; - license = licenses.asl20; - maintainers = with maintainers; [ uvnikita ]; - platforms = platforms.unix; + changelog = "https://github.com/puppetlabs/bolt/blob/main/CHANGELOG.md"; + license = lib.licenses.asl20; + mainProgram = "bolt"; + maintainers = with lib.maintainers; [ uvnikita anthonyroussel ]; + platforms = lib.platforms.unix; }; } From 408f89c6ccc85df7b45474c2c436bf086e44cb5f Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:23:28 +0100 Subject: [PATCH 07/69] puppet-bolt: move to pkgs/by-name --- pkgs/{tools/admin/puppet => by-name/pu}/puppet-bolt/Gemfile | 0 .../{tools/admin/puppet => by-name/pu}/puppet-bolt/Gemfile.lock | 0 pkgs/{tools/admin/puppet => by-name/pu}/puppet-bolt/gemset.nix | 0 .../default.nix => by-name/pu/puppet-bolt/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 2 deletions(-) rename pkgs/{tools/admin/puppet => by-name/pu}/puppet-bolt/Gemfile (100%) rename pkgs/{tools/admin/puppet => by-name/pu}/puppet-bolt/Gemfile.lock (100%) rename pkgs/{tools/admin/puppet => by-name/pu}/puppet-bolt/gemset.nix (100%) rename pkgs/{tools/admin/puppet/puppet-bolt/default.nix => by-name/pu/puppet-bolt/package.nix} (100%) diff --git a/pkgs/tools/admin/puppet/puppet-bolt/Gemfile b/pkgs/by-name/pu/puppet-bolt/Gemfile similarity index 100% rename from pkgs/tools/admin/puppet/puppet-bolt/Gemfile rename to pkgs/by-name/pu/puppet-bolt/Gemfile diff --git a/pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock b/pkgs/by-name/pu/puppet-bolt/Gemfile.lock similarity index 100% rename from pkgs/tools/admin/puppet/puppet-bolt/Gemfile.lock rename to pkgs/by-name/pu/puppet-bolt/Gemfile.lock diff --git a/pkgs/tools/admin/puppet/puppet-bolt/gemset.nix b/pkgs/by-name/pu/puppet-bolt/gemset.nix similarity index 100% rename from pkgs/tools/admin/puppet/puppet-bolt/gemset.nix rename to pkgs/by-name/pu/puppet-bolt/gemset.nix diff --git a/pkgs/tools/admin/puppet/puppet-bolt/default.nix b/pkgs/by-name/pu/puppet-bolt/package.nix similarity index 100% rename from pkgs/tools/admin/puppet/puppet-bolt/default.nix rename to pkgs/by-name/pu/puppet-bolt/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2581d85eeba0..0f0078e2e2c2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19530,8 +19530,6 @@ with pkgs; pup = callPackage ../development/tools/pup { }; - puppet-bolt = callPackage ../tools/admin/puppet/puppet-bolt { }; - puppeteer-cli = callPackage ../tools/graphics/puppeteer-cli { }; pyrseas = callPackage ../development/tools/database/pyrseas { }; From fd3715a45d5c90bd5aef993b0da99063c6d303c7 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:31:44 +0100 Subject: [PATCH 08/69] r10k: add anthonyroussel to maintainers --- pkgs/tools/system/r10k/default.nix | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/system/r10k/default.nix b/pkgs/tools/system/r10k/default.nix index 75b75d00253e..9b117c376b0f 100644 --- a/pkgs/tools/system/r10k/default.nix +++ b/pkgs/tools/system/r10k/default.nix @@ -1,4 +1,12 @@ -{ lib, bundlerApp, bundlerUpdateScript, makeWrapper, git, gnutar, gzip }: +{ + bundlerApp, + bundlerUpdateScript, + git, + gnutar, + gzip, + lib, + makeWrapper, +}: bundlerApp { pname = "r10k"; @@ -8,17 +16,23 @@ bundlerApp { nativeBuildInputs = [ makeWrapper ]; postBuild = '' - wrapProgram $out/bin/r10k --prefix PATH : ${lib.makeBinPath [ git gnutar gzip ]} + wrapProgram $out/bin/r10k --prefix PATH : ${ + lib.makeBinPath [ + git + gnutar + gzip + ] + } ''; passthru.updateScript = bundlerUpdateScript "r10k"; - meta = with lib; { + meta = { description = "Puppet environment and module deployment"; - homepage = "https://github.com/puppetlabs/r10k"; - license = licenses.asl20; - maintainers = with maintainers; [ zimbatm manveru nicknovitski ]; - platforms = platforms.unix; + homepage = "https://github.com/puppetlabs/r10k"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ zimbatm manveru nicknovitski anthonyroussel ]; + platforms = lib.platforms.unix; mainProgram = "r10k"; }; } From 8928b12689971f57edf37caa75a7f26bb3836258 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:33:02 +0100 Subject: [PATCH 09/69] r10k: 3.4.1 -> 4.0.1 https://github.com/puppetlabs/r10k/compare/3.4.1...4.0.1 --- pkgs/tools/system/r10k/Gemfile.lock | 64 +++++++----- pkgs/tools/system/r10k/gemset.nix | 147 ++++++++++++++++++++++------ 2 files changed, 154 insertions(+), 57 deletions(-) diff --git a/pkgs/tools/system/r10k/Gemfile.lock b/pkgs/tools/system/r10k/Gemfile.lock index 9f55e273ef25..2fa564f46cbd 100644 --- a/pkgs/tools/system/r10k/Gemfile.lock +++ b/pkgs/tools/system/r10k/Gemfile.lock @@ -2,41 +2,55 @@ GEM remote: https://rubygems.org/ specs: colored2 (3.1.2) - cri (2.15.10) - faraday (0.17.3) - multipart-post (>= 1.2, < 3) - faraday_middleware (0.13.1) - faraday (>= 0.7.4, < 1.0) - fast_gettext (1.1.2) - gettext (3.2.9) + cri (2.15.11) + erubi (1.12.0) + faraday (2.9.0) + faraday-net_http (>= 2.0, < 3.2) + faraday-follow_redirects (0.3.0) + faraday (>= 1, < 3) + faraday-net_http (3.1.0) + net-http + fast_gettext (2.3.0) + forwardable (1.3.3) + gettext (3.4.9) + erubi locale (>= 2.0.5) + prime + racc text (>= 1.3.0) - gettext-setup (0.34) - fast_gettext (~> 1.1.0) - gettext (>= 3.0.2, < 3.3.0) + gettext-setup (1.1.0) + fast_gettext (~> 2.1) + gettext (~> 3.4) locale - locale (2.1.3) + jwt (2.7.1) + locale (2.1.4) log4r (1.1.10) minitar (0.9) - multi_json (1.14.1) - multipart-post (2.1.1) - puppet_forge (2.3.3) - faraday (>= 0.9.0, < 0.18.0, != 0.13.1) - faraday_middleware (>= 0.9.0, < 0.14.0) - gettext-setup (~> 0.11) + multi_json (1.15.0) + net-http (0.4.1) + uri + prime (0.1.2) + forwardable + singleton + puppet_forge (5.0.3) + faraday (~> 2.0) + faraday-follow_redirects (~> 0.3.0) minitar semantic_puppet (~> 1.0) - r10k (3.4.1) + r10k (4.0.1) colored2 (= 3.1.2) - cri (>= 2.15.10, < 3.0.0) - fast_gettext (~> 1.1.0) - gettext (>= 3.0.2, < 3.3.0) - gettext-setup (~> 0.24) + cri (>= 2.15.10) + gettext-setup (>= 0.24, < 2.0) + jwt (>= 2.2.3, < 2.8.0) log4r (= 1.1.10) + minitar (~> 0.9) multi_json (~> 1.10) - puppet_forge (~> 2.3.0) - semantic_puppet (1.0.2) + puppet_forge (>= 4.1, < 6) + racc (1.7.3) + semantic_puppet (1.1.0) + singleton (0.2.0) text (1.3.1) + uri (0.13.0) PLATFORMS ruby @@ -45,4 +59,4 @@ DEPENDENCIES r10k BUNDLED WITH - 2.1.4 + 2.5.6 diff --git a/pkgs/tools/system/r10k/gemset.nix b/pkgs/tools/system/r10k/gemset.nix index 9b46cce00da9..d00446690566 100644 --- a/pkgs/tools/system/r10k/gemset.nix +++ b/pkgs/tools/system/r10k/gemset.nix @@ -14,53 +14,84 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1h45kw2s4bjwgbfsrncs30av0j4zjync3wmcc6lpdnzbcxs7yms2"; + sha256 = "1bhsgnjav94mz5vf3305gxz1g34gm9kxvnrn1dkz530r8bpj0hr5"; type = "gem"; }; - version = "2.15.10"; + version = "2.15.11"; }; - faraday = { - dependencies = ["multipart-post"]; + erubi = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "13aghksmni2sl15y7wfpx6k5l3lfd8j9gdyqi6cbw6jgc7bqyyn2"; + sha256 = "08s75vs9cxlc4r1q2bjg4br8g9wc5lc5x5vl0vv4zq5ivxsdpgi7"; type = "gem"; }; - version = "0.17.3"; + version = "1.12.0"; }; - faraday_middleware = { + faraday = { + dependencies = ["faraday-net_http"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1qqb1rmk0f9m82iijjlqadh5yby1bhnr6svjk9vxdvh6f181988s"; + type = "gem"; + }; + version = "2.9.0"; + }; + faraday-follow_redirects = { dependencies = ["faraday"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1a93rs58bakqck7bcihasz66a1riy22h2zpwrpmb13gp8mw3wkmr"; + sha256 = "1y87p3yk15bjbk0z9mf01r50lzxvp7agr56lbm9gxiz26mb9fbfr"; type = "gem"; }; - version = "0.13.1"; + version = "0.3.0"; + }; + faraday-net_http = { + dependencies = ["net-http"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "17w51yk4rrm9rpnbc3x509s619kba0jga3qrj4b17l30950vw9qn"; + type = "gem"; + }; + version = "3.1.0"; }; fast_gettext = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0ci71w9jb979c379c7vzm88nc3k6lf68kbrsgw9nlx5g4hng0s78"; + sha256 = "112gsrqah2w03kgi9mjsn6hl74mrwckphf223h36iayc4djf4lq2"; type = "gem"; }; - version = "1.1.2"; + version = "2.3.0"; }; - gettext = { - dependencies = ["locale" "text"]; + forwardable = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0764vj7gacn0aypm2bf6m46dzjzwzrjlmbyx6qwwwzbmi94r40wr"; + sha256 = "1b5g1i3xdvmxxpq4qp0z4v78ivqnazz26w110fh4cvzsdayz8zgi"; type = "gem"; }; - version = "3.2.9"; + version = "1.3.3"; + }; + gettext = { + dependencies = ["erubi" "locale" "prime" "racc" "text"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "16h0kda5z4s4zqygyk0f52xzs9mlz9r4lnhjwk729hhmdbz68a19"; + type = "gem"; + }; + version = "3.4.9"; }; gettext-setup = { dependencies = ["fast_gettext" "gettext" "locale"]; @@ -68,20 +99,30 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1vfnayz20xd8q0sz27816kvgia9z2dpj9fy7z15da239wmmnz7ga"; + sha256 = "1v6liz934gmx1wv1z6bvpim6aanbr66xjhb90lc9z1jxayczmm1a"; type = "gem"; }; - version = "0.34"; + version = "1.1.0"; + }; + jwt = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "16z11alz13vfc4zs5l3fk6n51n2jw9lskvc4h4prnww0y797qd87"; + type = "gem"; + }; + version = "2.7.1"; }; locale = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0997465kxvpxm92fiwc2b16l49mngk7b68g5k35ify0m3q0yxpdn"; + sha256 = "107pm4ccmla23z963kyjldgngfigvchnv85wr6m69viyxxrrjbsj"; type = "gem"; }; - version = "2.1.3"; + version = "2.1.4"; }; log4r = { groups = ["default"]; @@ -108,52 +149,84 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0xy54mjf7xg41l8qrg1bqri75agdqmxap9z466fjismc1rn2jwfr"; + sha256 = "0pb1g1y3dsiahavspyzkdy39j4q377009f6ix0bh1ag4nqw43l0z"; type = "gem"; }; - version = "1.14.1"; + version = "1.15.0"; }; - multipart-post = { + net-http = { + dependencies = ["uri"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1zgw9zlwh2a6i1yvhhc4a84ry1hv824d6g2iw2chs3k5aylpmpfj"; + sha256 = "10n2n9aq00ih8v881af88l1zyrqgs5cl3njdw8argjwbl5ggqvm9"; type = "gem"; }; - version = "2.1.1"; + version = "0.4.1"; + }; + prime = { + dependencies = ["forwardable" "singleton"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1973kz8lbck6ga5v42f55jk8b8pnbgwp9p67dl1xw15gvz55dsfl"; + type = "gem"; + }; + version = "0.1.2"; }; puppet_forge = { - dependencies = ["faraday" "faraday_middleware" "gettext-setup" "minitar" "semantic_puppet"]; + dependencies = ["faraday" "faraday-follow_redirects" "minitar" "semantic_puppet"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1lyd10ai27lxylywjxpwyxikx5hblsdchid3chymrrv55x217cny"; + sha256 = "168w15y5rnsm6wspqxn0wg543r89cbajc8wky0sg9vzpgpr27176"; type = "gem"; }; - version = "2.3.3"; + version = "5.0.3"; }; r10k = { - dependencies = ["colored2" "cri" "fast_gettext" "gettext" "gettext-setup" "log4r" "multi_json" "puppet_forge"]; + dependencies = ["colored2" "cri" "gettext-setup" "jwt" "log4r" "minitar" "multi_json" "puppet_forge"]; groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0nlckw4yr2ph14i9h0blsdb5zmrzqh3aknkm0dg3hrcx8ygncai6"; + sha256 = "1g7bx9k112mnxpnasj59zaz2c7x51ia856b5q41kfr3i9y2q3k78"; type = "gem"; }; - version = "3.4.1"; + version = "4.0.1"; + }; + racc = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "01b9662zd2x9bp4rdjfid07h09zxj7kvn7f5fghbqhzc625ap1dp"; + type = "gem"; + }; + version = "1.7.3"; }; semantic_puppet = { groups = ["default"]; platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "046m45rdwpvfz77s7bxid27c89w329c1nj593p74wdd8kknf0nv0"; + sha256 = "0ndqm3jnpdlwkk1jwqdyyb7yw7gv6r4kmjs30g09ap8siv80ilaj"; type = "gem"; }; - version = "1.0.2"; + version = "1.1.0"; + }; + singleton = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0qq54imvbksnckzf9hrq9bjzcdb0n8wfv6l5jc0di10n88277jx6"; + type = "gem"; + }; + version = "0.2.0"; }; text = { groups = ["default"]; @@ -165,4 +238,14 @@ }; version = "1.3.1"; }; + uri = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "094gk72ckazf495qc76gk09b5i318d5l9m7bicg2wxlrjcm3qm96"; + type = "gem"; + }; + version = "0.13.0"; + }; } From bc833bf0250e61ee702deac1750e68aaf3630e62 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:34:50 +0100 Subject: [PATCH 10/69] r10k: add passthru.tests.version --- pkgs/tools/system/r10k/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/system/r10k/default.nix b/pkgs/tools/system/r10k/default.nix index 9b117c376b0f..ab38363ab596 100644 --- a/pkgs/tools/system/r10k/default.nix +++ b/pkgs/tools/system/r10k/default.nix @@ -6,6 +6,8 @@ gzip, lib, makeWrapper, + r10k, + testers, }: bundlerApp { @@ -25,7 +27,14 @@ bundlerApp { } ''; - passthru.updateScript = bundlerUpdateScript "r10k"; + passthru = { + tests.version = testers.testVersion { + command = "${lib.getExe r10k} version"; + package = r10k; + version = (import ./gemset.nix).r10k.version; + }; + updateScript = bundlerUpdateScript "r10k"; + }; meta = { description = "Puppet environment and module deployment"; From dc611ed73dd741ca81e94cc11bf812bb70502742 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:37:15 +0100 Subject: [PATCH 11/69] r10k: move to pkgs/by-name --- pkgs/{tools/system => by-name/r1}/r10k/Gemfile | 0 pkgs/{tools/system => by-name/r1}/r10k/Gemfile.lock | 0 pkgs/{tools/system => by-name/r1}/r10k/gemset.nix | 0 .../system/r10k/default.nix => by-name/r1/r10k/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 2 deletions(-) rename pkgs/{tools/system => by-name/r1}/r10k/Gemfile (100%) rename pkgs/{tools/system => by-name/r1}/r10k/Gemfile.lock (100%) rename pkgs/{tools/system => by-name/r1}/r10k/gemset.nix (100%) rename pkgs/{tools/system/r10k/default.nix => by-name/r1/r10k/package.nix} (100%) diff --git a/pkgs/tools/system/r10k/Gemfile b/pkgs/by-name/r1/r10k/Gemfile similarity index 100% rename from pkgs/tools/system/r10k/Gemfile rename to pkgs/by-name/r1/r10k/Gemfile diff --git a/pkgs/tools/system/r10k/Gemfile.lock b/pkgs/by-name/r1/r10k/Gemfile.lock similarity index 100% rename from pkgs/tools/system/r10k/Gemfile.lock rename to pkgs/by-name/r1/r10k/Gemfile.lock diff --git a/pkgs/tools/system/r10k/gemset.nix b/pkgs/by-name/r1/r10k/gemset.nix similarity index 100% rename from pkgs/tools/system/r10k/gemset.nix rename to pkgs/by-name/r1/r10k/gemset.nix diff --git a/pkgs/tools/system/r10k/default.nix b/pkgs/by-name/r1/r10k/package.nix similarity index 100% rename from pkgs/tools/system/r10k/default.nix rename to pkgs/by-name/r1/r10k/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0f0078e2e2c2..f498d35a48b6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19547,8 +19547,6 @@ with pkgs; qxmledit = libsForQt5.callPackage ../applications/editors/qxmledit {} ; - r10k = callPackage ../tools/system/r10k { }; - radare2 = callPackage ../development/tools/analysis/radare2 ({ lua = lua5; } // (config.radare or {})); From 5ccb83a906d114d69c938fc09a57c04de9398cb6 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:40:37 +0100 Subject: [PATCH 12/69] pdk: format with nixfmt-rfc-style --- pkgs/by-name/pd/pdk/package.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/pd/pdk/package.nix b/pkgs/by-name/pd/pdk/package.nix index 20d99e034d60..56270b8895b9 100644 --- a/pkgs/by-name/pd/pdk/package.nix +++ b/pkgs/by-name/pd/pdk/package.nix @@ -1,8 +1,9 @@ -{ lib, +{ bundlerApp, bundlerUpdateScript, + gnumake, + lib, makeWrapper, - gnumake }: bundlerApp { @@ -18,10 +19,10 @@ bundlerApp { passthru.updateScript = bundlerUpdateScript "pdk"; - meta = with lib; { + meta = { description = "Puppet Development Kit"; - homepage = "https://github.com/puppetlabs/pdk"; - license = licenses.asl20; - maintainers = with maintainers; [ netali ]; + homepage = "https://github.com/puppetlabs/pdk"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ netali ]; }; } From 6826d9de871ca589f1b34970c87ab5cbd1070dec Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:40:53 +0100 Subject: [PATCH 13/69] pdk: add anthonyroussel to maintainers --- pkgs/by-name/pd/pdk/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/pd/pdk/package.nix b/pkgs/by-name/pd/pdk/package.nix index 56270b8895b9..025f0ad13e9f 100644 --- a/pkgs/by-name/pd/pdk/package.nix +++ b/pkgs/by-name/pd/pdk/package.nix @@ -23,6 +23,6 @@ bundlerApp { description = "Puppet Development Kit"; homepage = "https://github.com/puppetlabs/pdk"; license = lib.licenses.asl20; - maintainers = with lib.maintainers; [ netali ]; + maintainers = with lib.maintainers; [ netali anthonyroussel ]; }; } From 6efd3efcb147e2cae621aad1e6aa6993f63c454c Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:42:33 +0100 Subject: [PATCH 14/69] pdk: add passthru.tests.version, meta.changelog, meta.mainProgram --- pkgs/by-name/pd/pdk/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/pd/pdk/package.nix b/pkgs/by-name/pd/pdk/package.nix index 025f0ad13e9f..91bd27a53a44 100644 --- a/pkgs/by-name/pd/pdk/package.nix +++ b/pkgs/by-name/pd/pdk/package.nix @@ -4,6 +4,8 @@ gnumake, lib, makeWrapper, + pdk, + testers, }: bundlerApp { @@ -17,12 +19,20 @@ bundlerApp { wrapProgram $out/bin/pdk --prefix PATH : ${lib.makeBinPath [ gnumake ]} ''; - passthru.updateScript = bundlerUpdateScript "pdk"; + passthru = { + tests.version = testers.testVersion { + package = pdk; + version = (import ./gemset.nix).pdk.version; + }; + updateScript = bundlerUpdateScript "pdk"; + }; meta = { + changelog = "https://github.com/puppetlabs/pdk/blob/main/CHANGELOG.md"; description = "Puppet Development Kit"; homepage = "https://github.com/puppetlabs/pdk"; license = lib.licenses.asl20; + mainProgram = "pdk"; maintainers = with lib.maintainers; [ netali anthonyroussel ]; }; } From ea80fbe7c3d3d235dfbedef24ab4bd1c7b55b941 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:44:44 +0100 Subject: [PATCH 15/69] facter: 3.14.17 -> 4.6.1 https://github.com/puppetlabs/facter/compare/3.14.17...4.6.1 --- pkgs/tools/system/facter/Gemfile | 5 ++ pkgs/tools/system/facter/Gemfile.lock | 17 ++++++ pkgs/tools/system/facter/default.nix | 87 ++++++++++++++++++--------- pkgs/tools/system/facter/gemset.nix | 33 ++++++++++ 4 files changed, 112 insertions(+), 30 deletions(-) create mode 100644 pkgs/tools/system/facter/Gemfile create mode 100644 pkgs/tools/system/facter/Gemfile.lock create mode 100644 pkgs/tools/system/facter/gemset.nix diff --git a/pkgs/tools/system/facter/Gemfile b/pkgs/tools/system/facter/Gemfile new file mode 100644 index 000000000000..eff7af10b5d6 --- /dev/null +++ b/pkgs/tools/system/facter/Gemfile @@ -0,0 +1,5 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gem "facter" diff --git a/pkgs/tools/system/facter/Gemfile.lock b/pkgs/tools/system/facter/Gemfile.lock new file mode 100644 index 000000000000..d980285ae0f3 --- /dev/null +++ b/pkgs/tools/system/facter/Gemfile.lock @@ -0,0 +1,17 @@ +GEM + remote: https://rubygems.org/ + specs: + facter (4.6.1) + hocon (~> 1.3) + thor (>= 1.0.1, < 2.0) + hocon (1.4.0) + thor (1.3.1) + +PLATFORMS + ruby + +DEPENDENCIES + facter + +BUNDLED WITH + 2.5.6 diff --git a/pkgs/tools/system/facter/default.nix b/pkgs/tools/system/facter/default.nix index 02c48d302ac3..38d037c53efb 100644 --- a/pkgs/tools/system/facter/default.nix +++ b/pkgs/tools/system/facter/default.nix @@ -1,39 +1,66 @@ -{ lib, stdenv, fetchFromGitHub, boost, cmake, cpp-hocon, curl, leatherman, libwhereami, yaml-cpp, openssl, ruby, util-linux }: +{ + bundlerApp, + bundlerUpdateScript, + coreutils, + facter, + gnugrep, + iproute2, + lib, + makeWrapper, + nettools, + pciutils, + procps, + stdenv, + testers, + util-linux, + virt-what, + zfs, +}: -stdenv.mkDerivation rec { +bundlerApp { pname = "facter"; - version = "3.14.17"; + gemdir = ./.; + exes = [ "facter" ]; - src = fetchFromGitHub { - sha256 = "sha256-RvsUt1DyN8Xr+Xtz84mbKlDwxLewgK6qklYVdQHu6q0="; - rev = version; - repo = pname; - owner = "puppetlabs"; + nativeBuildInputs = [ makeWrapper ]; + + postBuild = + let + runtimeDependencies = + [ + coreutils + gnugrep + nettools + pciutils + procps + util-linux + ] + ++ lib.optionals stdenv.isLinux [ + iproute2 + virt-what + zfs + ]; + in + '' + wrapProgram $out/bin/facter --prefix PATH : ${lib.makeBinPath runtimeDependencies} + ''; + + passthru = { + tests.version = testers.testVersion { + command = "${lib.getExe facter} --version"; + package = facter; + version = (import ./gemset.nix).facter.version; + }; + updateScript = bundlerUpdateScript "facter"; }; - postPatch = '' - sed '1i#include ' -i lib/src/facts/glib/load_average_resolver.cc # gcc12 - ''; - - CXXFLAGS = lib.optionalString stdenv.cc.isGNU "-fpermissive -Wno-error=catch-value"; - NIX_LDFLAGS = lib.optionalString stdenv.isLinux "-lblkid"; - - cmakeFlags = [ - "-DFACTER_RUBY=${ruby}/lib/libruby${stdenv.hostPlatform.extensions.sharedLibrary}" - "-DRUBY_LIB_INSTALL=${placeholder "out"}/lib/ruby" - ]; - - env.NIX_CFLAGS_COMPILE = "-Wno-error"; - - nativeBuildInputs = [ cmake ]; - buildInputs = [ boost cpp-hocon curl leatherman libwhereami yaml-cpp openssl ruby util-linux ]; - - meta = with lib; { - homepage = "https://github.com/puppetlabs/facter"; + meta = { + changelog = "https://www.puppet.com/docs/puppet/latest/release_notes_facter.html"; description = "A system inventory tool"; - license = licenses.asl20; - maintainers = [ maintainers.womfoo ]; - platforms = platforms.unix; + homepage = "https://github.com/puppetlabs/facter"; + license = lib.licenses.asl20; mainProgram = "facter"; + maintainers = with lib.maintainers; [ womfoo anthonyroussel ]; + platforms = lib.platforms.unix; }; } diff --git a/pkgs/tools/system/facter/gemset.nix b/pkgs/tools/system/facter/gemset.nix new file mode 100644 index 000000000000..6f1cf7a2b8b0 --- /dev/null +++ b/pkgs/tools/system/facter/gemset.nix @@ -0,0 +1,33 @@ +{ + facter = { + dependencies = ["hocon" "thor"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0pxpldfcf40dr9khra3sa131ij7gzd97bba2vpw89c785pl736a7"; + type = "gem"; + }; + version = "4.6.1"; + }; + hocon = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "106dmzsl1bxkqw5xaif012nwwfr3k9wff32cqc77ibjngknj6477"; + type = "gem"; + }; + version = "1.4.0"; + }; + thor = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1vq1fjp45az9hfp6fxljhdrkv75cvbab1jfrwcw738pnsiqk8zps"; + type = "gem"; + }; + version = "1.3.1"; + }; +} From fe26578be988f00bd629d7775a04c7ae87c3574e Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 16:55:03 +0100 Subject: [PATCH 16/69] facter: move to pkgs/by-name --- pkgs/{tools/system => by-name/fa}/facter/Gemfile | 0 pkgs/{tools/system => by-name/fa}/facter/Gemfile.lock | 0 pkgs/{tools/system => by-name/fa}/facter/gemset.nix | 0 .../system/facter/default.nix => by-name/fa/facter/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 5 files changed, 2 deletions(-) rename pkgs/{tools/system => by-name/fa}/facter/Gemfile (100%) rename pkgs/{tools/system => by-name/fa}/facter/Gemfile.lock (100%) rename pkgs/{tools/system => by-name/fa}/facter/gemset.nix (100%) rename pkgs/{tools/system/facter/default.nix => by-name/fa/facter/package.nix} (100%) diff --git a/pkgs/tools/system/facter/Gemfile b/pkgs/by-name/fa/facter/Gemfile similarity index 100% rename from pkgs/tools/system/facter/Gemfile rename to pkgs/by-name/fa/facter/Gemfile diff --git a/pkgs/tools/system/facter/Gemfile.lock b/pkgs/by-name/fa/facter/Gemfile.lock similarity index 100% rename from pkgs/tools/system/facter/Gemfile.lock rename to pkgs/by-name/fa/facter/Gemfile.lock diff --git a/pkgs/tools/system/facter/gemset.nix b/pkgs/by-name/fa/facter/gemset.nix similarity index 100% rename from pkgs/tools/system/facter/gemset.nix rename to pkgs/by-name/fa/facter/gemset.nix diff --git a/pkgs/tools/system/facter/default.nix b/pkgs/by-name/fa/facter/package.nix similarity index 100% rename from pkgs/tools/system/facter/default.nix rename to pkgs/by-name/fa/facter/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 690d87da8118..2763750b2344 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5271,8 +5271,6 @@ with pkgs; facedetect = callPackage ../tools/graphics/facedetect { }; - facter = callPackage ../tools/system/facter { }; - faketty = callPackage ../tools/misc/faketty { }; fasd = callPackage ../tools/misc/fasd { }; From 7705fda40a3f262ce0afe352e7dbd57a62d250d1 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sun, 24 Mar 2024 17:46:46 +0100 Subject: [PATCH 17/69] pdk: fix build for all ruby platforms --- pkgs/by-name/pd/pdk/Gemfile.lock | 12 ++++++------ pkgs/by-name/pd/pdk/gemset.nix | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/pd/pdk/Gemfile.lock b/pkgs/by-name/pd/pdk/Gemfile.lock index 9cf412d55a74..85ab3bacbae5 100644 --- a/pkgs/by-name/pd/pdk/Gemfile.lock +++ b/pkgs/by-name/pd/pdk/Gemfile.lock @@ -7,15 +7,15 @@ GEM concurrent-ruby (1.1.10) cri (2.15.11) deep_merge (1.2.2) - diff-lcs (1.5.0) - facter (4.5.1) + diff-lcs (1.5.1) + facter (4.6.1) hocon (~> 1.3) thor (>= 1.0.1, < 2.0) ffi (1.16.3) hitimes (2.0.0) hocon (1.4.0) httpclient (2.8.3) - json-schema (4.1.1) + json-schema (4.2.0) addressable (>= 2.8) json_pure (2.6.3) minitar (0.9) @@ -41,7 +41,7 @@ GEM tty-spinner (~> 0.9) tty-which (~> 0.5) public_suffix (5.0.4) - thor (1.3.0) + thor (1.3.1) tty-color (0.6.0) tty-cursor (0.7.1) tty-prompt (0.23.1) @@ -58,10 +58,10 @@ GEM wisper (2.0.1) PLATFORMS - x86_64-linux + ruby DEPENDENCIES pdk (= 3.0.1) BUNDLED WITH - 2.4.22 + 2.5.6 diff --git a/pkgs/by-name/pd/pdk/gemset.nix b/pkgs/by-name/pd/pdk/gemset.nix index cfc47fa4bb32..6d8fa5dceb08 100644 --- a/pkgs/by-name/pd/pdk/gemset.nix +++ b/pkgs/by-name/pd/pdk/gemset.nix @@ -55,10 +55,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0rwvjahnp7cpmracd8x732rjgnilqv2sx7d1gfrysslc3h039fa9"; + sha256 = "1znxccz83m4xgpd239nyqxlifdb7m8rlfayk6s259186nkgj6ci7"; type = "gem"; }; - version = "1.5.0"; + version = "1.5.1"; }; facter = { dependencies = ["hocon" "thor"]; @@ -66,10 +66,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0zpmih27d074zh4jvp4y0a539bh46rd3p02q2aiga3y4981nmh4w"; + sha256 = "0pxpldfcf40dr9khra3sa131ij7gzd97bba2vpw89c785pl736a7"; type = "gem"; }; - version = "4.5.1"; + version = "4.6.1"; }; ffi = { groups = ["default"]; @@ -117,10 +117,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "0j9dz9sf7swwmfahlngph8n9ibm0cx7mdy9zpv3w44578nbkka49"; + sha256 = "1h23nlk1a5xg7ayayzkanrgy3s5sk57vmc3awqbplqwzf8827rdd"; type = "gem"; }; - version = "4.1.1"; + version = "4.2.0"; }; json_pure = { groups = ["default"]; @@ -189,10 +189,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "1hx77jxkrwi66yvs10wfxqa8s25ds25ywgrrf66acm9nbfg7zp0s"; + sha256 = "1vq1fjp45az9hfp6fxljhdrkv75cvbab1jfrwcw738pnsiqk8zps"; type = "gem"; }; - version = "1.3.0"; + version = "1.3.1"; }; tty-color = { groups = ["default"]; From c0b692fbb97b98641dfa7e5dc2cc806a0bf39525 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 8 Apr 2024 15:13:14 +0000 Subject: [PATCH 18/69] sniffnet: 1.2.2 -> 1.3.0 --- pkgs/applications/networking/sniffnet/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/sniffnet/default.nix b/pkgs/applications/networking/sniffnet/default.nix index 6142aa3898e2..def0f5900ba1 100644 --- a/pkgs/applications/networking/sniffnet/default.nix +++ b/pkgs/applications/networking/sniffnet/default.nix @@ -15,16 +15,16 @@ rustPlatform.buildRustPackage rec { pname = "sniffnet"; - version = "1.2.2"; + version = "1.3.0"; src = fetchFromGitHub { owner = "gyulyvgc"; repo = "sniffnet"; rev = "refs/tags/v${version}"; - hash = "sha256-wIyPb1RxvjkGu3Gs69HyL1WuLZUIFWB8URJjkz3oar0="; + hash = "sha256-3OvzMzlaSwT7fOJATi+2QsSWln+SLkXNr2kYlQGClwA="; }; - cargoHash = "sha256-iB8KL0ad+rI4HuZLgb7KqfrUBTQuKRWjqaa6BnHU5eg="; + cargoHash = "sha256-PdlST5n8YaKkByPOvFAg5CqRxVkqRgLeVHW6CJOKioY="; nativeBuildInputs = [ pkg-config ]; From 3dcf7c5c245dad0eab734da16e873b45a9555d45 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 9 Apr 2024 10:41:52 +0100 Subject: [PATCH 19/69] linuxPackages.mwprocapture: 1.3.0.4373 -> 1.3.0.4390 --- pkgs/os-specific/linux/mwprocapture/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/mwprocapture/default.nix b/pkgs/os-specific/linux/mwprocapture/default.nix index 9185f50674ff..a90a8716cca9 100644 --- a/pkgs/os-specific/linux/mwprocapture/default.nix +++ b/pkgs/os-specific/linux/mwprocapture/default.nix @@ -12,12 +12,12 @@ let in stdenv.mkDerivation rec { pname = "mwprocapture"; - subVersion = "4373"; + subVersion = "4390"; version = "1.3.0.${subVersion}-${kernel.version}"; src = fetchurl { url = "https://www.magewell.com/files/drivers/ProCaptureForLinux_${subVersion}.tar.gz"; - sha256 = "sha256-/6q+6CTlgkHOgq1PF8dSPfl/xm/UFczr/AGkac2mXZ8="; + sha256 = "sha256-HOVAR9auc8ulENPLoI0scdCMZoSbDYkTaCLgZoFG7eU="; }; nativeBuildInputs = kernel.moduleBuildDependencies; From b3781c38182459cc5bad4c2a2c6aa7fc5d352083 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 9 Apr 2024 14:00:15 +0000 Subject: [PATCH 20/69] go-task: 3.35.1 -> 3.36.0 --- pkgs/development/tools/go-task/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/go-task/default.nix b/pkgs/development/tools/go-task/default.nix index 67a6ad2c0863..510acbbdf045 100644 --- a/pkgs/development/tools/go-task/default.nix +++ b/pkgs/development/tools/go-task/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "go-task"; - version = "3.35.1"; + version = "3.36.0"; src = fetchFromGitHub { owner = pname; repo = "task"; rev = "refs/tags/v${version}"; - hash = "sha256-HFjoLzGF62noA9NQk1Delq6vOcuTZzsyq6kH6QtR7zI="; + hash = "sha256-09dw6bDEKbgajH+/estVYDkbUdUiUUuqXYQqeOBTeQ0="; }; - vendorHash = "sha256-HhnherRx5YQn4ArcavVZutze9usYP+PRI07lEXyw8a0="; + vendorHash = "sha256-ahBpIPTHByZ5Qnl6PaOeTLNBq2hQ78+dUmaHvkJxkWg="; doCheck = false; From 5e221931a44bcf95b36076002dbdbaf902a01d25 Mon Sep 17 00:00:00 2001 From: Jean-Francois Chevrette Date: Tue, 9 Apr 2024 12:23:20 -0400 Subject: [PATCH 21/69] rosa: set passthru.updateScript to nix-update-script --- pkgs/by-name/ro/rosa/package.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ro/rosa/package.nix b/pkgs/by-name/ro/rosa/package.nix index 61fa1ed83950..c50ca87e821b 100644 --- a/pkgs/by-name/ro/rosa/package.nix +++ b/pkgs/by-name/ro/rosa/package.nix @@ -1,4 +1,4 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, rosa }: +{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, rosa, nix-update-script }: buildGoModule rec { pname = "rosa"; @@ -24,9 +24,12 @@ buildGoModule rec { --zsh <($out/bin/rosa completion zsh) ''; - passthru.tests.version = testers.testVersion { - package = rosa; - command = "rosa version --client"; + passthru = { + tests.version = testers.testVersion { + package = rosa; + command = "rosa version --client"; + }; + updateScript = nix-update-script { }; }; meta = with lib; { From bd17c30c7578ee99b9c0db699d0018b9ce92c709 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Tue, 9 Apr 2024 20:50:06 -0700 Subject: [PATCH 22/69] python311Packages.tpm2-pytss: fix cross-compilation When tpm2-pytss builds, it will parse headers files from tpm2-tss. Those files are fed through cpp via pycparser. Because our cross-compilation environment uses prefixed binaries like `aarch64-unknown-linux-gnu-cpp`, those can't be found by pycparser. This adds a patch to the setup.py to provide the name of the binary. Fixes #302878 --- .../python-modules/tpm2-pytss/cross.patch | 22 +++++++++++++++++++ .../python-modules/tpm2-pytss/default.nix | 17 ++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/development/python-modules/tpm2-pytss/cross.patch diff --git a/pkgs/development/python-modules/tpm2-pytss/cross.patch b/pkgs/development/python-modules/tpm2-pytss/cross.patch new file mode 100644 index 000000000000..8fa2956c11d0 --- /dev/null +++ b/pkgs/development/python-modules/tpm2-pytss/cross.patch @@ -0,0 +1,22 @@ +diff --git a/setup.py b/setup.py +index 1b5f513..d660b9a 100644 +--- a/setup.py ++++ b/setup.py +@@ -184,7 +184,8 @@ class type_generator(build_ext): + f"unable to find tss2_tpm2_types.h in {pk['include_dirs']}" + ) + pdata = preprocess_file( +- header_path, cpp_args=["-D__extension__=", "-D__attribute__(x)="] ++ header_path, cpp_args=["-D__extension__=", "-D__attribute__(x)="], ++ cpp_path="@crossPrefix@-cpp", + ) + parser = c_parser.CParser() + ast = parser.parse(pdata, "tss2_tpm2_types.h") +@@ -210,6 +211,7 @@ class type_generator(build_ext): + "-D__float128=long double", + "-D_FORTIFY_SOURCE=0", + ], ++ cpp_path="@crossPrefix@-cpp", + ) + parser = c_parser.CParser() + past = parser.parse(pdata, "tss2_policy.h") diff --git a/pkgs/development/python-modules/tpm2-pytss/default.nix b/pkgs/development/python-modules/tpm2-pytss/default.nix index 484f3dc2d16e..7b5fd56b0a10 100644 --- a/pkgs/development/python-modules/tpm2-pytss/default.nix +++ b/pkgs/development/python-modules/tpm2-pytss/default.nix @@ -1,4 +1,6 @@ { lib +, stdenv +, substituteAll , buildPythonPackage , fetchPypi , pythonOlder @@ -17,6 +19,9 @@ , swtpm }: +let + isCross = (stdenv.buildPlatform != stdenv.hostPlatform); +in buildPythonPackage rec { pname = "tpm2-pytss"; version = "2.2.1"; @@ -32,6 +37,18 @@ buildPythonPackage rec { patches = [ # Fix hardcoded `fapi-config.json` configuration path ./fapi-config.patch + ] ++ lib.optionals isCross [ + # pytss will regenerate files from headers of tpm2-tss. + # Those headers are fed through a compiler via pycparser. pycparser expects `cpp` + # to be in the path. + # This is put in the path via stdenv when not cross-compiling, but this is absent + # when cross-compiling is turned on. + # This patch changes the call to pycparser.preprocess_file to provide the name + # of the cross-compiling cpp + (substituteAll { + src = ./cross.patch; + crossPrefix = stdenv.hostPlatform.config; + }) ]; postPatch = '' From d9f3cf135358e0a3afae8c8af783b32195d3a8c6 Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Fri, 12 Apr 2024 10:17:08 +0200 Subject: [PATCH 23/69] sssd: add meta.pkgConfigModules, passthru.tests.pkg-config --- pkgs/os-specific/linux/sssd/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/os-specific/linux/sssd/default.nix b/pkgs/os-specific/linux/sssd/default.nix index 0f0c6fcf4a65..4f27c7e83fb5 100644 --- a/pkgs/os-specific/linux/sssd/default.nix +++ b/pkgs/os-specific/linux/sssd/default.nix @@ -110,6 +110,7 @@ stdenv.mkDerivation (finalAttrs: { passthru = { tests = { inherit (nixosTests) sssd sssd-ldap; + pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; version = testers.testVersion { package = finalAttrs.finalPackage; command = "sssd --version"; @@ -125,5 +126,11 @@ stdenv.mkDerivation (finalAttrs: { license = licenses.gpl3Plus; platforms = platforms.linux; maintainers = with maintainers; [ illustris ]; + pkgConfigModules = [ + "ipa_hbac" + "sss_certmap" + "sss_idmap" + "sss_nss_idmap" + ]; }; }) From ad83596e07ed8c0aedd15872f4a772a5d66f974c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 02:31:53 +0000 Subject: [PATCH 24/69] srm-cuarzo: 0.5.5-1 -> 0.5.6-1 --- pkgs/by-name/sr/srm-cuarzo/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/sr/srm-cuarzo/package.nix b/pkgs/by-name/sr/srm-cuarzo/package.nix index 1f636e8aaeeb..5612520e626e 100644 --- a/pkgs/by-name/sr/srm-cuarzo/package.nix +++ b/pkgs/by-name/sr/srm-cuarzo/package.nix @@ -14,9 +14,9 @@ }: stdenv.mkDerivation (self: { pname = "srm-cuarzo"; - version = "0.5.5-1"; + version = "0.5.6-1"; rev = "v${self.version}"; - hash = "sha256-4aeKzvhfVmimz4Df7wnyZESAZa7RMjYUqbhFhqPJ59o="; + hash = "sha256-REILtx4tPAWX4JnBjC0EU5dnnZhbVHhlVAWKo7n7sdA="; src = fetchFromGitHub { inherit (self) rev hash; From 7b167c79c48e919e86da998e507913e91e766c66 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 15:04:48 +0000 Subject: [PATCH 25/69] glooctl: 1.16.9 -> 1.16.10 --- pkgs/applications/networking/cluster/glooctl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/glooctl/default.nix b/pkgs/applications/networking/cluster/glooctl/default.nix index 446d0e8ca7c1..67a7f12f2d8a 100644 --- a/pkgs/applications/networking/cluster/glooctl/default.nix +++ b/pkgs/applications/networking/cluster/glooctl/default.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "glooctl"; - version = "1.16.9"; + version = "1.16.10"; src = fetchFromGitHub { owner = "solo-io"; repo = "gloo"; rev = "v${version}"; - hash = "sha256-9zGtMfVZL+VIpEw2D5n4LzyTYNLCJFKf7Q++QiUKPxA="; + hash = "sha256-GC0/HGPO/sbkyf2bLY0A+pQrPYqMv6BP0zNUHENpQjg="; }; vendorHash = "sha256-UyzqKpF2WBj25Bm4MtkF6yjl87A61vGsteBNCjJV178="; From 87d52ceade5a733c151a463075f319f44e5ba735 Mon Sep 17 00:00:00 2001 From: Leona Maroni Date: Sun, 14 Apr 2024 17:45:55 +0200 Subject: [PATCH 26/69] nixos/doc: add loki breaking change --- nixos/doc/manual/release-notes/rl-2405.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index faa0b9b10f59..dc8fe0c47978 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -588,3 +588,5 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m - `documentation.man.mandoc` now by default uses `MANPATH` to set the directories where mandoc will search for manual pages. This enables mandoc to find manual pages in Nix profiles. To set the manual search paths via the `mandoc.conf` configuration file like before, use `documentation.man.mandoc.settings.manpath` instead. + +- The `grafana-loki` package was updated to 3.0.0 which includes [breaking changes](https://github.com/grafana/loki/releases/tag/v3.0.0) From a5cedfaffa62205ffeeb7d11a3d6d9ca483c2c65 Mon Sep 17 00:00:00 2001 From: Acid Bong Date: Sun, 14 Apr 2024 12:00:42 +0300 Subject: [PATCH 27/69] nixos/slock: add .package option (for those wishing to override) --- nixos/modules/programs/slock.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nixos/modules/programs/slock.nix b/nixos/modules/programs/slock.nix index ce80fcc5d4a8..f39b4d5e9280 100644 --- a/nixos/modules/programs/slock.nix +++ b/nixos/modules/programs/slock.nix @@ -16,16 +16,17 @@ in Whether to install slock screen locker with setuid wrapper. ''; }; + package = mkPackageOption pkgs "slock" {}; }; }; config = mkIf cfg.enable { - environment.systemPackages = [ pkgs.slock ]; + environment.systemPackages = [ cfg.package ]; security.wrappers.slock = { setuid = true; owner = "root"; group = "root"; - source = "${pkgs.slock.out}/bin/slock"; + source = lib.getExe cfg.package; }; }; } From f82cd4f491da960f9c49893b451e6c3482c17e60 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 17:13:25 +0000 Subject: [PATCH 28/69] python312Packages.pygccxml: 2.4.0 -> 2.5.0 --- pkgs/development/python-modules/pygccxml/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pygccxml/default.nix b/pkgs/development/python-modules/pygccxml/default.nix index 10336a27549f..0d9b12edec7d 100644 --- a/pkgs/development/python-modules/pygccxml/default.nix +++ b/pkgs/development/python-modules/pygccxml/default.nix @@ -9,7 +9,7 @@ buildPythonPackage rec { pname = "pygccxml"; - version = "2.4.0"; + version = "2.5.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { owner = "gccxml"; repo = "pygccxml"; rev = "refs/tags/v${version}"; - hash = "sha256-rw99afv68c92LWmKUErB1y0Cts69UEpI0GCxSMvD+B8="; + hash = "sha256-wHZy2BG3h+OMTvIAPtLlq1vsW5V/TqZdnzBJ9VipMiQ="; }; nativeBuildInputs = [ From 4d17d84209da8c9f0021aab228a015c8a2f12bfd Mon Sep 17 00:00:00 2001 From: Zaechus Date: Thu, 11 Apr 2024 02:17:14 -0600 Subject: [PATCH 29/69] devilutionx: 1.4.1 -> 1.5.2 --- pkgs/games/devilutionx/default.nix | 63 ++++++++++++++++-------------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/pkgs/games/devilutionx/default.nix b/pkgs/games/devilutionx/default.nix index 7f98cbccff3a..9168a34253b9 100644 --- a/pkgs/games/devilutionx/default.nix +++ b/pkgs/games/devilutionx/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , fetchFromGitHub -, fetchpatch , fetchurl , bzip2 , cmake @@ -9,8 +8,9 @@ , gettext , libsodium , SDL2 -, SDL_audiolib , SDL2_image +, SDL_audiolib +, flac , fmt , libpng , smpq @@ -21,20 +21,20 @@ let # fork with patches, far behind upstream asio = fetchurl { - url = "https://github.com/diasurgical/asio/archive/ebeff99f539da23d27c2e8d4bdbc1ee011968644.tar.gz"; - sha256 = "0vhb4cig40mm0a98i74grpmfkcmby8zxg6vqa38dpryxpgvp5fw8"; + url = "https://github.com/diasurgical/asio/archive/bd1c839ef741b14365e77964bdd5a78994c05934.tar.gz"; + sha256 = "sha256-ePcdyvOfO5tyPVP+8t3+cS/XeEp47lfaE8gERRVoJSM="; }; # fork with patches, upstream seems to be dead libmpq = fetchurl { - url = "https://github.com/diasurgical/libmpq/archive/0f10bd1600f406b13932bf5351ba713361262184.tar.gz"; - sha256 = "sha256-7hc/Xtsg8WJIJljLydS7hLZA9lEEHWhsCteyrxK68qE="; + url = "https://github.com/diasurgical/libmpq/archive/b78d66c6fee6a501cc9b95d8556a129c68841b05.tar.gz"; + sha256 = "sha256-NIzZwr6cBn38uKLWzW+Uet5QiOFUPB5dsf3FsS22ruo="; }; # not "real" package with pkg-config or cmake file, just collection of source files libsmackerdec = fetchurl { - url = "https://github.com/diasurgical/libsmackerdec/archive/2997ee0e41e91bb723003bc09234be553b190e38.tar.gz"; - sha256 = "sha256-QMDcIZQ94i4VPVanmSxiGkKgxWx82DP4uE+Q5I2nU+o="; + url = "https://github.com/diasurgical/libsmackerdec/archive/91e732bb6953489077430572f43fc802bf2c75b2.tar.gz"; + sha256 = "sha256-5WXjfvGuT4hG2cnCS4YbxW/c4tek7OR95EjgCqkEi4c="; }; # fork with patches, far behind upstream @@ -42,46 +42,50 @@ let owner = "diasurgical"; repo = "libzt"; fetchSubmodules = true; - rev = "37a2efb0b925df632299ef07dc78c0af5f6b4756"; - sha256 = "sha256-+o4ZTVqh4MDZES9m7mkfkMRlRDMBytDBuA0QIlnp73U="; + rev = "d6c6a069a5041a3e89594c447ced3f15d77618b8"; + sha256 = "sha256-ttRJLfaGHzhS4jd8db7BNPWROCti3ZxuRouqsL/M5ew="; }; + # breaks without this version + SDL_audiolib' = SDL_audiolib.overrideAttrs (oldAttrs: { + src = fetchFromGitHub { + owner = "realnc"; + repo = "SDL_audiolib"; + rev = "cc1bb6af8d4cf5e200259072bde1edd1c8c5137e"; + sha256 = "sha256-xP7qlwwOkqVeTlCEZLinnvmx8LbU2co5+t//cf4n190="; + }; + + buildInputs = oldAttrs.buildInputs ++ [ flac ]; + }); + # missing pkg-config and/or cmake file simpleini = fetchurl { - url = "https://github.com/brofield/simpleini/archive/9b3ed7ec815997bc8c5b9edf140d6bde653e1458.tar.gz"; - sha256 = "sha256-93kuyp8/ew7okW/6ThJMtLMZsR1YSeFcXu9Y65ELBFE=="; + url = "https://github.com/brofield/simpleini/archive/56499b5af5d2195c6acfc58c4630b70e0c9c4c21.tar.gz"; + sha256 = "sha256-29tQoz0+33kfwmIjCdnD1wGi+35+K0A9P6UE4E8K3g4="; }; in stdenv.mkDerivation rec { pname = "devilutionx"; - version = "1.4.1"; + version = "1.5.2"; src = fetchFromGitHub { owner = "diasurgical"; repo = "devilutionX"; rev = version; - sha256 = "sha256-l0BhL+DXtkG2PdFqmkL0KJv41zl3N/AcuLmzw2j3jXY="; + sha256 = "sha256-XILPpIYSC0+CbhyVXCNvAknAhqU7VW1dWZCh2BapQjs="; }; postPatch = '' - substituteInPlace Source/init.cpp --replace "/usr/share/diasurgical/devilutionx/" "${placeholder "out"}/share/diasurgical/devilutionx/" - - # download dependencies ahead of time - substituteInPlace 3rdParty/asio/CMakeLists.txt --replace "${asio.url}" "${asio}" - substituteInPlace 3rdParty/libmpq/CMakeLists.txt --replace "${libmpq.url}" "${libmpq}" - substituteInPlace 3rdParty/libsmackerdec/CMakeLists.txt --replace "${libsmackerdec.url}" "${libsmackerdec}" + substituteInPlace 3rdParty/asio/CMakeLists.txt --replace-fail "${asio.url}" "${asio}" + substituteInPlace 3rdParty/libmpq/CMakeLists.txt --replace-fail "${libmpq.url}" "${libmpq}" + substituteInPlace 3rdParty/libsmackerdec/CMakeLists.txt --replace-fail "${libsmackerdec.url}" "${libsmackerdec}" substituteInPlace 3rdParty/libzt/CMakeLists.txt \ - --replace "GIT_REPOSITORY https://github.com/diasurgical/libzt.git" "" \ - --replace "GIT_TAG ${libzt.rev}" "SOURCE_DIR ${libzt}" - substituteInPlace 3rdParty/simpleini/CMakeLists.txt --replace "${simpleini.url}" "${simpleini}" + --replace-fail "GIT_REPOSITORY https://github.com/diasurgical/libzt.git" "" \ + --replace-fail "GIT_TAG ${libzt.rev}" "SOURCE_DIR ${libzt}" + substituteInPlace 3rdParty/simpleini/CMakeLists.txt --replace-fail "${simpleini.url}" "${simpleini}" ''; - cmakeFlags = [ - "-DBINARY_RELEASE=ON" - "-DVERSION_NUM=${version}" - ]; - nativeBuildInputs = [ cmake pkg-config @@ -95,8 +99,8 @@ stdenv.mkDerivation rec { libpng libsodium SDL2 - SDL_audiolib SDL2_image + SDL_audiolib' ]; installPhase = '' @@ -107,6 +111,7 @@ stdenv.mkDerivation rec { mv devilutionx.app $out/Applications '' else '' install -Dm755 -t $out/bin devilutionx + install -Dm755 -t $out/bin devilutionx.mpq install -Dm755 -t $out/share/diasurgical/devilutionx devilutionx.mpq install -Dm755 -t $out/share/applications ../Packaging/nix/devilutionx-hellfire.desktop ../Packaging/nix/devilutionx.desktop install -Dm755 ../Packaging/resources/icon.png $out/share/icons/hicolor/512x512/apps/devilutionx.png From 82514311e7c34391afbcc20dbeddac3b68d2ea1f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 19:53:35 +0000 Subject: [PATCH 30/69] firebase-tools: 13.7.1 -> 13.7.2 --- pkgs/development/tools/firebase-tools/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/firebase-tools/default.nix b/pkgs/development/tools/firebase-tools/default.nix index 25110f322adb..ef1a6e3b2538 100644 --- a/pkgs/development/tools/firebase-tools/default.nix +++ b/pkgs/development/tools/firebase-tools/default.nix @@ -8,16 +8,16 @@ buildNpmPackage rec { pname = "firebase-tools"; - version = "13.7.1"; + version = "13.7.2"; src = fetchFromGitHub { owner = "firebase"; repo = "firebase-tools"; rev = "v${version}"; - hash = "sha256-NTO4DhRwdCeufkeec6kMw1CEj/cZqk3S+vy9R7TArXU="; + hash = "sha256-KzckVI6eSojnUh+jV1xtKZrwmYfngKk8Ch0cGdTLxMA="; }; - npmDepsHash = "sha256-MgICHHZBgD80vZLfS9WUwvotorc0OAHzGaw+S0tjyQo="; + npmDepsHash = "sha256-X7OScxmDsWnvYTP/GOKZRuq3Bu0ReDDqlIFhEWCeQmY="; postPatch = '' ln -s npm-shrinkwrap.json package-lock.json From ce1515f702558d87f9dbba96d077a6551a16da87 Mon Sep 17 00:00:00 2001 From: IogaMaster Date: Sun, 14 Apr 2024 14:28:21 -0600 Subject: [PATCH 31/69] hyprlang: 0.5.0 -> 0.5.1 Diff: https://github.com/hyprwm/hyprlang/compare/v0.5.0...v0.5.1 --- pkgs/by-name/hy/hyprlang/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/hy/hyprlang/package.nix b/pkgs/by-name/hy/hyprlang/package.nix index 9a4c26583bde..8cb98c4e79cf 100644 --- a/pkgs/by-name/hy/hyprlang/package.nix +++ b/pkgs/by-name/hy/hyprlang/package.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "hyprlang"; - version = "0.5.0"; + version = "0.5.1"; src = fetchFromGitHub { owner = "hyprwm"; repo = "hyprlang"; rev = "v${finalAttrs.version}"; - hash = "sha256-bR4o3mynoTa1Wi4ZTjbnsZ6iqVcPGriXp56bZh5UFTk="; + hash = "sha256-502X0Q0fhN6tJK7iEUA8CghONKSatW/Mqj4Wappd++0="; }; nativeBuildInputs = [ From ed854ed0e3d7da87e513672c40d2001bdf815521 Mon Sep 17 00:00:00 2001 From: Astrid Yu Date: Thu, 11 Apr 2024 00:56:18 -0700 Subject: [PATCH 32/69] nixos/networkd: add [Bridge] section to netdev conf This setting was missing from netdev. This commit additionally adds a test using the new section, ensuring that STP can be enabled. --- nixos/lib/systemd-lib.nix | 4 + nixos/lib/systemd-network-units.nix | 3 + nixos/modules/system/boot/networkd.nix | 42 ++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/systemd-networkd-bridge.nix | 103 ++++++++++++++++++++++++ 5 files changed, 153 insertions(+) create mode 100644 nixos/tests/systemd-networkd-bridge.nix diff --git a/nixos/lib/systemd-lib.nix b/nixos/lib/systemd-lib.nix index b67495609ff5..198a710f052d 100644 --- a/nixos/lib/systemd-lib.nix +++ b/nixos/lib/systemd-lib.nix @@ -148,6 +148,10 @@ in rec { optional (attr ? ${name} && !(min <= attr.${name} && max >= attr.${name})) "Systemd ${group} field `${name}' is outside the range [${toString min},${toString max}]"; + assertRangeOrOneOf = name: min: max: values: group: attr: + optional (attr ? ${name} && !((min <= attr.${name} && max >= attr.${name}) || elem attr.${name} values)) + "Systemd ${group} field `${name}' is not a value in range [${toString min},${toString max}], or one of ${toString values}"; + assertMinimum = name: min: group: attr: optional (attr ? ${name} && attr.${name} < min) "Systemd ${group} field `${name}' must be greater than or equal to ${toString min}"; diff --git a/nixos/lib/systemd-network-units.nix b/nixos/lib/systemd-network-units.nix index 986586a61a70..ae581495772a 100644 --- a/nixos/lib/systemd-network-units.nix +++ b/nixos/lib/systemd-network-units.nix @@ -25,6 +25,9 @@ in { commonMatchText def + '' [NetDev] ${attrsToSection def.netdevConfig} + '' + optionalString (def.bridgeConfig != { }) '' + [Bridge] + ${attrsToSection def.bridgeConfig} '' + optionalString (def.vlanConfig != { }) '' [VLAN] ${attrsToSection def.vlanConfig} diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 0ddb7dcb651d..bb899c8d8999 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -186,6 +186,37 @@ let (assertNetdevMacAddress "MACAddress") ]; + sectionBridge = checkUnitConfig "Bridge" [ + (assertOnlyFields [ + "HelloTimeSec" + "MaxAgeSec" + "ForwardDelaySec" + "AgeingTimeSec" + "Priority" + "GroupForwardMask" + "DefaultPVID" + "MulticastQuerier" + "MulticastSnooping" + "VLANFiltering" + "VLANProtocol" + "STP" + "MulticastIGMPVersion" + ]) + (assertInt "HelloTimeSec") + (assertInt "MaxAgeSec") + (assertInt "ForwardDelaySec") + (assertInt "AgeingTimeSec") + (assertRange "Priority" 0 65535) + (assertRange "GroupForwardMask" 0 65535) + (assertRangeOrOneOf "DefaultPVID" 0 4094 ["none"]) + (assertValueOneOf "MulticastQuerier" boolValues) + (assertValueOneOf "MulticastSnooping" boolValues) + (assertValueOneOf "VLANFiltering" boolValues) + (assertValueOneOf "VLANProtocol" ["802.1q" "802.ad"]) + (assertValueOneOf "STP" boolValues) + (assertValueOneOf "MulticastIGMPVersion" [2 3]) + ]; + sectionVLAN = checkUnitConfig "VLAN" [ (assertOnlyFields [ "Id" @@ -1635,6 +1666,17 @@ let ''; }; + bridgeConfig = mkOption { + default = {}; + example = { STP = true; }; + type = types.addCheck (types.attrsOf unitOption) check.netdev.sectionBridge; + description = '' + Each attribute in this set specifies an option in the + `[Bridge]` section of the unit. See + {manpage}`systemd.netdev(5)` for details. + ''; + }; + vlanConfig = mkOption { default = {}; example = { Id = 4; }; diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 7944952e2f4e..bd496d09a52a 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -899,6 +899,7 @@ in { systemd-lock-handler = runTestOn ["aarch64-linux" "x86_64-linux"] ./systemd-lock-handler.nix; systemd-machinectl = handleTest ./systemd-machinectl.nix {}; systemd-networkd = handleTest ./systemd-networkd.nix {}; + systemd-networkd-bridge = handleTest ./systemd-networkd-bridge.nix {}; systemd-networkd-dhcpserver = handleTest ./systemd-networkd-dhcpserver.nix {}; systemd-networkd-dhcpserver-static-leases = handleTest ./systemd-networkd-dhcpserver-static-leases.nix {}; systemd-networkd-ipv6-prefix-delegation = handleTest ./systemd-networkd-ipv6-prefix-delegation.nix {}; diff --git a/nixos/tests/systemd-networkd-bridge.nix b/nixos/tests/systemd-networkd-bridge.nix new file mode 100644 index 000000000000..f1f8823e8420 --- /dev/null +++ b/nixos/tests/systemd-networkd-bridge.nix @@ -0,0 +1,103 @@ +/* This test ensures that we can configure spanning-tree protocol + across bridges using systemd-networkd. + + Test topology: + + 1 2 3 + node1 --- sw1 --- sw2 --- node2 + \ / + 4 \ / 5 + sw3 + | + 6 | + | + node3 + + where switches 1, 2, and 3 bridge their links and use STP, + and each link is labeled with the VLAN we are assigning it in + virtualisation.vlans. +*/ +with builtins; +let + commonConf = { + systemd.services.systemd-networkd.environment.SYSTEMD_LOG_LEVEL = "debug"; + networking.useNetworkd = true; + networking.useDHCP = false; + networking.firewall.enable = false; + }; + + generateNodeConf = { octet, vlan }: + { lib, pkgs, config, ... }: { + imports = [ common/user-account.nix commonConf ]; + virtualisation.vlans = [ vlan ]; + systemd.network = { + enable = true; + networks = { + "30-eth" = { + matchConfig.Name = "eth1"; + address = [ "10.0.0.${toString octet}/24" ]; + }; + }; + }; + }; + + generateSwitchConf = vlans: + { lib, pkgs, config, ... }: { + imports = [ common/user-account.nix commonConf ]; + virtualisation.vlans = vlans; + systemd.network = { + enable = true; + netdevs = { + "40-br0" = { + netdevConfig = { + Kind = "bridge"; + Name = "br0"; + }; + bridgeConfig.STP = "yes"; + }; + }; + networks = { + "30-eth" = { + matchConfig.Name = "eth*"; + networkConfig.Bridge = "br0"; + }; + "40-br0" = { matchConfig.Name = "br0"; }; + }; + }; + }; +in import ./make-test-python.nix ({ pkgs, ... }: { + name = "networkd"; + meta = with pkgs.lib.maintainers; { maintainers = [ picnoir ]; }; + nodes = { + node1 = generateNodeConf { + octet = 1; + vlan = 1; + }; + node2 = generateNodeConf { + octet = 2; + vlan = 3; + }; + node3 = generateNodeConf { + octet = 3; + vlan = 6; + }; + sw1 = generateSwitchConf [ 1 2 4 ]; + sw2 = generateSwitchConf [ 2 3 5 ]; + sw3 = generateSwitchConf [ 4 5 6 ]; + }; + testScript = '' + network_nodes = [node1, node2, node3] + network_switches = [sw1, sw2, sw3] + start_all() + + for n in network_nodes + network_switches: + n.wait_for_unit("systemd-networkd-wait-online.service") + + node1.succeed("ping 10.0.0.2 -w 10 -c 1") + node1.succeed("ping 10.0.0.3 -w 10 -c 1") + node2.succeed("ping 10.0.0.1 -w 10 -c 1") + node2.succeed("ping 10.0.0.3 -w 10 -c 1") + node3.succeed("ping 10.0.0.1 -w 10 -c 1") + node3.succeed("ping 10.0.0.2 -w 10 -c 1") + ''; +}) From 91ca091fb8de7fcc5a482a21283ae9c7f61748e1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 22:35:01 +0000 Subject: [PATCH 33/69] python311Packages.xkbcommon: 0.8 -> 1.0 --- pkgs/development/python-modules/xkbcommon/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/xkbcommon/default.nix b/pkgs/development/python-modules/xkbcommon/default.nix index f5ac737d2744..4e1ef0ea0ef7 100644 --- a/pkgs/development/python-modules/xkbcommon/default.nix +++ b/pkgs/development/python-modules/xkbcommon/default.nix @@ -10,12 +10,12 @@ buildPythonPackage rec { pname = "xkbcommon"; - version = "0.8"; + version = "1.0"; format = "setuptools"; src = fetchPypi { inherit pname version; - hash = "sha256-W+WXO/W3UlaHpN9shHibQhWQ1/fPkq5W8qqxd7eV1RY="; + hash = "sha256-NTEafcAU/PU1/2n3pb3m8dbZptI9j9nnmVG4iFqHHe8="; }; nativeBuildInputs = [ pkg-config ]; From 050c43b4fcb3556a754275edbe8b5638d1fdacdc Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Mon, 15 Apr 2024 07:28:25 +0800 Subject: [PATCH 34/69] pantheon.elementary-photos: Build without webkit2gtk-4.0 By fully removing publishing plugins (we are not enabling plugins before already). https://fedoraproject.org/wiki/Changes/Remove_webkit2gtk-4.0_API_Version --- .../apps/elementary-photos/default.nix | 43 +++++++++++++------ 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/pkgs/desktops/pantheon/apps/elementary-photos/default.nix b/pkgs/desktops/pantheon/apps/elementary-photos/default.nix index 8a1017cfaeb1..5170940c9138 100644 --- a/pkgs/desktops/pantheon/apps/elementary-photos/default.nix +++ b/pkgs/desktops/pantheon/apps/elementary-photos/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , nix-update-script , meson , ninja @@ -11,19 +12,15 @@ , libexif , libgee , libhandy -, geocode-glib +, geocode-glib_2 , gexiv2 , libgphoto2 , granite , gst_all_1 , libgudev -, json-glib , libraw -, librest -, libsoup , sqlite , python3 -, webkitgtk , libwebp , appstream , wrapGAppsHook @@ -40,6 +37,32 @@ stdenv.mkDerivation rec { sha256 = "sha256-VhJggQMy1vk21zNA5pR4uAPGCwnIxLUHVO58AZs+h6s="; }; + patches = [ + # The following 5 patches allow building this without webkit2gtk-4.0. + # https://github.com/elementary/photos/pull/743, https://github.com/elementary/photos/pull/746 + (fetchpatch { + url = "https://github.com/elementary/photos/commit/c48f49869bbf44aa37e64c0c1e25aff887783a02.patch"; + hash = "sha256-CeKRONVevJqVEIchgxyPqnM16Y2zUJ1+wnL2jLdJqec="; + }) + (fetchpatch { + url = "https://github.com/elementary/photos/commit/d7a8265ecb562e439d003b61b0823de8348fb10d.patch"; + hash = "sha256-6M3t0l8BUhoaowUSfaiz6xjQBHliO13i+qi5cgfEY04="; + }) + (fetchpatch { + url = "https://github.com/elementary/photos/commit/d8e13e8e803ed7ab1bd23527866567d998744f57.patch"; + hash = "sha256-BGBDIHR5iYtd+rJG9sur1oWa4FK/lF0vLdjyPbyNbdU="; + }) + (fetchpatch { + url = "https://github.com/elementary/photos/commit/075f983a65e9c6d4e80ee07f0c05309badef526a.patch"; + excludes = [ ".github/workflows/ci.yml" ]; + hash = "sha256-QOtssVwwHxFdtfhcVyaN33LMZdOkg/DoAC+UAbrkmDk="; + }) + (fetchpatch { + url = "https://github.com/elementary/photos/commit/ea11cf23db6945df6cc3495fd698456054389371.patch"; + hash = "sha256-4a/CRx7Dmyyda6SUr0QF++R73v7FBzjXfyxvspynnG0="; + }) + ]; + nativeBuildInputs = [ appstream desktop-file-utils @@ -52,22 +75,18 @@ stdenv.mkDerivation rec { ]; buildInputs = [ - geocode-glib + geocode-glib_2 gexiv2 granite gtk3 - json-glib libexif libgee libgphoto2 libgudev libhandy libraw - librest - libsoup libwebp sqlite - webkitgtk ] ++ (with gst_all_1; [ gst-plugins-bad gst-plugins-base @@ -76,10 +95,6 @@ stdenv.mkDerivation rec { gstreamer ]); - mesonFlags = [ - "-Dplugins=false" - ]; - postPatch = '' chmod +x meson/post_install.py patchShebangs meson/post_install.py From 2f63a7e9fe14316f6aeec1380a2ecb00935769d1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 23:46:26 +0000 Subject: [PATCH 35/69] python311Packages.oracledb: 2.1.1 -> 2.1.2 --- pkgs/development/python-modules/oracledb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/oracledb/default.nix b/pkgs/development/python-modules/oracledb/default.nix index da45e616b42c..6bba7f7191ea 100644 --- a/pkgs/development/python-modules/oracledb/default.nix +++ b/pkgs/development/python-modules/oracledb/default.nix @@ -10,14 +10,14 @@ buildPythonPackage rec { pname = "oracledb"; - version = "2.1.1"; + version = "2.1.2"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-4ugXz6bf82xxMXNvNOKq7HXXJv040ZENgxgGGieCKPo="; + hash = "sha256-MFS8wpXXN4g0unpazrhlmF6VSRX5sHqEPqhMOCTGoLI="; }; build-system = [ From e8c2fa5ebca8f6eacc777f7cccaddb3f16ba9ea1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 01:11:04 +0000 Subject: [PATCH 36/69] hishtory: 0.288 -> 0.290 --- pkgs/shells/hishtory/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/shells/hishtory/default.nix b/pkgs/shells/hishtory/default.nix index 3583be32cae0..051fed0074cc 100644 --- a/pkgs/shells/hishtory/default.nix +++ b/pkgs/shells/hishtory/default.nix @@ -5,13 +5,13 @@ buildGoModule rec { pname = "hishtory"; - version = "0.288"; + version = "0.290"; src = fetchFromGitHub { owner = "ddworken"; repo = pname; rev = "v${version}"; - hash = "sha256-fUhyD8PrjeSDwXHF/QCA+4RW4ndRIAx3dNR9lv0PDZY="; + hash = "sha256-zFBq1BHj0w+ubKAnyL+Asd5vykM2Vpg2va0jxY2vwUk="; }; vendorHash = "sha256-qw4whXAX8y0x7IWnpZHT45XTQ82CdoWPDnoQhr20cII="; From 20c7020faa93262a90ab6888fd4f58834256dc79 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sun, 14 Apr 2024 21:37:36 -0400 Subject: [PATCH 37/69] v2ray-domain-list-community: 20240402003241 -> 20240410101316 Diff: https://github.com/v2fly/domain-list-community/compare/20240402003241...20240410101316 --- pkgs/data/misc/v2ray-domain-list-community/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/misc/v2ray-domain-list-community/default.nix b/pkgs/data/misc/v2ray-domain-list-community/default.nix index e6fa21d5f931..fb73738345a3 100644 --- a/pkgs/data/misc/v2ray-domain-list-community/default.nix +++ b/pkgs/data/misc/v2ray-domain-list-community/default.nix @@ -3,12 +3,12 @@ let generator = pkgsBuildBuild.buildGoModule rec { pname = "v2ray-domain-list-community"; - version = "20240402003241"; + version = "20240410101316"; src = fetchFromGitHub { owner = "v2fly"; repo = "domain-list-community"; rev = version; - hash = "sha256-tIQqTvrQUGjLeZL1aQiqaViZSAysUfX+QlTkhH7N3Iw="; + hash = "sha256-llj1z9fIzELeIIhyW6dmAl8Z/0DtZq3tkMrfwSJkZbE="; }; vendorHash = "sha256-azvMUi8eLNoNofRa2X4SKTTiMd6aOyO6H/rOiKjkpIY="; meta = with lib; { From 8ac83357e35ef73dde81d25b1a8d8167019fbd3e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 02:13:36 +0000 Subject: [PATCH 38/69] python312Packages.diff-cover: 8.0.3 -> 9.0.0 --- pkgs/development/python-modules/diff-cover/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/diff-cover/default.nix b/pkgs/development/python-modules/diff-cover/default.nix index b198097ebdb0..9ca63fd2b533 100644 --- a/pkgs/development/python-modules/diff-cover/default.nix +++ b/pkgs/development/python-modules/diff-cover/default.nix @@ -19,7 +19,7 @@ buildPythonPackage rec { pname = "diff-cover"; - version = "8.0.3"; + version = "9.0.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -27,7 +27,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "diff_cover"; inherit version; - hash = "sha256-OTVlyoZorh4OOOThMrUc8CgIb7Bqen2Ued61Aj4vaNQ="; + hash = "sha256-HchR0/PzIMBI0DYY5MDZhh+koVBrQl0tCaVksgyVZ0o="; }; nativeBuildInputs = [ From 5cf920b2d920e7d31b52b0085ee4b6cf568ad5a4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 02:35:03 +0000 Subject: [PATCH 39/69] shopware-cli: 0.4.34 -> 0.4.35 --- pkgs/by-name/sh/shopware-cli/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/sh/shopware-cli/package.nix b/pkgs/by-name/sh/shopware-cli/package.nix index 7c527dbefeb7..e49ce5136af1 100644 --- a/pkgs/by-name/sh/shopware-cli/package.nix +++ b/pkgs/by-name/sh/shopware-cli/package.nix @@ -9,18 +9,18 @@ buildGoModule rec { pname = "shopware-cli"; - version = "0.4.34"; + version = "0.4.35"; src = fetchFromGitHub { repo = "shopware-cli"; owner = "FriendsOfShopware"; rev = version; - hash = "sha256-hPEaTfOxijyf0pzgMBKmljB41A0G2aena50pBZerV0s="; + hash = "sha256-RJKne2Nq8mrVBgiOkXoM1HKIJ/BU0MQckbequ/0THGk="; }; nativeBuildInputs = [ installShellFiles makeWrapper ]; nativeCheckInputs = [ git dart-sass ]; - vendorHash = "sha256-BODiybzXw4gJk99SzzDVvYsV555rW5ehhn+m/pre/pA="; + vendorHash = "sha256-jQCTdvJVe99sL8C9AkJZDsQV9tUoAXY18ar3+FNXEdM="; postInstall = '' export HOME="$(mktemp -d)" From 0ae16ce46df6bf4a678cc6e84af8ab992812a253 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 03:33:30 +0000 Subject: [PATCH 40/69] prometheus-pve-exporter: 3.2.2 -> 3.2.4 --- pkgs/servers/monitoring/prometheus/pve-exporter.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/prometheus/pve-exporter.nix b/pkgs/servers/monitoring/prometheus/pve-exporter.nix index 72009591e899..a9d287a41a7e 100644 --- a/pkgs/servers/monitoring/prometheus/pve-exporter.nix +++ b/pkgs/servers/monitoring/prometheus/pve-exporter.nix @@ -6,11 +6,11 @@ python3.pkgs.buildPythonApplication rec { pname = "prometheus-pve-exporter"; - version = "3.2.2"; + version = "3.2.4"; src = fetchPypi { inherit pname version; - sha256 = "sha256-E1hxYslVaMpoeCsTrw/7D0Ycq+GzMpJ0e6B4mEe/UJs="; + sha256 = "sha256-C7agnOUdtd4YncAiaPQaZqBJ8DKZoM1Fa+dr1F4xYgI="; }; propagatedBuildInputs = with python3.pkgs; [ From 8f4266af56e3b1f361c71a1367904c4c8049f283 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 15 Apr 2024 04:20:00 +0000 Subject: [PATCH 41/69] luau: 0.620 -> 0.621 Diff: https://github.com/luau-lang/luau/compare/0.620...0.621 Changelog: https://github.com/luau-lang/luau/releases/tag/0.621 --- pkgs/development/interpreters/luau/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/luau/default.nix b/pkgs/development/interpreters/luau/default.nix index 28e34f885608..4d17e1f73561 100644 --- a/pkgs/development/interpreters/luau/default.nix +++ b/pkgs/development/interpreters/luau/default.nix @@ -1,14 +1,14 @@ -{ lib, stdenv, fetchFromGitHub, cmake, llvmPackages }: +{ lib, stdenv, fetchFromGitHub, cmake, gitUpdater, llvmPackages }: stdenv.mkDerivation rec { pname = "luau"; - version = "0.620"; + version = "0.621"; src = fetchFromGitHub { owner = "luau-lang"; repo = "luau"; rev = version; - hash = "sha256-J1tVZ3HDcH+DiVsHDWl8A6X/4Fi4s0Fxkb0KzSYP1Pk="; + hash = "sha256-bkuYYGYcnMwQDK81ZH+74hA4XaQfVFMWvAKpy+ODCak="; }; nativeBuildInputs = [ cmake ]; @@ -36,6 +36,8 @@ stdenv.mkDerivation rec { runHook postCheck ''; + passthru.updateScript = gitUpdater { }; + meta = with lib; { description = "A fast, small, safe, gradually typed embeddable scripting language derived from Lua"; homepage = "https://luau-lang.org/"; From 6c627445817f092f4ebc1611b619c231510d7c0e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Apr 2024 08:21:32 +0200 Subject: [PATCH 42/69] python312Packages.soco: refactor --- pkgs/development/python-modules/soco/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/soco/default.nix b/pkgs/development/python-modules/soco/default.nix index 41774ec79ee1..a61782fea39a 100644 --- a/pkgs/development/python-modules/soco/default.nix +++ b/pkgs/development/python-modules/soco/default.nix @@ -1,23 +1,24 @@ { lib +, appdirs , buildPythonPackage , fetchFromGitHub , graphviz -, appdirs , ifaddr -, pythonOlder , lxml , mock , nix-update-script , pytestCheckHook +, pythonOlder , requests , requests-mock +, setuptools , xmltodict }: buildPythonPackage rec { pname = "soco"; version = "0.30.2"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.6"; @@ -28,7 +29,11 @@ buildPythonPackage rec { hash = "sha256-T5kZxwLtqdECuYNfI0z2kLuTPp8yuPsx+MQG27WUJYU="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ appdirs ifaddr lxml From a589919cb3949c24a0fc2c3c84d251a4d9098971 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Apr 2024 08:23:26 +0200 Subject: [PATCH 43/69] python312Packages.soco: 0.30.2 -> 0.30.3 Diff: https://github.com/SoCo/SoCo/compare/refs/tags/v0.30.2...v0.30.3 Changelog: https://github.com/SoCo/SoCo/releases/tag/v0.30.3 --- pkgs/development/python-modules/soco/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/soco/default.nix b/pkgs/development/python-modules/soco/default.nix index a61782fea39a..8d5cec693235 100644 --- a/pkgs/development/python-modules/soco/default.nix +++ b/pkgs/development/python-modules/soco/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "soco"; - version = "0.30.2"; + version = "0.30.3"; pyproject = true; disabled = pythonOlder "3.6"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "SoCo"; repo = "SoCo"; rev = "refs/tags/v${version}"; - hash = "sha256-T5kZxwLtqdECuYNfI0z2kLuTPp8yuPsx+MQG27WUJYU="; + hash = "sha256-QAF3f1JMGFFsgdZzoyo+RwKKMaLG+hy+lvZwCzceU/g="; }; build-system = [ From 4a4d98d961953fbb9b7d6313833e1cc69fb3b612 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Apr 2024 08:23:40 +0200 Subject: [PATCH 44/69] python312Packages.soco: format with nixfmt --- .../python-modules/soco/default.nix | 39 +++++++++---------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/soco/default.nix b/pkgs/development/python-modules/soco/default.nix index 8d5cec693235..347273e453e6 100644 --- a/pkgs/development/python-modules/soco/default.nix +++ b/pkgs/development/python-modules/soco/default.nix @@ -1,18 +1,19 @@ -{ lib -, appdirs -, buildPythonPackage -, fetchFromGitHub -, graphviz -, ifaddr -, lxml -, mock -, nix-update-script -, pytestCheckHook -, pythonOlder -, requests -, requests-mock -, setuptools -, xmltodict +{ + lib, + appdirs, + buildPythonPackage, + fetchFromGitHub, + graphviz, + ifaddr, + lxml, + mock, + nix-update-script, + pytestCheckHook, + pythonOlder, + requests, + requests-mock, + setuptools, + xmltodict, }: buildPythonPackage rec { @@ -29,9 +30,7 @@ buildPythonPackage rec { hash = "sha256-QAF3f1JMGFFsgdZzoyo+RwKKMaLG+hy+lvZwCzceU/g="; }; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ appdirs @@ -48,9 +47,7 @@ buildPythonPackage rec { requests-mock ]; - pythonImportsCheck = [ - "soco" - ]; + pythonImportsCheck = [ "soco" ]; passthru.updateScript = nix-update-script { }; From ab04c48766c67b36a10512b1e08514ec59f6ac41 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 15 Apr 2024 08:30:22 +0200 Subject: [PATCH 45/69] python312Packages.tencentcloud-sdk-python: 3.0.1128 -> 3.0.1129 Diff: https://github.com/TencentCloud/tencentcloud-sdk-python/compare/refs/tags/3.0.1128...3.0.1129 Changelog: https://github.com/TencentCloud/tencentcloud-sdk-python/blob/3.0.1129/CHANGELOG.md --- .../python-modules/tencentcloud-sdk-python/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix b/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix index e90cae8f248a..c36b607fb82b 100644 --- a/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix +++ b/pkgs/development/python-modules/tencentcloud-sdk-python/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "tencentcloud-sdk-python"; - version = "3.0.1128"; + version = "3.0.1129"; pyproject = true; disabled = pythonOlder "3.9"; @@ -19,7 +19,7 @@ buildPythonPackage rec { owner = "TencentCloud"; repo = "tencentcloud-sdk-python"; rev = "refs/tags/${version}"; - hash = "sha256-SYR9vkeaVBPwke7FzjcDGSvsZE0vznNf/7zCKizaW+4="; + hash = "sha256-YYLlnj7qfF4iKJSnaq6EAtvjJKm1yWop6HT5vY/zTkc="; }; build-system = [ setuptools ]; From 44d081fc6f51522638d1804752cbac3b60026378 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 15 Apr 2024 12:37:26 +0300 Subject: [PATCH 46/69] python311Packages.scipy: fix darwin build --- .../python-modules/scipy/default.nix | 5 ++++ .../scipy/pocketfft-aligned_alloc.patch | 30 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/scipy/pocketfft-aligned_alloc.patch diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index b4be27dcd531..bed0449d587b 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -76,6 +76,11 @@ in buildPythonPackage { "doc/source/dev/contributor/meson_advanced.rst" ]; }) + # Fix for https://github.com/scipy/scipy/issues/20300 until 1.13.1, based + # on: https://github.com/scipy/scipy/issues/20300 linked from there, + # couldn't use fetchpatch because it is a submodule of scipy, and + # extraPrefix doesn't fit this purpose. + ./pocketfft-aligned_alloc.patch ]; # Upstream says in a comment in their pyproject.toml that building against diff --git a/pkgs/development/python-modules/scipy/pocketfft-aligned_alloc.patch b/pkgs/development/python-modules/scipy/pocketfft-aligned_alloc.patch new file mode 100644 index 000000000000..80b047c7061c --- /dev/null +++ b/pkgs/development/python-modules/scipy/pocketfft-aligned_alloc.patch @@ -0,0 +1,30 @@ +From fbe3c10d117de98d80a86a10f76d4cd74efc55a8 Mon Sep 17 00:00:00 2001 +From: Martin Reinecke +Date: Fri, 22 Mar 2024 10:53:05 +0100 +Subject: [PATCH] unconditionaly disable use of aligned_alloc + +--- + pocketfft_hdronly.h | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/scipy/_lib/pocketfft/pocketfft_hdronly.h b/scipy/_lib/pocketfft/pocketfft_hdronly.h +index 6c98f2d..66eea06 100644 +--- a/scipy/_lib/pocketfft/pocketfft_hdronly.h ++++ b/scipy/_lib/pocketfft/pocketfft_hdronly.h +@@ -152,11 +152,11 @@ template<> struct VLEN { static constexpr size_t val=2; }; + #endif + #endif + +-// the __MINGW32__ part in the conditional below works around the problem that +-// the standard C++ library on Windows does not provide aligned_alloc() even +-// though the MinGW compiler and MSVC may advertise C++17 compliance. +-// aligned_alloc is only supported from MacOS 10.15. +-#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15) ++// std::aligned_alloc is a bit cursed ... it doesn't exist on MacOS < 10.15 ++// and in musl, and other OSes seem to have even more peculiarities. ++// Let's unconditionally work around it for now. ++# if 0 ++//#if (__cplusplus >= 201703L) && (!defined(__MINGW32__)) && (!defined(_MSC_VER)) && (__MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_15) + inline void *aligned_alloc(size_t align, size_t size) + { + // aligned_alloc() requires that the requested size is a multiple of "align" From 57695af495e85a1ac6ef8d4f4d1f7c6aeb9802a0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 09:58:01 +0000 Subject: [PATCH 47/69] deck: 1.36.2 -> 1.37.0 --- pkgs/applications/networking/deck/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/deck/default.nix b/pkgs/applications/networking/deck/default.nix index 9c0187d0609b..9094459fe744 100644 --- a/pkgs/applications/networking/deck/default.nix +++ b/pkgs/applications/networking/deck/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "deck"; - version = "1.36.2"; + version = "1.37.0"; src = fetchFromGitHub { owner = "Kong"; repo = "deck"; rev = "v${version}"; - hash = "sha256-8iRWV+zm/qiSJUgx8OnCf0sZqycXnAv4dUtbTIzIT5k="; + hash = "sha256-gbbNeG0WzXiPE20XPtg4x57kvcNuHsxN57aLK+OUpv8="; }; nativeBuildInputs = [ installShellFiles ]; From a227e07e6d4681a2bddcc65a55dc89bc9e3d4162 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 10:37:28 +0000 Subject: [PATCH 48/69] poethepoet: 0.25.0 -> 0.25.1 --- pkgs/by-name/po/poethepoet/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/po/poethepoet/package.nix b/pkgs/by-name/po/poethepoet/package.nix index 063e56d85bdb..b186b8866e1f 100644 --- a/pkgs/by-name/po/poethepoet/package.nix +++ b/pkgs/by-name/po/poethepoet/package.nix @@ -5,14 +5,14 @@ python3.pkgs.buildPythonApplication rec { pname = "poethepoet"; - version = "0.25.0"; + version = "0.25.1"; pyproject = true; src = fetchFromGitHub { owner = "nat-n"; repo = "poethepoet"; rev = "refs/tags/v${version}"; - hash = "sha256-7EHSTkmHIR13FgncmXpjZNrJFomJW6LTVw+BAbnrfRM="; + hash = "sha256-x57/7Qw2cLSmB01uiIAIu0dBhFqol+ewO1fRs45U0qE="; }; nativeBuildInputs = [ From e2ae18a7f34910631c5465337862801ea35d53de Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 11:34:55 +0000 Subject: [PATCH 49/69] walker: 0.0.68 -> 0.0.70 --- pkgs/by-name/wa/walker/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/wa/walker/package.nix b/pkgs/by-name/wa/walker/package.nix index 9bc5ef79236d..3bf6aca4f288 100644 --- a/pkgs/by-name/wa/walker/package.nix +++ b/pkgs/by-name/wa/walker/package.nix @@ -11,13 +11,13 @@ buildGoModule rec { pname = "walker"; - version = "0.0.68"; + version = "0.0.70"; src = fetchFromGitHub { owner = "abenz1267"; repo = "walker"; rev = "v${version}"; - hash = "sha256-nLCFGrauMKm9NzOlzrprA8KL9CKs3nTjerEaC5992qQ="; + hash = "sha256-stwM8L9aX7HAghjtGf/807+YCORg9BqibI4iINcqjH8="; }; vendorHash = "sha256-zDntJ695k8dbwyFXbg9PapWD335MHrWbep1xxzXNIL4="; From 6a8ead5e3e3d8d60edc6160eb7d74c30f9a2edbd Mon Sep 17 00:00:00 2001 From: Niko Strijbol Date: Mon, 15 Apr 2024 14:00:45 +0200 Subject: [PATCH 50/69] kdepim-runtime: use XOAUTH2 SASL plugin from libkgapi Applies the changes from #177410 and #190502 to Plasma 6. --- pkgs/kde/gear/kdepim-runtime/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/kde/gear/kdepim-runtime/default.nix b/pkgs/kde/gear/kdepim-runtime/default.nix index 75c0d927ce80..bbbe74e07fdb 100644 --- a/pkgs/kde/gear/kdepim-runtime/default.nix +++ b/pkgs/kde/gear/kdepim-runtime/default.nix @@ -5,6 +5,8 @@ qtspeech, qtwebengine, cyrus_sasl, + lib, + libkgapi }: mkKdeDerivation { pname = "kdepim-runtime"; @@ -12,4 +14,8 @@ mkKdeDerivation { extraNativeBuildInputs = [shared-mime-info]; # FIXME: libkolabxml, libetebase extraBuildInputs = [qtnetworkauth qtspeech qtwebengine cyrus_sasl]; + + qtWrapperArgs = [ + "--prefix SASL_PATH : ${lib.makeSearchPath "lib/sasl2" [ cyrus_sasl.out libkgapi ]}" + ]; } From d05c932ab21541c2bbe91a04e1d70ce8d439f18a Mon Sep 17 00:00:00 2001 From: AimPizza Date: Mon, 8 Apr 2024 18:55:47 +0200 Subject: [PATCH 51/69] maintainers: add aimpizza --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c881ea483e57..370de8f3a5fa 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -649,6 +649,12 @@ fingerprint = "B0D7 2955 235F 6AB5 ACFA 1619 8C7F F5BB 1ADE F191"; }]; }; + aimpizza = { + email = "rickomo.us@gmail.com"; + name = "Rick Omonsky"; + github = "AimPizza"; + githubId = 64905268; + }; aiotter = { email = "git@aiotter.com"; github = "aiotter"; From 5dccc92115d4d7e3ef69a83f5aa96dd404580b99 Mon Sep 17 00:00:00 2001 From: AimPizza Date: Mon, 8 Apr 2024 09:58:24 +0200 Subject: [PATCH 52/69] smassh: init at 3.1.3 --- pkgs/by-name/sm/smassh/package.nix | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 pkgs/by-name/sm/smassh/package.nix diff --git a/pkgs/by-name/sm/smassh/package.nix b/pkgs/by-name/sm/smassh/package.nix new file mode 100644 index 000000000000..7ad746341373 --- /dev/null +++ b/pkgs/by-name/sm/smassh/package.nix @@ -0,0 +1,52 @@ +{ lib +, fetchFromGitHub +, smassh +, python3 +, testers +}: + +python3.pkgs.buildPythonApplication rec { + pname = "smassh"; + version = "3.1.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "kraanzu"; + repo = "smassh"; + rev = "v${version}"; + hash = "sha256-QE7TFf/5hdd2W2EsVbn3gV/FundhJNxHqv0JWV5dYDc="; + }; + + nativeBuildInputs = with python3.pkgs; [ + poetry-core + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "textual" + ]; + + propagatedBuildInputs = with python3.pkgs; [ + textual + appdirs + click + requests + ]; + + # No tests available + doCheck = false; + + passthru.tests.version = testers.testVersion { + package = smassh; + command = "HOME=$(mktemp -d) smassh --version"; + }; + + meta = with lib; { + description = "A TUI based typing test application inspired by MonkeyType"; + homepage = "https://github.com/kraanzu/smassh"; + changelog = "https://github.com/kraanzu/smassh/blob/main/CHANGELOG.md"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ aimpizza ]; + mainProgram = "smassh"; + }; +} From 3a48b904830e8015863d604ea63debc00651f590 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 15 Apr 2024 14:03:41 +0200 Subject: [PATCH 53/69] libproxy: proper solution for include-path issues Also move the postPatch code to a better place. --- .../libraries/libproxy/default.nix | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/libproxy/default.nix b/pkgs/development/libraries/libproxy/default.nix index 6aefc31f8223..340cfafee327 100644 --- a/pkgs/development/libraries/libproxy/default.nix +++ b/pkgs/development/libraries/libproxy/default.nix @@ -55,6 +55,19 @@ stdenv.mkDerivation (finalAttrs: { }) ]; + postPatch = '' + # Fix running script that will try to install git hooks. + # Though it will not do anything since we do not keep .git/ directory. + # https://github.com/libproxy/libproxy/issues/262 + chmod +x data/install-git-hook.sh + patchShebangs data/install-git-hook.sh + + # Fix include-path propagation in non-static builds. + # https://github.com/libproxy/libproxy/pull/239#issuecomment-2056620246 + substituteInPlace src/libproxy/meson.build \ + --replace-fail "requires_private: 'gobject-2.0'" "requires: 'gobject-2.0'" + ''; + nativeBuildInputs = [ gi-docgen gobject-introspection @@ -80,14 +93,6 @@ stdenv.mkDerivation (finalAttrs: { doCheck = !stdenv.hostPlatform.isDarwin; - postPatch = '' - # Fix running script that will try to install git hooks. - # Though it will not do anything since we do not keep .git/ directory. - # https://github.com/libproxy/libproxy/issues/262 - chmod +x data/install-git-hook.sh - patchShebangs data/install-git-hook.sh - ''; - postFixup = '' # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. moveToOutput "share/doc" "$devdoc" From 2870e78461f09415a09e3e713e3def35d866cd74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 15 Apr 2024 13:44:14 +0200 Subject: [PATCH 54/69] Revert "qt6.qtbase: fixup build by adding #include paths" This reverts commit c5910ff40d9344aca2923d7b47407cfceb695827. It's not needed after the parent commit. --- pkgs/development/libraries/qt-6/modules/qtbase.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/development/libraries/qt-6/modules/qtbase.nix b/pkgs/development/libraries/qt-6/modules/qtbase.nix index 87a4a013e917..a14028e1259a 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase.nix @@ -250,10 +250,7 @@ stdenv.mkDerivation rec { "-framework GSS" ]); - env.NIX_CFLAGS_COMPILE = "-DNIXPKGS_QT_PLUGIN_PREFIX=\"${qtPluginPrefix}\"" - # These flags are in glib-2.0.pc but somehow don't get applied automatically. - + lib.optionalString (!stdenv.hostPlatform.isMinGW) - " -I${glib.dev}/include/glib-2.0 -I${glib.out}/lib/glib-2.0/include"; + env.NIX_CFLAGS_COMPILE = "-DNIXPKGS_QT_PLUGIN_PREFIX=\"${qtPluginPrefix}\""; outputs = [ "out" "dev" ]; From 674f2a0dd66e63c99b3ec50244d01d23990e7775 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 12:29:06 +0000 Subject: [PATCH 55/69] cargo-expand: 1.0.82 -> 1.0.84 --- pkgs/by-name/ca/cargo-expand/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ca/cargo-expand/package.nix b/pkgs/by-name/ca/cargo-expand/package.nix index 88d596433009..922fe9d93942 100644 --- a/pkgs/by-name/ca/cargo-expand/package.nix +++ b/pkgs/by-name/ca/cargo-expand/package.nix @@ -5,16 +5,16 @@ rustPlatform.buildRustPackage rec { pname = "cargo-expand"; - version = "1.0.82"; + version = "1.0.84"; src = fetchFromGitHub { owner = "dtolnay"; repo = pname; rev = version; - hash = "sha256-3NukL5DyyBMR1yiSP7SWhREP/vFl+Zd2gsGxC//7edI="; + hash = "sha256-b98OVx7vkA3sgxp8yPzdV7jAjsTqqTeffibCtK3hoMM="; }; - cargoHash = "sha256-niKg9IxNranrm52bXbp231cx/47kY+fd2ycdkudAWVo="; + cargoHash = "sha256-BH01DgwOdP9f0KFIbbF8RRhl/oivBET2ujxdzZ56lC0="; meta = with lib; { description = "Cargo subcommand to show result of macro expansion"; From e72f5dc40e319b150098b6dc29017790c6f32ab0 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Mon, 15 Apr 2024 22:37:51 +1000 Subject: [PATCH 56/69] kitty: 0.33.1 -> 0.34.0 --- pkgs/applications/terminal-emulators/kitty/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/terminal-emulators/kitty/default.nix b/pkgs/applications/terminal-emulators/kitty/default.nix index 790627e41db4..fa08dd15fe6d 100644 --- a/pkgs/applications/terminal-emulators/kitty/default.nix +++ b/pkgs/applications/terminal-emulators/kitty/default.nix @@ -31,20 +31,20 @@ with python3Packages; buildPythonApplication rec { pname = "kitty"; - version = "0.33.1"; + version = "0.34.0"; format = "other"; src = fetchFromGitHub { owner = "kovidgoyal"; repo = "kitty"; rev = "refs/tags/v${version}"; - hash = "sha256-E6gFGgySXs2oCS4Ipevbr9aPWzF4tb4Arl4w+4lQ+wg="; + hash = "sha256-IP1CWMHiWnBSbt+78EQ6hfX2A9FDhlwt0KLthXtO4dA="; }; goModules = (buildGo122Module { pname = "kitty-go-modules"; inherit src version; - vendorHash = "sha256-ypSZHJpk9wTXLH9sbmaSQB28iOIpv2nDPlgweM0Ldhs="; + vendorHash = "sha256-HNE0MWjL0PH20Glzb0GV6+lQu/Lslx8k/+YvlLHbHww="; }).goModules; buildInputs = [ From b8f2234647239ad7bdbb05e4dc7629b4ba8a93a2 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Mon, 15 Apr 2024 15:47:13 +0300 Subject: [PATCH 57/69] python311Packages.scipy: fix pocketfft patch comment --- pkgs/development/python-modules/scipy/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/scipy/default.nix b/pkgs/development/python-modules/scipy/default.nix index bed0449d587b..609c595eeb24 100644 --- a/pkgs/development/python-modules/scipy/default.nix +++ b/pkgs/development/python-modules/scipy/default.nix @@ -76,9 +76,10 @@ in buildPythonPackage { "doc/source/dev/contributor/meson_advanced.rst" ]; }) - # Fix for https://github.com/scipy/scipy/issues/20300 until 1.13.1, based - # on: https://github.com/scipy/scipy/issues/20300 linked from there, - # couldn't use fetchpatch because it is a submodule of scipy, and + # Fix for https://github.com/scipy/scipy/issues/20300 until 1.13.1 is + # released. Patch is based upon: + # https://github.com/scipy/pocketfft/commit/9367142748fcc9696a1c9e5a99b76ed9897c9daa + # Couldn't use fetchpatch because it is a submodule of scipy, and # extraPrefix doesn't fit this purpose. ./pocketfft-aligned_alloc.patch ]; From 14066b7892bce539b6dce43dad5f320d4d81ab54 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 13:03:46 +0000 Subject: [PATCH 58/69] gqlgenc: 0.19.3 -> 0.20.0 --- pkgs/development/tools/gqlgenc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/gqlgenc/default.nix b/pkgs/development/tools/gqlgenc/default.nix index fff705c4051a..6b3b8b940ef6 100644 --- a/pkgs/development/tools/gqlgenc/default.nix +++ b/pkgs/development/tools/gqlgenc/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "gqlgenc"; - version = "0.19.3"; + version = "0.20.0"; src = fetchFromGitHub { owner = "yamashou"; repo = "gqlgenc"; rev = "v${version}"; - sha256 = "sha256-deaJFw1w5TiJIdbTlgEBhpAyDbkjUzqT3vVl+xDUXm4="; + sha256 = "sha256-RniriePoHo608PlT3XrxogWI2oXq0Q48+Jaxz/2xIVo="; }; excludedPackages = [ "example" ]; From 51af928dececa60ead6a811e1899e4974b90e8b7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 14 Apr 2024 15:09:29 +0000 Subject: [PATCH 59/69] ft2-clone: 1.80 -> 1.82 --- pkgs/applications/audio/ft2-clone/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/ft2-clone/default.nix b/pkgs/applications/audio/ft2-clone/default.nix index 5541950650f7..1f05808536e1 100644 --- a/pkgs/applications/audio/ft2-clone/default.nix +++ b/pkgs/applications/audio/ft2-clone/default.nix @@ -13,13 +13,13 @@ stdenv.mkDerivation rec { pname = "ft2-clone"; - version = "1.80"; + version = "1.82"; src = fetchFromGitHub { owner = "8bitbubsy"; repo = "ft2-clone"; rev = "v${version}"; - hash = "sha256-Zm/HJasZ6iF1wWOzpViQVutFBjv/qbeWkUJOGAbbEYw="; + hash = "sha256-qEwPKrgmWYMIwIdgKozG9kghCYp4aoYTX28GqKbuDu4="; }; nativeBuildInputs = [ cmake ]; From 1d84c76f5c4f1cb710a250faca3ecc80a1edb9d1 Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Mon, 11 Mar 2024 09:05:40 +0100 Subject: [PATCH 60/69] nixos/nh: init --- .../manual/release-notes/rl-2405.section.md | 2 + nixos/modules/module-list.nix | 1 + nixos/modules/programs/nh.nix | 96 +++++++++++++++++++ 3 files changed, 99 insertions(+) create mode 100644 nixos/modules/programs/nh.nix diff --git a/nixos/doc/manual/release-notes/rl-2405.section.md b/nixos/doc/manual/release-notes/rl-2405.section.md index 065b0101691f..34c1dbaa902e 100644 --- a/nixos/doc/manual/release-notes/rl-2405.section.md +++ b/nixos/doc/manual/release-notes/rl-2405.section.md @@ -147,6 +147,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m - binfmt option for AppImage-run to support running [AppImage](https://appimage.org/)'s seamlessly on NixOS.. Available as [programs.appimage.binfmt](#opt-programs.appimage.binfmt). +- [nh](https://github.com/viperML/nh), yet another Nix CLI helper. Available as [programs.nh](#opt-programs.nh.enable). + - [ALVR](https://github.com/alvr-org/alvr), a VR desktop streamer. Available as [programs.alvr](#opt-programs.alvr.enable) - [RustDesk](https://rustdesk.com), a full-featured open source remote control alternative for self-hosting and security with minimal configuration. Alternative to TeamViewer. diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index b361e9ee5e41..8f900c150a09 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -230,6 +230,7 @@ ./programs/neovim.nix ./programs/nethoscope.nix ./programs/nexttrace.nix + ./programs/nh.nix ./programs/nix-index.nix ./programs/nix-ld.nix ./programs/nm-applet.nix diff --git a/nixos/modules/programs/nh.nix b/nixos/modules/programs/nh.nix new file mode 100644 index 000000000000..c42fb2fc724a --- /dev/null +++ b/nixos/modules/programs/nh.nix @@ -0,0 +1,96 @@ +{ config +, lib +, pkgs +, ... +}: +let + cfg = config.programs.nh; +in +{ + meta.maintainers = [ lib.maintainers.viperML ]; + + options.programs.nh = { + enable = lib.mkEnableOption "nh, yet another Nix CLI helper"; + + package = lib.mkPackageOption pkgs "nh" { }; + + flake = lib.mkOption { + type = lib.types.nullOr lib.types.path; + default = null; + description = '' + The path that will be used for the `FLAKE` environment variable. + + `FLAKE` is used by nh as the default flake for performing actions, like `nh os switch`. + ''; + }; + + clean = { + enable = lib.mkEnableOption "periodic garbage collection with nh clean all"; + + dates = lib.mkOption { + type = lib.types.singleLineStr; + default = "weekly"; + description = '' + How often cleanup is performed. Passed to systemd.time + + The format is described in + {manpage}`systemd.time(7)`. + ''; + }; + + extraArgs = lib.mkOption { + type = lib.types.singleLineStr; + default = ""; + example = "--keep 5 --keep-since 3d"; + description = '' + Options given to nh clean when the service is run automatically. + + See `nh clean all --help` for more information. + ''; + }; + }; + }; + + config = { + warnings = + if (!(cfg.clean.enable -> !config.nix.gc.automatic)) then [ + "programs.nh.clean.enable and nix.gc.automatic are both enabled. Please use one or the other to avoid conflict." + ] else [ ]; + + assertions = [ + # Not strictly required but probably a good assertion to have + { + assertion = cfg.clean.enable -> cfg.enable; + message = "programs.nh.clean.enable requires programs.nh.enable"; + } + + { + assertion = (cfg.flake != null) -> !(lib.hasSuffix ".nix" cfg.flake); + message = "nh.flake must be a directory, not a nix file"; + } + ]; + + environment = lib.mkIf cfg.enable { + systemPackages = [ cfg.package ]; + variables = lib.mkIf (cfg.flake != null) { + FLAKE = cfg.flake; + }; + }; + + systemd = lib.mkIf cfg.clean.enable { + services.nh-clean = { + description = "Nh clean"; + script = "exec ${lib.getExe cfg.package} clean all ${cfg.clean.extraArgs}"; + startAt = cfg.clean.dates; + path = [ config.nix.package ]; + serviceConfig.Type = "oneshot"; + }; + + timers.nh-clean = { + timerConfig = { + Persistent = true; + }; + }; + }; + }; +} From 093452c8275ea957a927700b5cf5e1553ea99642 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Apr 2024 13:59:06 +0000 Subject: [PATCH 61/69] php82Extensions.xdebug: 3.3.1 -> 3.3.2 --- pkgs/development/php-packages/xdebug/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/php-packages/xdebug/default.nix b/pkgs/development/php-packages/xdebug/default.nix index 9ff9b771401c..3b5caffb963d 100644 --- a/pkgs/development/php-packages/xdebug/default.nix +++ b/pkgs/development/php-packages/xdebug/default.nix @@ -1,7 +1,7 @@ { buildPecl, lib, fetchFromGitHub }: let - version = "3.3.1"; + version = "3.3.2"; in buildPecl { inherit version; @@ -11,7 +11,7 @@ in buildPecl { owner = "xdebug"; repo = "xdebug"; rev = version; - hash = "sha256-Zt1BIqNKsTHtIXy0Dar52sZxLi5k12LQAbxOLKQPMN8="; + hash = "sha256-3Hj/6pFLwJkVfsUIkX9lP8cOa1cVjobqHZd/cnH0TaU="; }; doCheck = true; From e9489ba998eede2b42e31c21e2672f5c29cb3648 Mon Sep 17 00:00:00 2001 From: znaniye Date: Mon, 15 Apr 2024 11:50:49 -0300 Subject: [PATCH 62/69] ols: 0-unstable-2024-02-09 -> 0-unstable-2024-04-15 --- pkgs/development/tools/ols/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/ols/default.nix b/pkgs/development/tools/ols/default.nix index 05839dcdcba7..963fbaef560e 100644 --- a/pkgs/development/tools/ols/default.nix +++ b/pkgs/development/tools/ols/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation { pname = "ols"; - version = "0-unstable-2024-02-09"; + version = "0-unstable-2024-04-15"; src = fetchFromGitHub { owner = "DanielGavin"; repo = "ols"; - rev = "3eb1e0e60a66a4fc7347fb77837ff45ccbe1cabb"; - hash = "sha256-qPcSZjvlBmFf3M98GrwIu8SGO2VbgdqBKzyFpGSEtrI="; + rev = "aa1aabda1cce68a6038c48429cc759f09ad2ebab"; + hash = "sha256-yM+Syx8hWiSZatWfFFGz8lUJTOCozkZWPdPUhRW0/Ow="; }; nativeBuildInputs = [ From 8706b488716e310f02e5ddc94204dc3fa81d511e Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Mon, 15 Apr 2024 07:57:16 -0700 Subject: [PATCH 63/69] python312Packages.snakemake-interface-storage-plugins: 3.1.1 -> 3.2.0 (#304299) --- .../snakemake-interface-storage-plugins/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix index b39139f848ca..8831dd8c17b9 100644 --- a/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix +++ b/pkgs/development/python-modules/snakemake-interface-storage-plugins/default.nix @@ -11,14 +11,14 @@ buildPythonPackage rec { pname = "snakemake-interface-storage-plugins"; - version = "3.1.1"; + version = "3.2.0"; format = "pyproject"; src = fetchFromGitHub { owner = "snakemake"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-5EWpfKpEATlEsw2VZGrGqS+WddVdtEKSgelBGud8kmI="; + hash = "sha256-IxsD8+arv6jLyFxzZJgeRXadsjSKH14KIEdd89/bo1w="; }; nativeBuildInputs = [ From 47908a114b3866efce8a9d9533c5c23510f5f7ae Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Mon, 15 Apr 2024 17:12:56 +0200 Subject: [PATCH 64/69] maintainers: add matrix for anthonyroussel --- maintainers/maintainer-list.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index b433750dca93..3a9a97956292 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1388,6 +1388,7 @@ github = "anthonyroussel"; githubId = 220084; name = "Anthony Roussel"; + matrix = "@anthonyrsl:matrix.org"; keys = [{ fingerprint = "472D 368A F107 F443 F3A5 C712 9DC4 987B 1A55 E75E"; }]; From 8f2adcac24149c37865b3e05bab26b10bb5d29bf Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 15 Apr 2024 18:16:03 +0300 Subject: [PATCH 65/69] pipewire: 1.0.4 -> 1.0.5 Diff: https://gitlab.freedesktop.org/pipewire/pipewire/-/compare/1.0.4...1.0.5 Changelog: https://gitlab.freedesktop.org/pipewire/pipewire/-/releases/24.05pre-git --- pkgs/development/libraries/pipewire/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/pipewire/default.nix b/pkgs/development/libraries/pipewire/default.nix index 3459112456fe..f22a86277b8e 100644 --- a/pkgs/development/libraries/pipewire/default.nix +++ b/pkgs/development/libraries/pipewire/default.nix @@ -76,7 +76,7 @@ assert ldacbtSupport -> bluezSupport; stdenv.mkDerivation(finalAttrs: { pname = "pipewire"; - version = "1.0.4"; + version = "1.0.5"; outputs = [ "out" @@ -92,7 +92,7 @@ stdenv.mkDerivation(finalAttrs: { owner = "pipewire"; repo = "pipewire"; rev = finalAttrs.version; - sha256 = "sha256-LROI1rGQELlGXkapX3XfDqB7Rc5YAOdCwaMQUG/iU8c="; + sha256 = "sha256-lgrwN83eywMKdsm0ig9QATDt3U5RboJ4kyILE+ts9Ts="; }; patches = [ From 94069e2d50bee6f7841fd57feb993305b3600fc4 Mon Sep 17 00:00:00 2001 From: Kyle Carberry Date: Mon, 15 Apr 2024 11:29:28 -0400 Subject: [PATCH 66/69] coder: use sri hash in updateScript --- pkgs/development/tools/coder/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/coder/update.sh b/pkgs/development/tools/coder/update.sh index a7ce3da93256..cf6febe7d823 100755 --- a/pkgs/development/tools/coder/update.sh +++ b/pkgs/development/tools/coder/update.sh @@ -25,7 +25,8 @@ for ARCH in "${!ARCHS[@]}"; do # Fetch the new hash using nix-prefetch-url NEW_HASH=$(nix-prefetch-url --type sha256 $URL) + SRI_HASH=$(nix hash to-sri --type sha256 $NEW_HASH) # Update the Nix file with the new hash - sed -i "s|${ARCH} = \"sha256-.*\";|${ARCH} = \"sha256-${NEW_HASH}\";|" ./default.nix + sed -i "s|${ARCH} = \"sha256-.*\";|${ARCH} = \"${SRI_HASH}\";|" ./default.nix done From e1728ff7f53cc75f4ae228faae9088452d7063b3 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:21:38 -0300 Subject: [PATCH 67/69] fluxcd: use SRI hash in update script --- pkgs/applications/networking/cluster/fluxcd/update.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/cluster/fluxcd/update.sh b/pkgs/applications/networking/cluster/fluxcd/update.sh index f252d587daaf..1763b37d3328 100755 --- a/pkgs/applications/networking/cluster/fluxcd/update.sh +++ b/pkgs/applications/networking/cluster/fluxcd/update.sh @@ -12,7 +12,9 @@ LATEST_VERSION=$(echo ${LATEST_TAG} | sed 's/^v//') if [ ! "$OLD_VERSION" = "$LATEST_VERSION" ]; then SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/fluxcd/flux2/archive/refs/tags/${LATEST_TAG}.tar.gz) + SHA256=$(nix hash to-sri --type sha256 $SHA256) SPEC_SHA256=$(nix-prefetch-url --quiet --unpack https://github.com/fluxcd/flux2/releases/download/${LATEST_TAG}/manifests.tar.gz) + SPEC_SHA256=$(nix hash to-sri --type sha256 $SPEC_SHA256) setKV () { sed -i "s|$1 = \".*\"|$1 = \"${2:-}\"|" "${FLUXCD_PATH}/default.nix" From 7801483ab9e2587bdeef6cc5d7da7e7e499851e1 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Mon, 15 Apr 2024 13:25:38 -0300 Subject: [PATCH 68/69] fluxcd: convert hashes to SRI --- pkgs/applications/networking/cluster/fluxcd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/fluxcd/default.nix b/pkgs/applications/networking/cluster/fluxcd/default.nix index 709ab087d26a..3f3b08f39814 100644 --- a/pkgs/applications/networking/cluster/fluxcd/default.nix +++ b/pkgs/applications/networking/cluster/fluxcd/default.nix @@ -8,8 +8,8 @@ let version = "2.2.3"; - sha256 = "12rrai56hl86213lsi8i4qrah0v7a36nks38g5373imyl9g497ym"; - manifestsSha256 = "1hmzmzijpx49hh2ykv7vw3jp02dxr4qn3r1dma56g7b4nbk7aa8x"; + sha256 = "sha256-1Z9EXqK+xnFGeWjoac1QZwOoMiYRRU1HEAZRaEpUOYs="; + manifestsSha256 = "sha256-HSl15rJknWeKqi3kYTHJvQlw5eD77OkFhIn0K+Ovv8I="; manifests = fetchzip { url = From 784330e27539b55d79959d979df50ff0cb011e26 Mon Sep 17 00:00:00 2001 From: K900 Date: Mon, 15 Apr 2024 20:12:24 +0300 Subject: [PATCH 69/69] treewide: nuke remaining mdDoc leftovers bors when --- nixos/modules/programs/bash/bash.nix | 2 +- nixos/modules/services/monitoring/grafana.nix | 2 +- nixos/modules/services/web-apps/coder.nix | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/programs/bash/bash.nix b/nixos/modules/programs/bash/bash.nix index 87fb29ed5bbe..21ef8338d8dd 100644 --- a/nixos/modules/programs/bash/bash.nix +++ b/nixos/modules/programs/bash/bash.nix @@ -30,7 +30,7 @@ in /* enable = mkOption { default = true; - description = lib.mdDoc '' + description = '' Whenever to configure Bash as an interactive shell. Note that this tries to make Bash the default {option}`users.defaultUserShell`, diff --git a/nixos/modules/services/monitoring/grafana.nix b/nixos/modules/services/monitoring/grafana.nix index e691cd64497f..9d453c539482 100644 --- a/nixos/modules/services/monitoring/grafana.nix +++ b/nixos/modules/services/monitoring/grafana.nix @@ -682,7 +682,7 @@ in # TODO Add "instrument_queries" option when upgrading to grafana 10.0 # instrument_queries = mkOption { - # description = lib.mdDoc "Set to `true` to add metrics and tracing for database queries."; + # description = "Set to `true` to add metrics and tracing for database queries."; # default = false; # type = types.bool; # }; diff --git a/nixos/modules/services/web-apps/coder.nix b/nixos/modules/services/web-apps/coder.nix index 705eee56ae3f..318a7c8fc135 100644 --- a/nixos/modules/services/web-apps/coder.nix +++ b/nixos/modules/services/web-apps/coder.nix @@ -75,7 +75,7 @@ in { environment = { extra = mkOption { type = types.attrs; - description = lib.mdDoc "Extra environment variables to pass run Coder's server with. See Coder documentation."; + description = "Extra environment variables to pass run Coder's server with. See Coder documentation."; default = {}; example = { CODER_OAUTH2_GITHUB_ALLOW_SIGNUPS = true; @@ -84,7 +84,7 @@ in { }; file = mkOption { type = types.nullOr types.path; - description = lib.mdDoc "Systemd environment file to add to Coder."; + description = "Systemd environment file to add to Coder."; default = null; }; };