Commit Graph

299 Commits

Author SHA1 Message Date
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
03c0a80f39
disko: depend on nixos-install directly (#342320) 2024-09-21 14:42:58 +02:00
Nick Cao
0323d94d30
nix-update: 1.5.1 -> 1.5.2 (#343061) 2024-09-20 18:14:55 -04:00
nixpkgs-merge-bot[bot]
e07ea4030c
nixos-anywhere: 1.3.0 -> 1.4.0 (#343284) 2024-09-20 17:27:47 +00:00
Jörg Thalheim
0f6ced7fef nixos-install: add meta 2024-09-20 19:04:19 +02:00
Jörg Thalheim
95d652982d nix-enter: add meta 2024-09-20 19:04:18 +02:00
Arian van Putten
599bc0348c
nix-store-veritysetup-generator: init at 0.1.0 (#343288) 2024-09-20 19:02:28 +02:00
R. Ryantm
0d78a8539e nixos-anywhere: 1.3.0 -> 1.4.0 2024-09-20 15:02:50 +00:00
nikstur
6fe973349d nix-store-veritysetup-generator: init at 0.1.0 2024-09-20 15:04:20 +02:00
Jörg Thalheim
4cf4459eb6 nixos-enter: set PATH
otherwise util-linux may be missing.
2024-09-20 11:38:35 +02:00
K900
51b47621ac nixos-install: move to pkgs/by-name 2024-09-20 08:44:37 +03:00
K900
825f6ffa9e nixos-enter: move to pkgs/by-name 2024-09-20 08:44:37 +03:00
K900
8353a681b5 nixos-build-vms: move to pkgs/by-name 2024-09-20 08:44:36 +03:00
Peder Bergebakken Sundt
4cb69aeea6 nix-update: 1.5.1 -> 1.5.2
Changelog: https://github.com/Mic92/nix-update/releases/tag/1.5.2
2024-09-19 18:13:24 +02:00
Sandro Jäckel
0fd46573ba
nix-ld: fix hash after #342540 2024-09-18 18:26:50 +02:00
Jörg Thalheim
e795e939aa
nix-ld: use pname+version (#342540) 2024-09-18 15:48:42 +02:00
Anderson Torres
d5137d4d2e nix-update: nativeBuildInputs -> build-system 2024-09-17 17:03:49 -03:00
Anderson Torres
ca641eb04b nix-update-script: nixfmt-rfc-style 2024-09-17 16:49:04 -03:00
Anderson Torres
f19ef08998 nix-update: get rid of rec
So that nix-update-script can refer to nix-update itself.
2024-09-17 16:49:04 -03:00
Anderson Torres
23c316282e nix-update-script: migrate to nix-update package 2024-09-17 16:49:04 -03:00
Anderson Torres
9fb83eb131 nix-update: refactor
- use python3Packages
  - because splicing
- be more explicit
  - do not use pname as parameter
  - meta.homepage
- checkPhase -> installCheckPhase
- no nested with
- no platforms.all
  - because Python is not in all platforms
2024-09-17 16:49:04 -03:00
Sandro
1de6e89701
nix-ld: use pname+version 2024-09-17 15:26:50 +02:00
nicoo
2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00
Jörg Thalheim
b9c12ca51b
nixos-facter: init at 0.1.0 (#341603) 2024-09-14 20:40:53 +02:00
Jörg Thalheim
5a6db3bc93
pkgs/by-name/ni/nixos-facter: limit to linux
Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
2024-09-14 18:01:19 +02:00
Brian McGee
36e9dc5e56
nixos-facter: init at 0.1.0 2024-09-14 14:20:08 +01:00
sodiboo
2e579bc571 niri: 0.1.8 -> 0.1.9 2024-09-14 14:48:00 +02:00
Aleksana
a08c1a57c6
nix-weather: 0.0.3 -> 0.0.4 (#341488) 2024-09-13 17:02:18 +08:00
Christina Sørensen
9a64284ea4
nix-weather: 0.0.3 -> 0.0.4
changelog: https://git.fem.gg/cafkafk/nix-weather/releases/tag/v0.0.4

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
2024-09-13 07:27:22 +02:00
Yann Hamdaoui
9edb0cd23a
nickel: 1.7.0 -> 1.8.0 2024-09-12 16:39:08 +02:00
Weijia Wang
6aedbdeb50
nitrokey-trng-rs232-firmware: init at 1.0.0 (#337966) 2024-09-12 13:01:02 +02:00
Weijia Wang
e1be01cd06
nitrokey-start-firmware: init at 13 (#337956) 2024-09-12 13:00:43 +02:00
Enric Morales
c10401fd38 nitrokey-trng-rs232-firmware: init at 1.0.0
Co-authored-by: Simon Bruder <simon@sbruder.de>
Co-authored-by: Abdullah Imad <me@imad.nyc>
Co-authored-by: Alberto Merino <amerinor01@gmail.com>
Co-authored-by: Enric Morales <me@enric.me>
Co-authored-by: Jack Leightcap <jack@leightcap.com>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
2024-09-11 14:22:27 +02:00
Enric Morales
67c19cf1f7 nitrokey-start-firmware: init at 13
Co-authored-by: Simon Bruder <simon@sbruder.de>
Co-authored-by: Abdullah Imad <me@imad.nyc>
Co-authored-by: Alberto Merino <amerinor01@gmail.com>
Co-authored-by: Enric Morales <me@enric.me>
Co-authored-by: Jack Leightcap <jack@leightcap.com>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
2024-09-11 14:20:48 +02:00
Weijia Wang
b39e02672a
nitrokey-fido2-firmware: init at 2.4.1 (#337951) 2024-09-10 16:21:18 +02:00
Weijia Wang
5e31c60ac0
nitrokey-pro-firmware: init at 0.15 (#337954) 2024-09-10 16:17:28 +02:00
Enric Morales
77693ec7c3 nitrokey-fido2-firmware: init at 2.4.1
Co-authored-by: Simon Bruder <simon@sbruder.de>
Co-authored-by: Abdullah Imad <me@imad.nyc>
Co-authored-by: Alberto Merino <amerinor01@gmail.com>
Co-authored-by: Enric Morales <me@enric.me>
Co-authored-by: Jack Leightcap <jack@leightcap.com>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
2024-09-10 12:14:00 +02:00
Enric Morales
f5d40dac12 nitrokey-pro-firmware: init at 0.15
Co-authored-by: Simon Bruder <simon@sbruder.de>
Co-authored-by: Abdullah Imad <me@imad.nyc>
Co-authored-by: Alberto Merino <amerinor01@gmail.com>
Co-authored-by: Enric Morales <me@enric.me>
Co-authored-by: Jack Leightcap <jack@leightcap.com>
Co-authored-by: Roland Coeurjoly <rolandcoeurjoly@gmail.com>
2024-09-10 12:10:55 +02:00
Sandro
b2d984eb0e
nix-plugin-pijul: init at 0.1.4 (#298698) 2024-09-10 10:40:17 +02:00
Marco Rebhan
7f17e857c2
nix-plugin-pijul: init at 0.1.4 2024-09-09 14:16:53 +02:00
github-actions[bot]
f2b767ea43
Merge master into staging-next 2024-09-09 00:14:38 +00:00
Weijia Wang
726bf7d776
nix-weather: init at 0.0.3 (#340518) 2024-09-09 00:05:55 +02:00
Christina Sørensen
227afc48a2
nix-weather: init at 0.0.3
Changelog: https://git.fem.gg/cafkafk/nix-weather/releases/tag/v0.0.3 https://git.fem.gg/cafkafk/nix-weather/releases/tag/v0.0.2

Signed-off-by: Christina Sørensen <christina@cafkafk.com>
Co-authored-by: Freya Arbjerg <freya@arbjerg.dev>
2024-09-08 22:18:21 +02:00
github-actions[bot]
6802206bcc
Merge master into staging-next 2024-09-06 06:04:31 +00:00
Adam C. Stephens
7dc79083ac
nix-direnv: 3.0.5 -> 3.0.6 (#339358) 2024-09-05 22:03:46 -04:00
github-actions[bot]
769b11176d
Merge master into staging-next 2024-09-05 18:03:49 +00:00
Peder Bergebakken Sundt
450e2db389
nimlangserver: 1.2.0 -> 1.4.0 (#336168) 2024-09-05 11:12:45 -04:00
Rebecca Turner
ea8ab50f9e
nix-direnv: Update resholve solutions from upstream
Upstream recently changed their resholve solutions somewhat to support
using the ambient Nix on the user's `$PATH` or falling back to the
default nixpkgs stable `nix` otherwise. Let's update our definitions to
match.

See: https://github.com/nix-community/nix-direnv/pull/513
2024-09-04 11:19:09 -07:00
github-actions[bot]
4be617cf77
Merge master into staging-next 2024-09-04 12:06:17 +00:00
R. Ryantm
89eb4f5142 nix-update: 1.5.0 -> 1.5.1 2024-09-04 07:03:36 +00:00