Commit Graph

15 Commits

Author SHA1 Message Date
Alyssa Ross
70f51cc0b2 cairo: default ipc_rmid_deferred_release to false
This avoids the need to specify a value for every platform.  Upstream
does this since commit 8d5037ed ("meson: always skip
IPC_RMID_DEFERRED_RELEASE check when cross-compiling").  We might as
well keep the known true values for Linux and FreeBSD around to
preserve the small optimization.
2026-06-15 19:06:04 +02:00
quantenzitrone
f690155396 various: rename references from libXrender to libxrender
this shouldn't create any rebuilds
2026-02-06 00:29:19 +01:00
quantenzitrone
f67b5966bb various: rename references from libXext to libxext
this shouldn't create any rebuilds
2026-02-06 00:25:36 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Sergei Trofimovich
4d96172616 cairo: fix the eval on mingwW64
In https://github.com/NixOS/nixpkgs/issues/456516
user reported eval fails as:

    $ nix build --no-link -f. pkgsCross.mingwW64.cairo
    error:
       … while calling the 'derivationStrict' builtin
         at «nix-internal»/derivation-internal.nix:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'cairo-x86_64-w64-mingw32-1.18.4'
         whose name attribute is located at pkgs/stdenv/generic/make-derivation.nix:544:13

       … while evaluating attribute 'mesonFlags' of derivation 'cairo-x86_64-w64-mingw32-1.18.4'
         at pkgs/stdenv/generic/make-derivation.nix:824:11:
          823|           cmakeFlags = makeCMakeFlags attrs;
          824|           mesonFlags = makeMesonFlags attrs;
             |           ^
          825|         }

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: Unknown value for ipc_rmid_deferred_release

The change will not fix `caori` build on `windows`
but at least will report unsupported dependencies.
2025-10-28 21:26:10 +00:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
nixpkgs-ci[bot]
824e6df728 Merge staging-next into staging 2025-06-20 18:06:24 +00:00
nixpkgs-ci[bot]
61df693362 Merge staging-next into staging 2025-06-20 12:08:09 +00:00
Philip Taron
90fce84225 Revert "treewide: passthru outputBin as bin" 2025-06-20 05:02:53 -07:00
misilelaboratory
ddbe9a1a1e cairo: 1.18.2 -> 1.18.4
https://www.cairographics.org/news/cairo-1.18.4

Signed-off-by: misilelaboratory <misileminecord@gmail.com>
2025-06-07 19:36:45 +09:00
Peder Bergebakken Sundt
b869055378 cairo: passthru outputBin as bin 2025-05-30 22:05:27 +02:00
Ihar Hrachyshka
dd0f03a56c treewide: remove usage of deprecated apple_sdk framework stubs
They are not doing anything right now. This is in preparation for their
complete removal from the tree.

Note: several changes that affect the derivation inputs (e.g. removal of
references to stub paths in build instructions) were left out. They will
be cleaned up the next iteration and will require special care.

Note: this PR is a result of a mix of ugly regex (not AST) based
automation and some manual labor. For reference, the regex automation
part was hacked in: https://github.com/booxter/nix-clean-apple_sdk

Signed-off-by: Ihar Hrachyshka <ihar.hrachyshka@gmail.com>
2025-04-19 20:28:20 -04:00
Silvan Mosberger
667d42c00d treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 57b193d8dd
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:27:17 +01:00
Sergei Trofimovich
b28530131a cairo: pull upstream fix for "out of memory" errors
In Issue #358284 Victor Engmark reports that some PDF conversions are
failing with "out of memory" errors from `cairo`. ppenguin found the
upstream fix that handles it. Let's pull it in.

Closes: https://github.com/NixOS/nixpkgs/issues/358284
2024-12-05 17:12:59 +01:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00