Commit Graph

11 Commits

Author SHA1 Message Date
Nick Cao
15d1616436
snagboot: modernize 2025-02-03 18:30:20 -05:00
R. Ryantm
504917d789 snagboot: 1.3 -> 2.1 2025-02-02 07:18:16 +00: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 a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +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
Martin Weinelt
abdf5dc772
treewide: remove pythonRelaxDepsHook references
It is is now provided automatically, when `pythonRelaxDeps` or
`pythonRemoveDeps` is defined through `mk-python-derivation`.
2024-06-14 14:52:00 +02:00
Otavio Salvador
a2f4aa4073 snagboot: 1.2 -> 1.3
Dropped hid[1] from nativeBuildInputs. Thanks for @natsukium reporting
this required change.

1. bb767fee22

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2024-02-27 08:29:03 -03:00
Otavio Salvador
0ee02d5b42 snagboot: move passthru before meta
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-09-21 08:16:55 -03:00
Otavio Salvador
55f434b1d4 snagboot: 1.1 -> 1.2
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-09-21 08:16:55 -03:00
Otavio Salvador
9d905447da snagboot: 1.0 -> 1.1
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-06-20 12:55:41 -03:00
Otavio Salvador
2d3e77efa8 snagboot: replace fetchPypi with fetchFromGitHub
The development and release is at GitHub so I'd prefer to use it and
keep my workflow for updating more standard. No changes other then that.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-05-31 20:22:26 -03:00
Otavio Salvador
4c1fb21f84 snagboot: init at 1.0
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2023-05-30 12:25:20 +00:00