Commit Graph

83 Commits

Author SHA1 Message Date
Ben Siraphob
062d2b697e pkgs: fix typos in applications, data, desktops, games and misc
Assisted-by: Claude Code (claude-opus-5)
2026-08-02 11:15:27 -07:00
Emily
fdb820602b treewide: drop simple x86_64-darwin mentions
To reproduce:

    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: nix-x86_64-darwin
          language: nix
          rule:
            any:
              - pattern: "\"x86_64-darwin\""
                kind: list_expression > string_expression
              - pattern:
                  context: "{ \"x86_64-darwin\" = $EXPR; }"
                  selector: binding
              - pattern:
                  context: "{ x86_64-darwin = $EXPR; }"
                  selector: binding
          fix:
            template: ""
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-first-x86_64-darwin
          language: json
          rule:
            kind: object > pair:nth-child(1)
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandEnd: { regex: "," }
        ' pkgs
    $ nix run nixpkgs/3b32825de172d0bc85664f495edb096b10862524#ast-grep \
        -- scan --update-all --inline-rules '
          id: json-x86_64-darwin
          language: json
          rule:
            kind: object > pair
            has:
              pattern: "\"x86_64-darwin\""
              field: key
          fix:
            template: ""
            expandStart: { regex: "," }
        ' pkgs
    $ git restore pkgs/by-name/om/omnix/package.nix
    $ git diff --name-only -z \
        | nix shell nixpkgs/3b32825de172d0bc85664f495edb096b10862524#gnused \
            -c xargs -0 sed -i '/^$/N; /^\n\? \+$/d'
    $ treefmt
