Commit Graph

12 Commits

Author SHA1 Message Date
Weijia Wang
dde8f50516
bsc: remove axv2 when building on non x86 system (#354473) 2024-11-10 01:52:51 +01:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
wxt
d339f93f32
bsc: remove axv2 when building on non x86 system 2024-11-09 07:01:52 +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
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
Orivej Desh
86b74d682a bs2b-lv2: init at 1.1.1 2024-09-13 12:22:22 +00:00
Anderson Torres
70a9ac30ed bsd-finger: adopt and refactor
- migrate to by-name
- convert to finalAttrs design pattern
- get rid of fetchDebianPatch
- set mainProgram according to buildProduct
- deprecate buildClient
- nixfmt-rfc-style
- adopted by AndersonTorres
2024-07-29 23:22:01 -03:00
Peder Bergebakken Sundt
817b5bc3c0
Merge pull request #327006 from Sigmanificient/bsc
bsc: add sigmanificient to maintainers, 3.1.0 -> 3.3.4, migrate to by-name, modernize
2024-07-28 21:59:08 +02:00
Sigmanificient
4f38c82774 bsc: migrate to by-name 2024-07-25 18:40:24 +02:00
Sigmanificient
512e8afdb9 treewide: remove unused occurence of stdenv (and other) arguments
format (will squash)
2024-07-14 04:32:56 +02:00
Keenan Weaver
bb24ed2abe
bstone: init at 1.2.12 2024-04-05 12:53:51 -05:00
Dietmar Winkler
81d9d36ea9 bsync: init at unstable-2023-12-21
No release so using unstable-DATE convention for version
2024-01-19 19:38:43 +01:00