Commit Graph

33 Commits

Author SHA1 Message Date
pinage404
dec6da05c5 cook-cli: try to update NPM dependencies automatically 2026-08-11 15:17:49 +02:00
pinage404
73be7158f0 cook-cli: 0.32.1 -> 0.33.0
Diff: https://github.com/cooklang/cookcli/compare/v0.32.1...v0.33.0

Changelog: https://github.com/cooklang/cookcli/releases/tag/v0.33.0

Automatic update was failing with the `npmDepsHash` https://nixpkgs-update-logs.nix-community.org/cook-cli/2026-08-10.log
2026-08-11 14:57:11 +02:00
pinage404
13fca2beb8 cook-cli: add a maintainer 2026-08-11 14:45:52 +02:00
R. Ryantm
2e64b7222e cook-cli: 0.32.0 -> 0.32.1 2026-06-27 14:50:28 +00:00
ginkogruen
7748880dfb cook-cli: 0.31.0 -> 0.32.0
Package update.
Changelog: https://github.com/cooklang/cookcli/releases/tag/v0.32.0
2026-06-18 22:13:36 +02:00
pinage404
4f6211f6dc cook-cli: 0.30.0 -> 0.31.0
Diff: https://github.com/cooklang/cookcli/compare/v0.30.0...v0.31.0

Changelog: https://github.com/cooklang/cookcli/releases/tag/v0.31.0
2026-06-09 15:35:58 +02:00
Martynas Mickevičius
027f1a475d cook-cli: build js during preBuild
Otherwise editor.bundle.js is not included in the package and the
web editor does not load in the cook-cli webserver.
2026-06-03 16:38:22 +03:00
R. Ryantm
f638ad005d cook-cli: 0.29.1 -> 0.30.0 2026-05-18 22:04:04 +00:00
Martynas Mickevičius
a01bd62d1d cook-cli: 0.27.1 -> 0.29.1 2026-04-30 10:52:33 +03:00
R. Ryantm
8bbaeab27d cook-cli: 0.27.0 -> 0.27.1 2026-04-02 04:51:19 +00:00
R. Ryantm
0d8271b2ec cook-cli: 0.26.0 -> 0.27.0 2026-03-23 21:00:08 +00:00
R. Ryantm
7a35fd886d cook-cli: 0.24.0 -> 0.26.0 2026-03-11 14:53:39 +00:00
pinage404
929dc7c9d7 cook-cli: 0.20.0 -> 0.24.0 2026-03-05 13:59:30 +01:00
quantenzitrone
d26a1a9e5e various: switch buildRustPackage packages to use finalAttrs
this shouldn't create any rebuilds

the following script was used to generate this:
```fish
#!/usr/bin/env fish

# nix shell .#nixfmt nixpkgs#{nixf-diagnose,ripgrep,sd}

set base (git rev-parse HEAD)

set scope pkgs/by-name
set builder buildRustPackage

set files (rg --files-with-matches -F "$builder rec {" $scope | sort -u)

for file in $files
    echo $file
    sd -F "$builder rec {" "$builder (finalAttrs: {" $file
    # version
    sd -F 'version}' 'finalAttrs.version}' $file
    sd -F '${version' '${finalAttrs.version' $file
    sd -F '= version' '= finalAttrs.version' $file
    sd -F 'inherit version;' 'inherit (finalAttrs) version;' $file
    sd -F ' + version;' ' + finalAttrs.version;' $file
    sd 'replaceStrings (.*) version' 'replaceStrings $1 finalAttrs.version' $file
    sd -F 'splitVersion version' 'splitVersion finalAttrs.version' $file
    sd -F 'versionAtLeast version' 'versionAtLeast finalAttrs.version' $file
    sd 'versions\.([a-z]+) version' 'versions.$1 finalAttrs.version' $file
    # src
    sd -F 'src}' 'finalAttrs.src}' $file
    sd -F '${src' '${finalAttrs.src' $file
    sd -F '= src' '= finalAttrs.src' $file
    sd -F 'inherit src;' 'inherit (finalAttrs) src;' $file
    sd -F 'inherit (src' 'inherit (finalAttrs.src' $file
    # meta
    sd -F '${meta' '${finalAttrs.meta' $file
    sd -F '= meta' '= finalAttrs.meta' $file
    sd -F 'inherit (meta' 'inherit (finalAttrs.meta' $file
    # other
    sd -F 'inherit version src;' 'inherit (finalAttrs) version src;' $file
    sd -F 'inherit src version;' 'inherit (finalAttrs) src version;' $file
    sd -F 'makeLibraryPath buildInputs' 'makeLibraryPath finalAttrs.buildInputs' $file
    sd -F 'buildInputs}' 'finalAttrs.buildInputs}' $file
    sd -F 'desktopItem}' 'finalAttrs.desktopItem}' $file
    sd -F 'runtimeLibs}' 'finalAttrs.runtimeLibs}' $file
    sd -F 'libPath}' 'finalAttrs.libPath}' $file
    sd -F 'runtimeDependencies}' 'finalAttrs.runtimeDependencies}' $file
    sd -F 'nativeRuntimeInputs}' 'finalAttrs.nativeRuntimeInputs}' $file
    sd -F '(!doCheck)' '(!finalAttrs.doCheck)' $file
    sd -F 'optional doCheck' 'optional finalAttrs.doCheck' $file
    sd -F 'optionals doCheck' 'optionals finalAttrs.doCheck' $file
    sd -F '++ runtimeDependencies' '++ finalAttrs.runtimeDependencies' $file
    # pname (restored afterwards)
    sd -F 'pname}' 'finalAttrs.pname}' $file
    sd -F '${pname' '${finalAttrs.pname' $file
    sd -F '= pname' '= finalAttrs.pname' $file
    # close finalAttrs lambda
    echo ')' >>$file
    # catch some errors early
    if ! nixfmt $file
        git restore $file
        continue
    end
    if ! nixf-diagnose -i sema-primop-overridden $file
        git restore $file
        continue
    end
end

set torestore (rg -F .finalAttrs --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end
set torestore (rg -F finalAttrs.pname --files-with-matches $scope)
if test (count $torestore) -gt 0
    git restore $torestore
end

# commit for faster eval times
git add pkgs
git commit --no-gpg-sign -m temp
set torestore

for file in $files
    # file hasn't changed
    if git diff --quiet $base $file
        continue
    end
    # try to eval the package to definitely catch all errors
    echo $file
    set pname (string split / $file -f 4)
    if ! nix eval .#$pname
        set torestore $torestore $file
    end
end

# restore files that don't eval
git reset --soft $base
git restore --staged .
if test (count $torestore) -gt 0
    git restore $torestore
end
```

