···240 </listitem>
241 <listitem>
242 <para>
00000000243 The <literal>unifi-poller</literal> package and corresponding
244 NixOS module have been renamed to <literal>unpoller</literal>
245 to match upstream.
···240 </listitem>
241 <listitem>
242 <para>
243+ The <literal>services.fwupd</literal> module now allows
244+ arbitrary daemon settings to be configured in a structured
245+ manner
246+ (<link linkend="opt-services.fwupd.daemonSettings"><literal>services.fwupd.daemonSettings</literal></link>).
247+ </para>
248+ </listitem>
249+ <listitem>
250+ <para>
251 The <literal>unifi-poller</literal> package and corresponding
252 NixOS module have been renamed to <literal>unpoller</literal>
253 to match upstream.
+2
nixos/doc/manual/release-notes/rl-2305.section.md
···7071- Resilio sync secret keys can now be provided using a secrets file at runtime, preventing these secrets from ending up in the Nix store.
720073- The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream.
···7071- Resilio sync secret keys can now be provided using a secrets file at runtime, preventing these secrets from ending up in the Nix store.
7273+- The `services.fwupd` module now allows arbitrary daemon settings to be configured in a structured manner ([`services.fwupd.daemonSettings`](#opt-services.fwupd.daemonSettings)).
74+75- The `unifi-poller` package and corresponding NixOS module have been renamed to `unpoller` to match upstream.
···1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, cmake
5+}:
6+7+stdenv.mkDerivation (finalAttrs: {
8+ pname = "toml11";
9+ version = "3.7.1";
10+11+ src = fetchFromGitHub {
12+ owner = "ToruNiina";
13+ repo = "toml11";
14+ rev = "v${finalAttrs.version}";
15+ hash = "sha256-HnhXBvIjo1JXhp+hUQvjs83t5IBVbNN6o3ZGhB4WESQ=";
16+ };
17+18+ nativeBuildInputs = [
19+ cmake
20+ ];
21+22+ meta = with lib; {
23+ homepage = "https://github.com/ToruNiina/toml11";
24+ description = "TOML for Modern C++";
25+ longDescription = ''
26+ toml11 is a C++11 (or later) header-only toml parser/encoder depending
27+ only on C++ standard library.
28+29+ - It is compatible to the latest version of TOML v1.0.0.
30+ - It is one of the most TOML standard compliant libraries, tested with
31+ the language agnostic test suite for TOML parsers by BurntSushi.
32+ - It shows highly informative error messages.
33+ - It has configurable container. You can use any random-access containers
34+ and key-value maps as backend containers.
35+ - It optionally preserves comments without any overhead.
36+ - It has configurable serializer that supports comments, inline tables,
37+ literal strings and multiline strings.
38+ - It supports user-defined type conversion from/into toml values.
39+ - It correctly handles UTF-8 sequences, with or without BOM, both on posix
40+ and Windows.
41+ '';
42+ license = licenses.mit;
43+ maintainers = with maintainers; [ AndersonTorres ];
44+ platforms = platforms.unix;
45+ };
46+})
47+# TODO [ AndersonTorres ]: tests
+27-9
pkgs/development/misc/resholve/default.nix
···1{ lib
2-, stdenv
3, pkgsBuildHost
4, ...
5}:
67let
8- pkgs = import ../../../.. {
9- inherit (stdenv.hostPlatform) system;
10- # Allow python27 with known security issues only for resholve,
11- # see issue #201859 for the reasoning
12- # In resholve case this should not be a security issue,
13- # since it will only be used during build, not runtime
14- config.permittedInsecurePackages = [ pkgsBuildHost.python27.name ];
00000000000000000015 };
16- callPackage = lib.callPackageWith pkgs;
17 source = callPackage ./source.nix { };
18 deps = callPackage ./deps.nix { };
19in
···1{ lib
2+, pkgs
3, pkgsBuildHost
4, ...
5}:
67let
8+ python27' = (pkgsBuildHost.python27.overrideAttrs (old:
9+ {
10+ # Overriding `meta.knownVulnerabilities` here, see #201859 for why it exists
11+ # In resholve case this should not be a security issue,
12+ # since it will only be used during build, not runtime
13+ meta = (old.meta or { }) // { knownVulnerabilities = [ ]; };
14+ }
15+ )).override {
16+ self = python27';
17+ pkgsBuildHost = pkgsBuildHost // { python27 = python27'; };
18+ # strip down that python version as much as possible
19+ openssl = null;
20+ bzip2 = null;
21+ readline = null;
22+ ncurses = null;
23+ gdbm = null;
24+ sqlite = null;
25+ libffi = null;
26+ rebuildBytecode = false;
27+ stripBytecode = true;
28+ strip2to3 = true;
29+ stripConfig = true;
30+ stripIdlelib = true;
31+ stripTests = true;
32+ enableOptimizations = false;
33 };
34+ callPackage = lib.callPackageWith (pkgs // { python27 = python27'; });
35 source = callPackage ./source.nix { };
36 deps = callPackage ./deps.nix { };
37in