2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-16 09:03:42 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
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
Theodore Ni
ef10762159
atuin: migrate to new darwin SDK pattern 2024-11-07 09:41:56 -08: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
0x4A6F
36c6b2e9a2
atuin: use buildPackages.protobuf 2024-06-18 18:32:18 +02:00
0x4A6F
b79dc362ea
atuin: 18.2.0 -> 18.3.0 2024-06-11 20:35:08 +02:00
Stefan Frijters
b7dd52f329
atuin: only generate completions if program can be executed
https://github.com/NixOS/nixpkgs/pull/289517 will break cross otherwise.
2024-06-03 00:24:03 +02:00
Moritz Sanft
e17fe7b7ea
atuin: 18.1.0 -> 18.2.0 2024-04-16 09:17:22 +02:00
Cody P Schafer
769eb09232
atuin: fix build on x86_64-darwin by updating to apple_sdk_11_0
Otherwise, fails to build with:

```
       >   = note: Undefined symbols for architecture x86_64:
       >             "_kCFURLVolumeAvailableCapacityForImportantUsageKey", referenced from:
       >                 sysinfo::unix:🍎:disk::get_list::h5f0b9b2218314fb0 in libsysinfo-48f55e52227ea9a5.rlib(sysinfo-48f55e52227ea9a5.sysinfo.81d4345a26454b80-cgu.10.rcgu.o)
       >           ld: symbol(s) not found for architecture x86_64
       >           clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
       >
       >
       > error: could not compile `atuin` (bin "atuin") due to 1 previous error
```

See  for a similar fix on another package.
2024-03-14 23:21:49 -04:00
R. Ryantm
7dfe004fa4
atuin: 18.0.2 -> 18.1.0 2024-03-12 16:17:56 +01:00
Sam
238b975dab
atuin: 18.0.1 -> 18.0.2 2024-02-26 10:38:41 -08:00
Dominique Martinet
c74bfa05e2 atuin: backport fix for bash-preexec 2024-02-24 11:58:18 +09:00
Dominique Martinet
5ede2692b7 atuin: disable check-updates feature 2024-02-23 07:35:22 +09:00
0x4A6F
d471567b5c
atuin: 18.0.0 -> 18.0.1 2024-02-13 13:42:43 +01:00
0x4A6F
371e1506ed
atuin: apply 2024-02-10 18:26:05 +01:00
0x4A6F
3b5e4b9d76
atuin: 17.2.1 -> 18.0.0 2024-02-10 16:32:20 +01:00