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
Peter H. Hoeg
5178c2525f
crystal.buildCrystalPackage: fix {pre,post}InstallCheck skips
...
This then broke things like `versionCheckHook` and anything else that
injects itself into the `preInstallCheck` phase.
2026-06-05 08:09:35 +01:00
Peter Hoeg
2c6f1ffebf
crystal.buildCrystalPackage: fix installCheckPhase glob pattern ( #477878 )
2026-06-01 06:55:53 +00:00
Peter H. Hoeg
05f00b2fde
buildCrystalPackage: fix env overrides
...
Passing variables through `env` was broken for 2 reasons:
1. due to missing parens, no merging of `env` would take place, and
2. it was impossible to override defaults due to the order
2026-03-29 21:07:47 +02:00
Luna Simons
921a535cf0
buildCrystalPackage: pass env variable(s) down from args
2026-03-10 09:40:37 +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
Stefan Frijters
8908beaf74
buildCrystalPackage: move env variable(s) into env for structuredAttrs
2026-02-09 22:36:21 +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
david amick
c2ba8dc072
crystal.buildCrystalPackage: fix installCheckPhase glob pattern
...
The installCheckPhase uses `[ $f == $out/bin/*.dwarf ]` to skip .dwarf
files, but when no .dwarf files exist, the glob doesn't expand and bash's
`[` builtin fails with "unary operator expected".
Switch to `[[ ]]` which handles glob patterns correctly without expansion.
2026-01-07 13:34:22 -08: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
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
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](https://github.com/NixOS/nixpkgs/tree/8616af08d915377bd930395f3b700a0e93d08728/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
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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a094368
result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01: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
https://github.com/crystal-lang/crystal/commit/98a15ee1ab90c2590d43529ea527c6ffc0ce318d
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