after that some manual cleanup was done:
- restoring files that cause changes in the number of lines
- restoring files that cause rebuilds
- restoring files that cause merge conflicts with staging
2026-02-07 09:53:17 +01:00
R. Ryantm
c058b4b210 cook-cli: 0.19.3 -> 0.20.0 2026-01-18 20:43:47 +00:00
R. Ryantm
760ee199c7 cook-cli: 0.19.2 -> 0.19.3 2026-01-08 22:57:37 +00:00
R. Ryantm
9b81a72448 cook-cli: 0.19.1 -> 0.19.2 2026-01-02 19:51:49 +00:00
Stefan Frijters
799473abc8 cook-cli: prepare for structuredAttrs by moving OPENSSL_NO_VENDOR into env 2025-12-30 22:53:30 +01:00
R. Ryantm
f0d6966636 cook-cli: 0.19.0 -> 0.19.1 2025-12-27 20:35:37 +00:00
R. Ryantm
c0cdd55867 cook-cli: 0.18.2 -> 0.19.0 2025-11-28 20:37:52 +00:00
R. Ryantm
0a35934a68 cook-cli: 0.18.1 -> 0.18.2 2025-10-19 20:37:34 +00:00
ginkogruen
b1b148584a cook-cli: 0.14.0 -> 0.18.1
Update in reference to this release of cook-cli:
https://github.com/cooklang/cookcli/releases/tag/v0.18.1

In comparison with the previous release cook-cli did undergo a rewrite
which lead to changes in packaging.
2025-09-29 11:26:21 +02:00
Alex Withrow
844718737e cook-cli: 0.12.1 -> 0.14.0
https://github.com/cooklang/cookcli/releases/tag/v0.14.0
2025-08-09 12:31:38 -06:00
kilianar
e32f07b6e1 cook-cli: 0.10.0 -> 0.12.1
https://github.com/cooklang/cookcli/releases/tag/v0.12.1
2025-05-25 16:22:52 +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
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
Emilio Ziniades
a0fdba4084 cook-cli: 0.7.1 -> 0.10.0 2025-03-19 14:37:45 +01:00
Alyssa Ross
63bff8c132 treewide: migrate to fetchCargoVendor, batch 1
Cargo 1.84.0 seems to have changed the output format of cargo vendor
again, once again invalidating fetchCargoTarball FOD hashes.  It's
time to fix this once and for all, switching across the board to
fetchCargoVendor, which is not dependent on cargo vendor's output
format.

It should be possible to reproduce this diff.  To do so, get the list
of files changed by this commit, e.g. with git diff --name-only, then
run the following two commands, each with that list of files as their
standard input:

	xargs sed -i 's/^\(. *\)\(cargoHash\)\b/\1useFetchCargoVendor = true;\n\1cargoHash/'
	cut -d / -f 4 | xargs -n 1 nix-update --version=skip

This will take a long time.  It might be possible to parallelize it
using xargs' -P option.  I haven't tested it.
2025-01-23 11:46:43 +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
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
Emilio Ziniades
c4ff7f4c16 cook-cli: init at 0.7.1 2024-01-29 18:38:02 +02:00