Commit Graph

152 Commits

Author SHA1 Message Date
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
Christoph Jabs
b1a64efa03 crystal: fix build
`env` cannot contain lists, broken in #488868
2026-02-16 11:35:00 +02:00
Stefan Frijters
0cc8de0e67 crystal: move env variable(s) into env for structuredAttrs 2026-02-09 22:36:47 +01:00
Johannes Müller
f1595bd392 crystal_1_19: init at 1.19.1 2026-01-28 15:42:32 +01:00
Wolfgang Walther
aa7f574386 maintainers: drop manveru
Did not react to maintainer pings since 2024. Dropping according to
maintainer guidelines.
2026-01-10 22:12:03 +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
Johannes Müller
436f350193 Crystal 1.18.2 2025-10-21 21:10:36 +02:00
Johannes Müller
b5012be058 crystal_1_18: init at 1.18.1 2025-10-18 12:05:21 +02:00
Emily
48c2a4e440 crystal_1_11: drop
LLVM 15 is being removed for the 25.11 release.
2025-09-05 00:30:02 +01:00
Emily
886d371ce7 {crystal_1_14,crystal_1_15,crystal_1_16,crystal_1_17}: bump LLVM
See:

* <https://github.com/crystal-lang/crystal/blob/1.14.1/src/llvm/ext/llvm-versions.txt>
* <https://github.com/crystal-lang/crystal/blob/1.15.1/src/llvm/ext/llvm-versions.txt>
* <https://github.com/crystal-lang/crystal/blob/1.16.3/src/llvm/ext/llvm-versions.txt>
* <https://github.com/crystal-lang/crystal/blob/1.17.1/src/llvm/ext/llvm-versions.txt>
2025-09-04 19:37:18 +01:00
Kenichi Kamiya
55038b891c crystal_1_17: init at 1.17.1
Changelog: https://github.com/crystal-lang/crystal/blob/1.17.1/CHANGELOG.md
2025-08-27 22:33:08 +09:00
Kenichi Kamiya
a83b370032 crystal: simplify installPhase as a follow-up to drop crystal_1_2
Workaround added in e3382c257c is unnecessary now,
since dropped crystal_1_2 in fdd64ce404.
2025-08-22 11:42:12 +02:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Kenichi Kamiya
b72ff2f539 crystal: replace hasEpochFile with file existence check
Co-authored-by: Peter H. Hoeg <peter@hoeg.com>
2025-05-22 12:19:55 +00:00
Kenichi Kamiya
554e92840b crystal: set SOURCE_DATE_EPOCH with src/SOURCE_DATE_EPOCH
To fix `crystal --version` displayed timestamp
2025-05-22 12:19:55 +00:00
Johannes Müller
5c1033c306 Update on 1.16.3 2025-05-21 09:29:16 +02:00
Johannes Müller
f304e27192 crystal: 1.16.1 2025-05-21 09:29:16 +02:00
Winter
a19cd4ffb1 Revert "treewide: replace rev with tag"
This reverts commit 65a333600d.

This wasn't tested for correctness with something like fodwatch [0],
and should not have been (self-)merged so quickly, especially without
further review.

It also resulted in the breakage of at least one package [1] (and that's
the one we know of and was caught).

A few packages that were updated in between this commit and this revert
were not reverted back to using `rev`, but other than that, this is a
1:1 revert.

