Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from NixOS:master #104

Merged
merged 65 commits into from
Dec 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
d4955c5
tpm2-tools: 5.5 -> 5.6
delroth Nov 25, 2023
df0ebc0
libbacktrace: disable tests on musl
emilytrau Nov 29, 2023
016d789
{libqalculate, qalculate-gtk, qalculate-qt}: 4.8.1 -> 4.9.0
alyaeanyx Nov 30, 2023
90a5c36
{libqalculate, qalculate-gtk}: change sha256 attribute to hash
alyaeanyx Nov 30, 2023
3d0affa
python3Packages.z3-solver: rename from z3
stepbrobd Dec 3, 2023
08cdc6a
qalculate-{gtk, qt}: add meta.mainProgram
alyaeanyx Dec 7, 2023
f5dafbf
doc: Rename to Nixpkgs reference manual and state purpose
infinisil Dec 5, 2023
eaa581b
nixos/nextcloud: allow phpOptions to contain ints
SuperSandro2000 Dec 8, 2023
8d3978c
lib.types.boolByOr: init
infinisil Dec 7, 2023
87fb1c4
gnome-resources: init at 1.2.1
EwuUwe Dec 8, 2023
aa7dad9
maintainers: add ewuuwe
EwuUwe Dec 8, 2023
aab87b6
fix missing newline at the end of default.nix
EwuUwe Dec 8, 2023
87c91fb
octodns: init at 1.4.0
Janik-Haag Oct 31, 2023
5488414
octodns-providers.hetzner: init at 0.0.2
Janik-Haag Oct 31, 2023
fa8bd5f
octodns-providers.powerdns: init at 0.0.5
Janik-Haag Oct 31, 2023
b063d25
octodns-providers.bind: init at 0.0.5
Janik-Haag Dec 5, 2023
26a09d8
Update version 1.2.0 -> 1.2.1, update license
EwuUwe Dec 9, 2023
7e67497
Fix double wrapping
EwuUwe Dec 9, 2023
2889423
Add cargo.lock
EwuUwe Dec 9, 2023
b27c9d9
gnome.zenity: 3.99.2 → 4.0.0
jtojnar Dec 9, 2023
0918edb
gnome.mutter: 45.1 → 45.2
jtojnar Dec 9, 2023
d18b7d6
gnome.gnome-shell: 45.1 → 45.2
jtojnar Dec 9, 2023
a072ff9
gnome.gnome-shell-extensions: 45.1 → 45.2
jtojnar Dec 9, 2023
3b7892c
gnome.gnome-control-center: 45.1 → 45.2
jtojnar Dec 9, 2023
a2001ba
gnome.nautilus: 45.1 → 45.2.1
jtojnar Dec 9, 2023
cfa2990
gnome.file-roller: 43.0 → 43.1
jtojnar Dec 8, 2023
b89d5db
gnome.gnome-maps: 45.1 → 45.2
jtojnar Dec 9, 2023
64e3e7e
shotwell: 0.32.3 → 0.32.4
jtojnar Dec 9, 2023
640248f
snapshot: 45.0 → 45.1
jtojnar Dec 9, 2023
5d26d7d
Fix Cargo.lock not being used
EwuUwe Dec 9, 2023
affcea3
Remove Cargo.lock
EwuUwe Dec 9, 2023
99817ac
Remove unnecessary pkgs argument
EwuUwe Dec 9, 2023
6154391
ttyplot: 1.5.1 -> 1.5.2
r-ryantm Dec 9, 2023
9635e94
pylyzer: 0.0.49 -> 0.0.50
GaetanLepage Dec 9, 2023
d79ef7e
werf: 1.2.269 -> 1.2.270
r-ryantm Dec 10, 2023
8c1c656
Merge pull request #261266 from Janik-Haag/octodns
natsukium Dec 10, 2023
cade361
volatility: remove
aaronjheng Dec 10, 2023
b9cb1d8
Merge pull request #271924 from stepbrobd/z3-solver
natsukium Dec 10, 2023
584463c
Merge pull request #272764 from tweag/anyBool
roberth Dec 10, 2023
8d20c20
Merge pull request #272183 from infinisil/nixpkgs-reference
roberth Dec 10, 2023
18746a0
whisper-ctranslate2: 0.3.2 -> 0.3.4
r-ryantm Dec 10, 2023
23971e2
Merge pull request #269833 from delroth/tpm2-tools-5.6
delroth Dec 10, 2023
60274ea
Revert "nixos/mobilizon: fix integration test by using postgresql_14"
erictapen Dec 2, 2023
db3bd72
mobilizon: 3.2.0 -> 4.0.0
erictapen Dec 2, 2023
3b40e1b
buildNimPackage: allow overriding nim package args
999eagle Dec 6, 2023
acb20c1
nixos/no-x-libs: add mupdf
SuperSandro2000 Dec 8, 2023
54e610e
Merge pull request #273246 from r-ryantm/auto-update/werf
azahi Dec 10, 2023
0ee3c78
alephone, alephone-*: move to pkgs/by-name
ehmry Nov 28, 2023
6fb94a8
alephone: 1.6.2 -> 1.7
ehmry Nov 28, 2023
c3b531d
nimOverrides: warn on bad version of hashlib
ehmry Nov 30, 2023
4d8e10e
syndicate_utils: init at 20231130
ehmry Nov 30, 2023
058faf1
Merge pull request #270774 from emilytrau/libbacktrace-musl
emilytrau Dec 10, 2023
137f80e
Merge pull request #273218 from r-ryantm/auto-update/ttyplot
Lassulus Dec 10, 2023
039f53d
Merge pull request #273127 from jtojnar/gnome-updates
amaxine Dec 10, 2023
1c05d72
Merge pull request #272993 from EwuUwe/gnome-resources
amaxine Dec 10, 2023
1f8d62a
nix-eval-jobs: 2.18.0 -> 2.19.0
Mic92 Dec 6, 2023
29d6c96
Merge pull request #271142 from alyaeanyx/qalculate-4.9.0
doronbehar Dec 10, 2023
92ec31f
bambu-studio: init at 01.06.02.04 (#206495)
zhaofengli Dec 10, 2023
886eb57
phpPackages.box: 4.5.1 -> 4.6.0
drupol Dec 10, 2023
359abc9
Merge pull request #273325 from drupol/bump/box/4-6-0
drupol Dec 10, 2023
cbead7e
phpPackages.box: use `php82`
drupol Dec 10, 2023
8214139
Merge pull request #273327 from drupol/box/use-php-83
drupol Dec 10, 2023
9f9de7c
Merge pull request #272919 from SuperSandro2000/nextcloud
Ma27 Dec 10, 2023
d723f1d
Merge pull request #273226 from GaetanLepage/pylyzer
natsukium Dec 10, 2023
b2f4b4b
Merge pull request #273264 from aaronjheng/volatility
wegank Dec 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions doc/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# Contributing to the Nixpkgs manual
# Contributing to the Nixpkgs reference manual

This directory houses the sources files for the Nixpkgs manual.
This directory houses the sources files for the Nixpkgs reference manual.

You can find the [rendered documentation for Nixpkgs `unstable` on nixos.org](https://nixos.org/manual/nixpkgs/unstable/).
The rendering tool is [nixos-render-docs](../pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs), sometimes abbreviated `nrd`.
Going forward, it should only contain [reference](https://nix.dev/contributing/documentation/diataxis#reference) documentation.
For tutorials, guides and explanations, contribute to <https://nix.dev/> instead.

For documentation only relevant for contributors, use Markdown files and code comments in the source code.

[Docs for Nixpkgs stable](https://nixos.org/manual/nixpkgs/stable/) are also available.
Rendered documentation:
- [Unstable (from master)](https://nixos.org/manual/nixpkgs/unstable/)
- [Stable (from latest release)](https://nixos.org/manual/nixpkgs/stable/)

If you're only getting started with Nix, go to [nixos.org/learn](https://nixos.org/learn).
The rendering tool is [nixos-render-docs](../pkgs/tools/nix/nixos-render-docs/src/nixos_render_docs), sometimes abbreviated `nrd`.

## Contributing to this documentation

Expand Down
17 changes: 15 additions & 2 deletions doc/languages-frameworks/nim.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,20 @@ $ nix build -f . ttop.src
$ nix run -f . nim_lk ./result | jq --sort-keys > pkgs/by-name/tt/ttop/lock.json
```

## Lockfile dependency overrides {#nimoverrides}
## Overriding Nim packages {#nim-overrides}

The `buildNimPackage` function generates flags and additional build dependencies from the `lockFile` parameter passed to `buildNimPackage`. Using [`overrideAttrs`](#sec-pkg-overrideAttrs) on the final package will apply after this has already been generated, so this can't be used to override the `lockFile` in a package built with `buildNimPackage`. To be able to override parameters before flags and build dependencies are generated from the `lockFile`, use `overrideNimAttrs` instead with the same syntax as `overrideAttrs`:

```nix
pkgs.nitter.overrideNimAttrs {
# using a different source which has different dependencies from the standard package
src = pkgs.fetchFromGithub { /* … */ };
# new lock file generated from the source
lockFile = ./custom-lock.json;
}
```

## Lockfile dependency overrides {#nim-lock-overrides}

The `buildNimPackage` function matches the libraries specified by `lockFile` to attrset of override functions that are then applied to the package derivation.
The default overrides are maintained as the top-level `nimOverrides` attrset at `pkgs/top-level/nim-overrides.nix`.
Expand Down Expand Up @@ -81,7 +94,7 @@ The annotations in the `nim-overrides.nix` set are functions that take three arg
- finalAttrs: the final attrset passed by `buildNimPackage` to `stdenv.mkDerivation`.
- prevAttrs: the attrset produced by initial arguments to `buildNimPackage` and any preceding lockfile overlays.

### Overriding an Nim library override {#nimoverrides-overrides}
### Overriding an Nim library override {#nim-lock-overrides-overrides}

The `nimOverrides` attrset makes it possible to modify overrides in a few different ways.

Expand Down
2 changes: 1 addition & 1 deletion doc/manual.md.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Nixpkgs Manual {#nixpkgs-manual}
# Nixpkgs Reference Manual {#nixpkgs-manual}
## Version @MANUAL_VERSION@

```{=include=} chapters
Expand Down
14 changes: 9 additions & 5 deletions doc/preface.chapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ The Nix Packages collection (Nixpkgs) is a set of thousands of packages for the
Packages are available for several platforms, and can be used with the Nix
package manager on most GNU/Linux distributions as well as [NixOS](https://nixos.org/nixos).

This manual primarily describes how to write packages for the Nix Packages collection
(Nixpkgs). Thus it’s mainly for packagers and developers who want to add packages to
Nixpkgs. If you like to learn more about the Nix package manager and the Nix
expression language, then you are kindly referred to the [Nix manual](https://nixos.org/nix/manual/).
The NixOS distribution is documented in the [NixOS manual](https://nixos.org/nixos/manual/).
This document is the user [_reference_](https://nix.dev/contributing/documentation/diataxis#reference) manual for Nixpkgs.
It describes entire public interface of Nixpkgs in a concise and orderly manner, and all relevant behaviors, with examples and cross-references.

To discover other kinds of documentation:
- [nix.dev](https://nix.dev/): Tutorials and guides for getting things done with Nix
- [NixOS **Option Search**](https://search.nixos.org/options) and reference documentation
- [Nixpkgs **Package Search**](https://search.nixos.org/packages)
- [**NixOS** manual](https://nixos.org/manual/nixos/stable/): Reference documentation for the NixOS Linux distribution
- [`CONTRIBUTING.md`](https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md): Contributing to Nixpkgs, including this manual

## Overview of Nixpkgs {#overview-of-nixpkgs}

Expand Down
2 changes: 1 addition & 1 deletion lib/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Reference documentation for library functions is written above each function as
These comments are processed using [nixdoc](https://github.com/nix-community/nixdoc) and [rendered in the Nixpkgs manual](https://nixos.org/manual/nixpkgs/stable/#chap-functions).
The nixdoc README describes the [comment format](https://github.com/nix-community/nixdoc#comment-format).

See the [chapter on contributing to the Nixpkgs manual](https://nixos.org/manual/nixpkgs/#chap-contributing) for how to build the manual.
See [doc/README.md](../doc/README.md) for how to build the manual.

## Running tests

Expand Down
6 changes: 6 additions & 0 deletions lib/tests/modules.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ checkConfigError 'The option .* does not exist. Definition values:\n\s*- In .*'
checkConfigError 'while evaluating a definition from `.*/define-enable-abort.nix' config.enable ./define-enable-abort.nix
checkConfigError 'while evaluating the error message for definitions for .enable., which is an option that does not exist' config.enable ./define-enable-abort.nix

# Check boolByOr type.
checkConfigOutput '^false$' config.value.falseFalse ./boolByOr.nix
checkConfigOutput '^true$' config.value.trueFalse ./boolByOr.nix
checkConfigOutput '^true$' config.value.falseTrue ./boolByOr.nix
checkConfigOutput '^true$' config.value.trueTrue ./boolByOr.nix

checkConfigOutput '^1$' config.bare-submodule.nested ./declare-bare-submodule.nix ./declare-bare-submodule-nested-option.nix
checkConfigOutput '^2$' config.bare-submodule.deep ./declare-bare-submodule.nix ./declare-bare-submodule-deep-option.nix
checkConfigOutput '^42$' config.bare-submodule.nested ./declare-bare-submodule.nix ./declare-bare-submodule-nested-option.nix ./declare-bare-submodule-deep-option.nix ./define-bare-submodule-values.nix
Expand Down
14 changes: 14 additions & 0 deletions lib/tests/modules/boolByOr.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{ lib, ... }: {

options.value = lib.mkOption {
type = lib.types.lazyAttrsOf lib.types.boolByOr;
};

config.value = {
falseFalse = lib.mkMerge [ false false ];
trueFalse = lib.mkMerge [ true false ];
falseTrue = lib.mkMerge [ false true ];
trueTrue = lib.mkMerge [ true true ];
};
}

16 changes: 16 additions & 0 deletions lib/types.nix
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,22 @@ rec {
merge = mergeEqualOption;
};

boolByOr = mkOptionType {
name = "boolByOr";
description = "boolean (merged using or)";
descriptionClass = "noun";
check = isBool;
merge = loc: defs:
foldl'
(result: def:
# Under the assumption that .check always runs before merge, we can assume that all defs.*.value
# have been forced, and therefore we assume we don't introduce order-dependent strictness here
result || def.value
)
false
defs;
};

int = mkOptionType {
name = "int";
description = "signed integer";
Expand Down
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5676,6 +5676,12 @@
githubId = 454695;
name = "Artur Taranchiev";
};
ewuuwe = {
email = "[email protected]";
github = "ewuuwe";
githubId = 63652646;
name = "Xaver Oswald";
};
exarkun = {
email = "[email protected]";
github = "exarkun";
Expand Down
7 changes: 7 additions & 0 deletions nixos/doc/manual/development/option-types.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ merging is handled.
`types.bool`

: A boolean, its values can be `true` or `false`.
All definitions must have the same value, after priorities. An error is thrown in case of a conflict.

`types.boolByOr`

: A boolean, its values can be `true` or `false`.
The result is `true` if _any_ of multiple definitions is `true`.
In other words, definitions are merged with the logical _OR_ operator.

`types.path`

Expand Down
1 change: 1 addition & 0 deletions nixos/modules/config/no-x-libs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ with lib;
mc = super.mc.override { x11Support = false; };
mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; waylandSupport = false; };
msmtp = super.msmtp.override { withKeyring = false; };
mupdf = super.mupdf.override { enableGL = false; enableX11 = false; };
neofetch = super.neofetch.override { x11Support = false; };
networkmanager-fortisslvpn = super.networkmanager-fortisslvpn.override { withGnome = false; };
networkmanager-iodine = super.networkmanager-iodine.override { withGnome = false; };
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/services/web-apps/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ in {
};

phpOptions = mkOption {
type = types.attrsOf types.str;
type = with types; attrsOf (oneOf [ str int ]);
defaultText = literalExpression (generators.toPretty { } defaultPHPSettings);
description = lib.mdDoc ''
Options for PHP's php.ini file for nextcloud.
Expand Down
4 changes: 1 addition & 3 deletions nixos/tests/mobilizon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import ./make-test-python.nix ({ lib, ... }:
meta.maintainers = with lib.maintainers; [ minijackson erictapen ];

nodes.server =
{ pkgs, ... }:
{ ... }:
{
services.mobilizon = {
enable = true;
Expand All @@ -25,8 +25,6 @@ import ./make-test-python.nix ({ lib, ... }:
};
};

services.postgresql.package = pkgs.postgresql_14;

security.pki.certificateFiles = [ certs.ca.cert ];

services.nginx.virtualHosts."${mobilizonDomain}" = {
Expand Down
12 changes: 6 additions & 6 deletions pkgs/applications/graphics/shotwell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@

# for dependencies see https://wiki.gnome.org/Apps/Shotwell/BuildingAndInstalling

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "shotwell";
version = "0.32.3";
version = "0.32.4";

src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "sha256-4AD+5bPzYseRFPDs/44is0yaKGW1nkGi2j5NxdLKLDw=";
url = "mirror://gnome/sources/shotwell/${lib.versions.majorMinor finalAttrs.version}/shotwell-${finalAttrs.version}.tar.xz";
sha256 = "sha256-3iqUUIRtHOwUxqEDA3X9SeGvJNySCtZIA0QST5zLhW8=";
};

nativeBuildInputs = [
Expand Down Expand Up @@ -91,7 +91,7 @@ stdenv.mkDerivation rec {

passthru = {
updateScript = gnome.updateScript {
packageName = pname;
packageName = "shotwell";
versionPolicy = "odd-unstable";
};
};
Expand All @@ -103,4 +103,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [];
platforms = platforms.linux;
};
}
})
20 changes: 5 additions & 15 deletions pkgs/applications/graphics/snapshot/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv
, lib
, fetchurl
, fetchpatch
, cargo
, desktop-file-utils
, meson
Expand All @@ -17,24 +16,15 @@
, gnome
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "snapshot";
version = "45.0";
version = "45.1";

src = fetchurl {
url = "mirror://gnome/sources/snapshot/${lib.versions.major version}/snapshot-${version}.tar.xz";
hash = "sha256-7keO4JBzGgsIJLZrsXRr2ADcv+h6yDWEmUSa85z822c=";
url = "mirror://gnome/sources/snapshot/${lib.versions.major finalAttrs.version}/snapshot-${finalAttrs.version}.tar.xz";
hash = "sha256-/kRifa7zrZbBaaLlRhDmZxj4k9cN/SXUDTBskYQ7zjk=";
};

patches = [
# Fix portal requests
# https://gitlab.gnome.org/GNOME/snapshot/-/merge_requests/168
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/snapshot/-/commit/6aec0f56d6bb994731c1309ac6e2cb822b82067e.patch";
hash = "sha256-6tnOhhTQ3Rfl3nCw/rliLKkvZknvZKCQyeMKaTxYmok=";
})
];

nativeBuildInputs = [
cargo
desktop-file-utils
Expand Down Expand Up @@ -75,4 +65,4 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
mainProgram = "snapshot";
};
}
})
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 7eed499898226222a949a792e0400ec10db4a1c9 Mon Sep 17 00:00:00 2001
From: Zhaofeng Li <[email protected]>
Date: Tue, 22 Nov 2022 13:00:39 -0700
Subject: [PATCH] [not for upstream] CMakeLists: Link against webkit2gtk in
libslic3r_gui

WebView.cpp uses symbols from webkitgtk directly. Upstream setup
links wxGTK statically so webkitgtk is already pulled in.

> /nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: slic3r/liblibslic3r_gui.a(WebView.cpp.o): undefined reference to symbol 'webkit_web_view_run_javascript_finish'
> /nix/store/039g378vc3pc3dvi9dzdlrd0i4q93qwf-binutils-2.39/bin/ld: /nix/store/8yvy428jy2nwq4dhmrcs7gj5r27a2pv6-webkitgtk-2.38.2+abi=4.0/lib/libwebkit2gtk-4.0.so.37: error adding symbols: DSO missing from command line
---
src/CMakeLists.txt | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9c5cb96..e92a0e3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -175,6 +175,11 @@ if (WIN32)
target_link_libraries(BambuStudio_app_gui PRIVATE boost_headeronly)
endif ()

+# We link against webkit2gtk symbols in src/slic3r/GUI/Widgets/WebView.cpp
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
+ target_link_libraries(libslic3r_gui "-lwebkit2gtk-4.0")
+endif ()
+
# Link the resources dir to where Slic3r GUI expects it
set(output_dlls_Release "")
set(output_dlls_Debug "")
--
2.38.1

Loading