Commit Graph

157 Commits

Author SHA1 Message Date
Marcin Serwin
99e6d1bfbb maintainers: drop lovek323
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
2026-02-24 23:43:50 +01:00
K900
3ac81a5564 Merge remote-tracking branch 'origin/staging-next' into staging 2026-01-26 21:15:56 +03:00
quantenzitrone
7d8132a92c treewide: remove references to the xorg namespace in pkgs (automated)
this creates some eval errors that will be fixed in the next commit

done with the following script:

```fish
\#!/usr/bin/env fish

set packagesjson (nix eval --impure --json --expr '
let
  lib = import ./lib;
in
import pkgs/servers/x11/xorg/default.nix (lib.mapAttrs (
  name: _:
  if name == "lib" then
    lib
  else if name == "config" then
    { allowAliases = false; }
  else
    name
) (__functionArgs (import pkgs/servers/x11/xorg/default.nix))) { }
' | jq)

set one (grep '^    [A-Za-z0-9_-]*$' pkgs/servers/x11/xorg/default.nix | string trim | string replace -r '$' Z | sort | string sub -e -1)
set two (grep '^  [A-Za-z0-9_-]* = [A-Za-z0-9_-]*;$' pkgs/servers/x11/xorg/default.nix | cut -d= -f1 | string trim | string replace -r '$' Z | sort | string sub -e -1)

for arg in $one $two
    set oname $arg
    set nname (echo $packagesjson | jq -r .$oname)

    if test $nname = null
        echo (set_color red)warn:(set_color normal) unknown package xorg.$oname >&2
        continue
    end

    echo $oname "->" $nname

    # replace basic xorg.$name references
    for file in (rg -F "xorg.$oname" --files-with-matches pkgs)
        # special cases
        sd -F "$oname = xorg.$oname;" "$nname = $nname;" $file

        # replace
        sd -F "xorg.$oname" "$nname" $file

        # fixup function arguments

        # prevent duplicate function args
        if grep -E " ($oname|$nname),\$" $file >/dev/null
            continue
        end

        if grep 'xorg\..' $file >/dev/null # case1: there is more so we can't just remove the function arg

            if grep ' xorg,$' $file >/dev/null
                sd ' xorg,$' " xorg,
                $nname," $file

            else if grep ' xorg ? .*,$' $file >/dev/null
                sd 'xorg( ? .*),$' "xorg\$1,
                $nname," $file

            else
                sd -F 'xorg,' "$nname,
                xorg," $file
            end

        else # case there is no more xorg..* so we can just replace the function arg
            sd 'xorg(| ? .*),.*$' "$nname," $file
        end
    end
end

nix fmt
```
2026-01-25 22:28:09 +01:00
Stefan Frijters
b5406a6699 gobject-introspection: improve support for structuredAttrs
With `__structuredAttrs = true;` $outputLib is not available as an exported environment variable.
To avoid polluting the env with a generic variable that could be abused, use a bespoke
and easily greppable variable.
2025-12-19 02:12:29 +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
Jan Tojnar
c918ad6745 gobject-introspection: 1.84.0 → 1.86.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.84.0...1.86.0
2025-11-03 10:50:19 +01:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
Alois Wohlschlager
8c6099ba65 gobject-introspection: fix inappropriate targetPlatform usage
The library is build for the platform the built gobject-introspection will run
on, which is the hostPlatform, not the targetPlatform.
2025-08-02 14:52:30 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Jan Tojnar
f79433c7b2 gobject-introspection: 1.83.4 → 1.84.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.83.4...1.84.0

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2025-05-07 02:08:24 +02:00
Jan Tojnar
1fa3dc23f8 gobject-introspection: 1.83.2 → 1.83.4
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.83.2...1.83.4

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2025-05-07 02:08:11 +02:00
Jan Tojnar
73b1018231 gobject-introspection: 1.82.0 → 1.83.2
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.82.0...1.83.2

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2025-05-07 02:08:07 +02:00
Fernando Rodrigues
05580f4b44 treewide: switch instances of lib.teams.*.members to the new meta.teams attribute
Follow-up to #394797.

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
2025-04-25 22:20:17 -03:00
Sergei Trofimovich
ee4d47df3c gobject-introspection: pull upstream fix for glibc-2.41 on clang
Without the change `webkitgtk` fails to build as:

    byteswap.h:35: syntax error, unexpected '{', expecting ',' or ';' in '{' at '{'