[0]: https://codeberg.org/raphaelr/fodwatch
[1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e458
2025-04-08 02:57:25 -04:00
Pol Dellaiera
65a333600d treewide: replace rev with tag 2025-04-07 16:57:22 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
nixpkgs-ci[bot]
80447868c6 Merge master into staging-next 2025-02-20 00:14:40 +00:00
nixpkgs-ci[bot]
3a870eb511 Merge master into staging-next 2025-02-19 18:04:49 +00:00
Donovan Glover
b7e0543c20 crystal_1_12: drop 2025-02-19 12:44:29 -05:00
Donovan Glover
4c2c01b861 crystal: drop binaryCrystal_1_2 dependency from < 1.10 2025-02-16 19:28:51 -05:00
Donovan Glover
5b0bbb8e83 crystal_1_9: drop 2025-02-16 19:28:50 -05:00
Donovan Glover
3d3c822fce crystal_1_8: drop 2025-02-16 19:28:50 -05:00
Donovan Glover
b19fe47d49 crystal: drop pcre dependency from < 1.8 2025-02-16 19:28:50 -05:00
Donovan Glover
758e3fad7a crystal_1_7: drop 2025-02-16 19:28:50 -05:00
Donovan Glover
fdd64ce404 crystal_1_2: drop 2025-02-16 19:28:45 -05:00
nixpkgs-ci[bot]
d4537b75d3 Merge master into staging-next 2025-02-16 00:16:11 +00:00
Donovan Glover
14dd0e0e6b crystal: remove unused substituteInPlace from < 1.7.0 2025-02-13 07:54:08 -05:00
Donovan Glover
a5456d1c7f crystal: remove unused binaryUrl conditional from < 1.2.0 2025-02-13 07:52:27 -05:00
Donovan Glover
70d2302106 crystal: remove unused ffi flag from < 1.6.1 2025-02-13 07:50:05 -05:00
Donovan Glover
8eee05e8e6 crystal: remove unused patch from < 1.2.0 2025-02-13 07:05:24 -05:00
Wolfgang Walther
b19d0f6d3d treewide: replace substituteAll with replaceVars 2025-02-10 22:51:56 +01:00
misilelab
7debcd8e40 crystal_1_15: init at 1.15.1
Signed-off-by: misilelab <misileminecord@gmail.com>
2025-02-05 09:46:37 +09:00
misilelab
b9e90b542a crystal: 1.14.0 -> 1.14.1
Signed-off-by: misilelab <misileminecord@gmail.com>
2025-01-10 16:15:57 +09:00
Kenichi Kamiya
7ad1c658a7 crystal: prefer installShellCompletion and installManPage 2024-12-06 21:43:17 +09:00
Kenichi Kamiya
e3382c257c crystal: add fish completions
fish completion was introduced in version 1.6.0
so this guard is required, now supporting 1.2.2

98a15ee1ab
2024-12-06 10:25:08 +09:00
Will Leinweber
cafeb37f09 crystal: set doCheck to false for 1.14.0 2024-10-25 12:10:34 +03:00
Will Leinweber
032dbc02de crystal: 1.12.1 -> 1.14.0 2024-10-11 15:30:14 +02:00
Will Leinweber
47c7b06406 crystal: add llvmPackages passthru and use it for crystalline 2024-10-11 14:57:47 +02:00
Will Leinweber
3bdb1b157e crystal: 1.12.0 -> 1.12.1 2024-10-11 14:57:47 +02:00
Will Leinweber
b1380d9828 crystal: 1.11 -> 1.12 2024-10-11 14:57:46 +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
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
sefidel
ec87711e54 crystal: 1.9 -> 1.11
Changes: https://github.com/crystal-lang/crystal/compare/1.9.2...1.11.2
Changelog: https://github.com/crystal-lang/crystal/blob/master/CHANGELOG.md#1112-2024-01-18
2024-03-25 03:54:33 -07:00
Martin Weinelt
3321e63b12 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/sphinx-autobuild/default.nix
2024-03-19 04:00:32 +01:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
a-n-n-a-l-e-e
ce789e7e35 llvmPackages_{12,13,14,15,16,17,git}.{libcxx,libcxxabi}: merge libcxxabi into libcxx (#292043)
- merge libcxxabi into libcxx for LLVM 12, 13, 14, 15, 16, 17, and git.
- remove the link time workaround `-lc++ -lc++abi` from 58 packages as it is no longer required.
- fixes https://github.com/NixOS/nixpkgs/issues/166205
- provides alternative fixes for. https://github.com/NixOS/nixpkgs/issues/269548 https://github.com/NixOS/nix/issues/9640
- pkgsCross.x86_64-freebsd builds work again

This change can be represented in 3 stages
1. merge libcxxabi into libcxx -- files: pkgs/development/compilers/llvm/[12, git]/{libcxx, libcxxabi}
2. update stdenv to account for merge -- files: stdenv.{adapters, cc.wrapper, darwin}
3. remove all references to libcxxabi outside of llvm (about 58 packages modified)

### merging libcxxabi into libcxx
- take the union of the libcxxabi and libcxx cmake flags
- eliminate the libcxx-headers-only package - it was only needed to break libcxx <-> libcxxabi circular dependency
- libcxx.cxxabi is removed. external cxxabi (freebsd) will symlink headers / libs into libcxx.
- darwin will re-export the libcxxabi symbols into libcxx so linking `-lc++` is sufficient.
- linux/freebsd `libc++.so` is a linker script `LINK(libc++.so.1, -lc++abi)` making `-lc++` sufficient.
- libcxx/default.nix [12, 17] are identical except for patches and `LIBCXX_ADDITIONAL_LIBRARIES` (only used in 16+)
- git/libcxx/defaul.nix  does not link with -nostdlib when useLLVM is true so flag is removed. this is not much different than before as libcxxabi used -nostdlib where libcxx did not, so libc was linked in anyway.

### stdenv changes
- darwin bootstrap, remove references to libcxxabi and cxxabi
- cc-wrapper: remove c++ link workaround when libcxx.cxxabi doesn't exist (still exists for LLVM pre 12)
- adapter: update overrideLibcxx to account for a pkgs.stdenv that only has libcxx

### 58 package updates
- remove `NIX_LDFLAGS = "-l${stdenv.cc.libcxx.cxxabi.libName}` as no longer needed
- swift, nodejs_v8 remove libcxxabi references in the clang override

https://github.com/NixOS/nixpkgs/pull/292043
2024-03-11 03:53:37 -07:00