Commit Graph

9 Commits

Author SHA1 Message Date
Adam Stephens
8d4f3f2b3e
nixos/atticd: init module
Copied from 1b29816235/nixos/atticd.nix and modified
2024-10-13 08:23:34 -04:00
Zhaofeng Li
6a8e1c4c79 attic-client: 0-unstable-2024-10-04 -> 0-unstable-2024-10-06 (1b29816)
61ebdef2e2..1b29816235
2024-10-07 08:48:46 -06:00
Adam Stephens
b173516373
attic-client: 0-unstable-2024-08-19 -> 0-unstable-2024-10-04
acf3c351f8..61ebdef2e2
2024-10-04 16:01:08 -04: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
Jörg Thalheim
85189bee5b attic-client: 0-unstable-2024-08-01 -> 0-unstable-2024-08-19 2024-08-21 20:35:51 +02:00
Alyssa Ross
0973b38266
attic-client,attic-server: 0-unstable-2024-02-08 -> 0-unstable-2024-08-01
Required to build with Rust 1.80[1].

Note: I'm pretty sure the labelling of the previous version as 0.1.0
was a mistake — the commit message referred to an unstable version
rather than 0.1.0, and there's no 0.1.0 tag upstream.

[1]: https://github.com/rust-lang/rust/issues/127343
2024-08-13 12:14:15 +02:00
Julius Michaelis
87e574e110 treewide: rewrite some uses of hostPlatform == buildPlatform to canExecute
This rewrites uses of

stdenv.hostPlatform == stdenv.buildPlatform

to

stdenv.buildPlatform.canExecute stdenv.hostPlatform

when guarding postInstall scripts that use $out/bin/… to generate shell completions
2024-08-04 10:50:48 +09:00
Pol Dellaiera
60a6ba968d
attic-client: remove env attribute
Related to https://github.com/NixOS/nixpkgs/pull/292043
2024-03-26 20:45:10 +01:00
Andrea Ciceri
495613d555
attic: init at unstable-2024-2-8 2024-03-13 22:26:15 +01:00