2025-03-16 22:17:59 +00:00
Wolfgang Walther
e58e0c158e various: replace substituteAll with replaceVarsWith
This covers cases which need to use replaceVarsWith because the use
isExecutable = true.
2024-12-15 13:35:30 +01:00
Wolfgang Walther
5d27de1716 various: simplify handling of some *Phases in setup hooks (#360450) 2024-12-14 20:42:30 +01: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
Wolfgang Walther
2a88739651 gobject-introspection: setup-hook: move giDiscoverSelf to postInstallHook
Same reasoning as commit before.
2024-12-09 21:40:41 +01:00
Artturin
277a2669d2 gobject-introspection: Conditionalize depsTargetTargetPropagated
Fixes ↓

```
nix-repl> pkgsCross.x86_64-freebsd.pkgsBuildHost.gobject-introspection
error: Don't know how to run x86_64-unknown-freebsd executables.
```

The unwrapped already doesn't error

```
nix-repl> pkgsCross.x86_64-freebsd.pkgsBuildHost.gobject-introspection-unwrapped
«derivation /nix/store/xq4q4vigy2glmfng2h6bbr4sysyk8ipz-gobject-introspection-1.82.0.drv»
```

7b1cffdd2e/pkgs/development/libraries/gobject-introspection/default.nix (L114)

It's caused by `depsTargetTargetPropagated = [ overridenTargetUnwrappedGir ];` in the wrapper

In `graphene` there is
`PATH=${python3.withPackages (pp: [ pp.pygobject3 pp.tappy ])}/bin:$PATH patchShebangs tests/introspection.py`

Which causes the `Don't know` error in `pkgsCross.x86_64-freebsd.pkgsBuildHost.graphene`

because `python3` and `pygobject3` will be from `pkgsHostTarget`

and then `pygobject3` has `gobject-introspection` from `pkgsHostTarget`

and then that `gobject-introspection` will have `pkgsCross.x86_64-freebsd.pkgsCross.x86_64-freebsd.buildPackages.pkgsTargetTarget.gobject-introspection.gobject-introspection` in `depsTargetTargetPropagated`

To test that importing the python library `gi` works without `depsTargetTargetPropagated`

```nix
let
  pkgs =
    (import ./. {
      crossSystem = (import ./lib).systems.examples.aarch64-multiplatform;
      # On `master` uncomment this and comment `propagatedBuildInputs` below and you'll get
      # error: Don't know how to run x86_64-unknown-freebsd executables.
      #crossSystem = (import ./lib).systems.examples.x86_64-freebsd;
      overlays = [
        (_: prev: {
          pythonPackagesExtensions = prev.pythonPackagesExtensions ++ [
            (_: pprev: {
              pygobject3-test = pprev.pygobject3.overrideAttrs {
                propagatedBuildInputs = [
                  pprev.pycairo
                  (prev.gobject-introspection.overrideAttrs { depsTargetTargetPropagated = [ ]; })
                ];
              };
            })
          ];
        })
      ];
    }).pkgs;
  pyr = pkgs.pkgsBuildHost.python3Packages.python.withPackages (pp: [ pp.pygobject3-test ]);
in
pkgs.pkgsBuildBuild.runCommand "test" { } ''
  "${pyr.interpreter}" -c "import gi" && touch "$out"
''
```
2024-11-07 23:44:23 +02:00
Sergei Trofimovich
cfe6449dba gobject-introspection-unwrapped: drop conflicting patch
Without the change `gobject-introspection` fails the build on
`staging-next` as:

    applying patch /nix/store/5w1icwq865fhjs9w2s0vb6xqn5irzxv7-setuptools-74.0-compat.patch
    patching file giscanner/ccompiler.py
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    4 out of 4 hunks ignored -- saving rejects to file giscanner/ccompiler.py.rej
    patching file giscanner/msvccompiler.py
    Reversed (or previously applied) patch detected!  Assume -R? [n]
    Apply anyway? [n]
    Skipping patch.
    1 out of 1 hunk ignored -- saving rejects to file giscanner/msvccompiler.py.rej
2024-10-15 21:02:24 +01:00
Vladimír Čunát
8810e738c8 GNOME: 46 → 47 (#333911) 2024-10-15 18:07:04 +02:00
Bobby Rong
e2611a4bfe gobject-introspection: 1.80.1 → 1.82.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.80.1...1.82.0

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
2024-10-14 20:54:13 +08:00
Martin Weinelt
8d56742665 gobject-introspection: Backport patch for setuptools 74.0 compat
Applied from pull request 345326.
2024-10-14 20:46:03 +08:00
Martin Weinelt
1ab4b61109 gobject-introspection: backport patch for setuptools 74.0 compat 2024-10-13 11:02:53 +02:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Martin Weinelt
0b94b05e64 gobject-introspection: provide setuptools
Meson during configurePhase complained about missing setuptools.
2024-06-24 12:18:22 +02:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00
Bobby Rong
ba69532efc gobject-introspection: 1.78.1 → 1.80.1
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.78.1...1.80.1

Changelog-Reviewed-By: Maxine Aubrey <max@ine.dev>
2024-04-22 21:11:13 +02:00
Maxine Aubrey
aaf0d8f819 glib: 2.78.4 → 2.80.0
https://gitlab.gnome.org/GNOME/glib/-/compare/2.78.4...2.80.0

Co-Authored-By: Bobby Rong <rjl931189261@126.com>

Changelog-Reviewed-By: Maxine Aubrey <max@ine.dev>
2024-04-22 21:08:42 +02:00
Bobby Rong
8de2a6658d gobject-introspection: 1.76.1 → 1.78.1
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.76.1...1.78.1

NEWS look okay.

* Update the GIR data
* Add GObject as a dependency for the Cairo GIR
* Update regression test suite
* Support different prefix for finding GIR data
* Add GI_GIR_PATH environment variable for controlling GIR paths

The build system changes are suspect – `gir_dir_prefix` is assumed to be relative,
but it takes the value from `datadir` option, which is not generally relative.
Though, currently, the variable is not stringly concatenated anywhere
other than in a code path where its value comes from eponymous option,
which is documented as “Intermediate prefix for gir installation under ${prefix}”,
so it can probably be assumed to be relative there.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
2023-11-21 08:42:27 +01:00
Alyssa Ross
44ef6a13bf pkgsStatic.gobject-introspection: mark unsupported 2023-10-12 13:25:23 +00:00
github-actions[bot]
ace14e0119 Merge master into staging-next 2023-04-10 18:01:11 +00:00
Artturin
437c5b6e08 gobject-introspection: fix pkgsCross.gnu32.gobject-introspection from x86_64-linux
gobject-introspection-i686-unknown-linux-gnu> FAILED: gir/GLib-2.0.gir
gobject-introspection-i686-unknown-linux-gnu> /build/gobject-introspection-1.74.0/build/tools/g-ir-scanner --output=gir/GLib-2.0.gir --no-libtool --quiet --reparse-validate --add-include-path /build/gobject-introspection-1.74.0/build/gir --add-include-path /build/gobject-introspectio ...
gobject-introspection-i686-unknown-linux-gnu> Traceback (most recent call last):
gobject-introspection-i686-unknown-linux-gnu>   File "/build/gobject-introspection-1.74.0/build/tools/g-ir-scanner", line 98, in <module>
gobject-introspection-i686-unknown-linux-gnu>     from giscanner.scannermain import scanner_main
gobject-introspection-i686-unknown-linux-gnu>   File "/build/gobject-introspection-1.74.0/build/giscanner/scannermain.py", line 35, in <module>
gobject-introspection-i686-unknown-linux-gnu>     from giscanner.ast import Include, Namespace
gobject-introspection-i686-unknown-linux-gnu>   File "/build/gobject-introspection-1.74.0/build/giscanner/ast.py", line 29, in <module>
gobject-introspection-i686-unknown-linux-gnu>     from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
gobject-introspection-i686-unknown-linux-gnu>   File "/build/gobject-introspection-1.74.0/build/giscanner/sourcescanner.py", line 34, in <module>
gobject-introspection-i686-unknown-linux-gnu>     from giscanner._giscanner import SourceScanner as CSourceScanner
gobject-introspection-i686-unknown-linux-gnu> ImportError: /build/gobject-introspection-1.74.0/build/giscanner/_giscanner.cpython-310-x86_64-linux-gnu.so: wrong ELF class: ELFCLASS32
gobject-introspection-i686-unknown-linux-gnu> ninja: build stopped: subcommand failed.
2023-04-08 02:12:16 +03:00
Jan Tojnar
4c434c4c3b gobject-introspection: 1.76.0 → 1.76.1
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.76.0...1.76.1

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2023-04-06 01:36:40 +02:00
Jan Tojnar
5c45946077 gobject-introspection: 1.75.6 → 1.76.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.75.6...1.76.0

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2023-04-06 01:35:21 +02:00
Jan Tojnar
75723a05c5 gobject-introspection: 1.74.0 → 1.75.6
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.74.0...1.75.6

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2023-04-06 01:34:45 +02:00
Martin Weinelt
9e7f9a402b python310Packages.mako: Normalize attribute, pname, dirname 2023-02-19 21:36:02 +01:00
John Ericson
81655d432d gobject-introspection: Add meta.pkgConfigModules and test 2023-02-11 11:03:01 -05:00
Guillaume Girol
33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00
figsoda
ec8cb34358 treewide: fix typos 2022-12-17 19:39:44 -05:00
Artturin
40d493c5fb gobject-introspection: use overrideAttrs in the wrapper
this way we preserve all the attributes

gobject-introspection: use buildCommand and eval fixupPhase
2022-11-22 16:06:52 +02:00
Artturin
3fda065c6a gobject-introspection: inherit meta in the wrapper
meta isn't in drvAttrs because its a "passthru" attribute
2022-11-21 19:51:50 +02:00
Artturin
b2f9cd34e7 gobject-introspection: use wrapper.nix for the native package too
so we can propagate the dev output

during the build of i3ipc-glib with strictDeps enabled i noticed that
gobject-introspection was not being detected and it was due to
gobject-introspection path not being in the PKG_CONFIG_PATH variable

this commit makes gobject-introspection get detected when build==host
2022-11-09 20:58:38 +02:00
Jan Tojnar
aa925d554f gobject-introspection: 1.73.1 → 1.74.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.73.1...1.74.0

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2022-10-11 18:52:26 +02:00
Jan Tojnar
554584ccae gobject-introspection: 1.73.0 → 1.73.1
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.73.0...1.73.1

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2022-10-11 18:52:22 +02:00
Jan Tojnar
feda72e7d8 gobject-introspection: 1.72.0 → 1.73.0
https://gitlab.gnome.org/GNOME/gobject-introspection/-/compare/1.72.0...1.73.0

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
2022-10-11 18:52:07 +02:00
Artturin
740ebffd5a gobject-introspection: use lddtree instead of objdump as ldd wrapper
the wrong path was used in gir files because the format of objdump is
different from ldd so the regex in gobject-introspection doesn't work

https://gitlab.gnome.org/GNOME/gobject-introspection/-/blob/main/giscanner/shlibs.py#L42-57

  <namespace name="GLib"
             shared-library="/nix/store/pak6rr8wdnbwa1iq2ldvg8pa8zahl3r1-gobject-introspection-aarch64-unknown-linux-gnu-1.72.0/lib/libgobject-2.0.so.0,/nix/store/pak6rr8wdnbwa1iq2ldvg8pa8zahl3r1-gobject-introspection-aarch64-unknown-linux-gnu-1.72.0/lib/libglib-2.0.so.0"

objdump
gobject-introspection>   NEEDED               libgmodule-2.0.so.0
gobject-introspection>   NEEDED               libglib-2.0.so.0

ldd
gobject-introspection>  libgmodule-2.0.so.0 => /nix/store/ngm1wbwms13c2crsvrah2ypfj0b2yii5-glib-2.73.2/lib/libgmodule-2.0.so.0 (0x00007ffff7d6e000)
gobject-introspection>  libglib-2.0.so.0 => /nix/store/ngm1wbwms13c2crsvrah2ypfj0b2yii5-glib-2.73.2/lib/libglib-2.0.so.0 (0x00007ffff7c32000)
2022-09-07 21:24:08 +03:00
Artturin
8f40fcbb4c gobject-introspection: propagate self/targetself to avoid having to add gobject-introspection to buildInputs
i should probably move to use the wrapper when host != build and do the
canExecute things inside the wrapper.nix

then i could use gobject-introspection-unwrapped in it even when
host == build

void also adds gobject-introspection to makeDepends when its gir build
helper is used
2022-09-01 19:46:57 +03:00
Artturin
3d1f96e1b4 gobject-introspection: enable strictDeps and improve cross conditional
the flags defined in it are required if the hostPlatform can't be executed
2022-09-01 01:20:49 +03:00