2026-07-15 03:58:16 +01:00
Philip Taron
f42d6c1cd4 hadoop: replace recursiveUpdate with // for meta
Replace `lib.recursiveUpdate` with `//` so that
`builtins.unsafeGetAttrPos` can find `meta.description` at its
definition site, making the `pos = __curPos` workaround unnecessary.
2026-03-19 11:45:36 -07:00
Ihar Hrachyshka
c539fa85e3 treewide: remove remaining 'with [a-zA-Z]*lib;' from pkgs
Partial #208242
2026-01-06 20:47:21 -05:00
Ihar Hrachyshka
a269d900c4 treewide: remove remaining meta = with lib; 2025-12-14 15:16:00 -05: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
Yohann Boniface
f8c07a0439 hadoop: fix build with cmake 4 (#449767) 2025-10-25 23:45:43 +00:00
illustris
4244b2e4ee hadoop: fix build with cmake 4 2025-10-25 19:02:00 +05:30
Wolfgang Walther
08b5cabfe4 hadoop: fix meta.position
This was broken because the `recursiveUpdate` in the `meta` block causes
Nix to lose track of `meta.description`'s position.
2025-10-22 21:22:35 +02:00
Sandro
d3afe2db00 hadoop: 3.4.1 -> 3.4.2, use jdk21 (#442660) 2025-10-07 18:30:46 +00:00
illustris
c3c9b51017 hadoop: 3.4.1 -> 3.4.2, use jdk21
- Update hadoop to 3.4.2
- Switch from jdk11 to jdk21
- Add support for lean variant builds
- Replace netstat with ss in tests
2025-10-06 22:03:11 +05:30
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Sigmanificient
91d5ab3ae4 treewide: remove unused rec expressions 2025-03-14 05:15:05 +01:00
illustris
c62ec80d1f hadoop, nixos/hadoop, nixosTests/hadoop: nixfmt 2024-12-14 00:31:48 +05:30
illustris
999e8c7ff0 hadoop: 3.4.0 -> 3.4.1 2024-12-14 00:15:05 +05:30
Silvan Mosberger
4f0dadbf38 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 b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Reno Dakota
52bf1163fa treewide: use getLib when accessing clang / libclang / stdenv.cc.cc
In preparation to eliminate the lib output for the unwrapped clang, use
`lib.getLib` to access the `lib` output.
2024-11-07 10:27:41 +00: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
Peder Bergebakken Sundt
8c8c27bb19 treewide: remove unused inputs 2024-09-18 01:00:07 +02:00
Felix Buehler
45b1650ab0 hadoop: remove 'with lib;' 2024-08-16 16:09:03 +02:00
illustris
e761e8a979 hadoop: init 3.4, drop 3.2 2024-06-24 09:25:57 +05:30
annalee
0d7dc0efc5 treewide: throw on unsupported system src access 2024-04-05 02:30:42 +00:00
illustris
190f3903bb hadoop: remove duplicate finalAttrs
Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
2023-10-21 08:37:13 +05:30
illustris
b1926f189e hadoop: fix build on darwin 2023-10-09 18:49:06 +05:30
illustris
21fa56c145 hadoop: fix eval on darwin 2023-09-24 00:55:42 +05:30
illustris
ef48433398 hadoop: add native libs support in all versions 2023-09-24 00:35:22 +05:30
illustris
1cd3c804bf hadoop, nixos/hadoop: remove untarDir 2023-09-22 16:34:07 +05:30
illustris
9be640a232 hadoop: support native libs on 3.2 2023-09-22 15:34:28 +05:30
illustris
5dfa639d50 hadoop: 3.3.5 -> 3.3.6, build container executor from source 2023-09-22 13:38:53 +05:30
illustris
b31a6e8782 hadoop: 3.3.4 -> 3.3.5 2023-05-22 05:06:25 +05:30
figsoda
ec8cb34358 treewide: fix typos 2022-12-17 19:39:44 -05:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
illustris
5485f678b9 hadoop: 3.3.3 -> 3.3.4, remove outdated protobuf (#193665) 2022-10-02 14:11:29 +02:00
illustris
2e7c1a9f23 hadoop: combine per-platforms into one attrset 2022-08-07 21:21:45 +02:00
illustris
cb2576c1b6 hadoop,hbase: better default for HADOOP_CONF_DIR and HBASE_CONF_DIR
order of precedence:
- env var HADOOP_CONF_DIR for hadoop and HBASE_CONF_DIR for hbase, if set
- /etc/hadoop-conf, if present
- default confs in package
2022-08-07 21:21:45 +02:00
illustris
01ba1ceb0e hadoop: fix failing evaluation on platforms other than x86_64-linux 2022-07-13 23:04:33 +05:30
illustris
136574f2a3 hadoop: security updates 2022-07-01 19:03:35 +05:30
ajs124
a0718341e6 maintainers: remove volth
github account deleted
2022-06-29 00:52:12 +02:00
Robert Scott
3b6bc4b69c treewide: set sourceProvenance for packages containing downloaded jars
these are the easily identifiable cases and will not be comprehensive
2022-06-04 19:47:57 +01:00
illustris
74c684c5b3 hadoop and spark: improve interoperability 2022-04-18 02:02:43 +05:30
illustris
2130653ae2 hadoop: Add support for linux container executor in versions < 3.3 2022-03-11 14:18:44 +05:30
illustris
cc19b949af hadoop: Add Java 8 support for Hadoop 3.2 2022-03-11 14:18:44 +05:30
illustris
799dc66cf1 hadoop: add passthrough tests 2022-03-11 14:18:44 +05:30
Connor Baker
2cf96863d1 hadoop: Minor simplifications to default.nix 2022-02-25 19:19:47 -05:00
Connor Baker
799d7434e2 hadoop: link native libraries on Darwin even though they're not used to simplify expression 2022-02-23 22:53:31 -05:00
Connor Baker
1e5ffe1fc0 hadoop: Consolidate sha256 attrs and add assert for supported platforms 2022-02-14 09:21:28 -05:00
Connor Baker
e752dfc6fb hadoop: Group attrset update to ensure completion before passing to common 2022-02-14 08:20:37 -05:00
Connor Baker
50c8089b28 hadoop: aarch64-linux has native libraries, darwin does not 2022-02-14 08:20:37 -05:00
Connor Baker
d321b39114 hadoop: Make x86_64 settings default and conditionally override 2022-02-14 08:20:37 -05:00