Commit Graph

32 Commits

Author SHA1 Message Date
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
R. Ryantm
9faa0bfa97 c2patool: 0.9.9 -> 0.9.10 2024-10-08 00:51:02 +00: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
R. Ryantm
0439e80308 c2patool: 0.9.8 -> 0.9.9 2024-09-18 01:30:24 +00: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
R. Ryantm
11ba04074e c2patool: 0.9.7 -> 0.9.8 2024-08-31 00:27:27 +00:00
R. Ryantm
bcf00b220d c2patool: 0.9.6 -> 0.9.7 2024-08-16 00:30:00 +00:00
R. Ryantm
4cd3b78b82 c2fmzq: 0.4.21 -> 0.4.22 2024-08-08 00:34:18 +00:00
R. Ryantm
d221eafeb2 c2patool: 0.9.5 -> 0.9.6 2024-08-01 05:34:14 +00:00
R. Ryantm
f791d2f99e c2patool: 0.9.4 -> 0.9.5 2024-07-19 02:06:11 +00:00
éclairevoyant
0e5c272e42
treewide: fix uses of repo = finalAttrs.pname 2024-07-12 20:18:43 -04:00
R. Ryantm
63dc836272 c2fmzq: 0.4.20 -> 0.4.21 2024-07-03 03:55:23 +00:00
R. Ryantm
e8f559ab64 c2patool: 0.9.3 -> 0.9.4 2024-06-26 00:29:10 +00:00
R. Ryantm
419faf6bbc c2patool: 0.9.2 -> 0.9.3 2024-06-05 07:23:21 +00:00
R. Ryantm
4d0b04ed41 c2patool: 0.9.1 -> 0.9.2 2024-05-29 03:12:17 +00:00
R. Ryantm
4a2f2c7754 c2patool: 0.9.0 -> 0.9.1 2024-05-23 01:27:23 +00:00
Aleksana
44a4040382
Merge pull request #310003 from ok-nick/c2patool
c2patool: 0.8.2 -> 0.9.0
2024-05-19 13:33:23 +08:00
R. Ryantm
955b51876e c2fmzq: 0.4.19 -> 0.4.20 2024-05-10 00:44:41 +00:00
ok-nick
1b897f8741
c2patool: 0.8.2 -> 0.9.0 2024-05-07 21:59:36 -04:00
Sandro
a76c4553d7
Merge pull request #292020 from ok-nick/c2patool 2024-04-09 14:34:47 +02:00
R. Ryantm
5f78f97252 c2fmzq: 0.4.18 -> 0.4.19 2024-04-04 15:21:24 +00:00
ok-nick
1ea6485c10
c2patool: init at 0.8.2 2024-04-02 22:30:43 -04:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00
Yueh-Shun Li
91b3db1309 treewide: fix sourceRoot for fetchgit-based src
According to Nixpkgs manual[1] and NixOS 23.11 Release Note[2], the
`sourceRoot` attribute passed to `stdenv.mkDerivation` should be
specified as `"${src.name}"` or `"${src.name}/subdir"` when `src` is
produced using `fetchgit`-based fetchers.

`sourceRoot = "source"` or `sourceRoot = "source/subdir"` is based on
the assumption that the `name` attribute of these pre-unpacked fetchers
are always `"source"`, which is not the case. Expecting constant `name`
also makes the source FODs prone to irrelevent hashes during version
bumps.

[1]: https://nixos.org/manual/nixpkgs/unstable/#var-stdenv-sourceRoot
[2]: https://nixos.org/manual/nixos/stable/release-notes#sec-release-23.11
2024-03-09 07:53:25 +08:00
R. Ryantm
7bd7a27f2b c2fmzq: 0.4.17 -> 0.4.18 2024-01-28 13:55:17 +00:00
R. Ryantm
60b6d5ff92 c2fmzq: 0.4.16 -> 0.4.17 2023-12-31 05:52:08 +00:00
R. Ryantm
c4b20bb40e c2fmzq: 0.4.15 -> 0.4.16 2023-12-25 12:31:28 +00:00
R. Ryantm
97fccdce1e c2fmzq: 0.4.9 -> 0.4.15 2023-12-13 11:54:15 +00:00
Emery Hemingway
6df86cc655 c2nim: move out of nimPackages 2023-11-28 16:48:10 +02:00
R. Ryantm
bc62d817b5 c2fmzq: 0.4.8 -> 0.4.9 2023-10-27 13:45:00 +00:00
Henri Menke
6a874bbdbc
nixos/c2fmzq-server: add test
Co-authored-by: h7x4 <h7x4@nani.wtf>
2023-10-26 17:27:53 +02:00
Henri Menke
356a40ad14
c2FmZQ: init at 0.4.8
Co-authored-by: h7x4 <h7x4@nani.wtf>
2023-10-26 17:27:50 +02:00