Commit Graph

18 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
Weijia Wang
9bc50feb3b utm: 4.6.2 -> 4.6.3 2024-12-07 03:06:28 +01:00
Weijia Wang
d448e03957 utm: 4.5.4 -> 4.6.2 2024-12-02 19:26:23 +01:00
Weijia Wang
e6b09cd21b utm: format with nixfmt 2024-12-02 17:25:39 +01:00
Audrey Dutcher
2a2670af0a util-linux: fix FreeBSD build
- disable some feature flags
- a needed header is included guarded by __APPLE__. Change it for the
  FreeBSD build.
- the explicit definition of _POSIX_C_SOURCE and _XOPEN_SOURCE to
  rather old versions in-source masks some needed declarations. Remove
  them.
2024-11-19 22:04:22 -07:00
R. Ryantm
78553d1bf1 ut: 2.1.0 -> 2.1.1 2024-11-10 23:19:34 +00: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
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
Sergei Trofimovich
3489a438d4 ut1999: fix library search paths on x86_64-linux
Without the change the game fails to start as it fails to find it's
shared objects as:

    $ NIXPKGS_ALLOW_UNFREE=1 nix build -f. ut1999 && ./result/bin/ut1999
    Object not found: Class Render.Render
    History: UObject::SafeLoadError <- UObject::StaticLoadClass <- UGameEngine::Init <- InitEngine <- main
    Exiting due to error

After the change the game starts without problems.
2024-08-05 22:33:24 +01:00
R. Ryantm
1432699caa ut: 2.0.1 -> 2.1.0 2024-07-24 16:34:40 +00:00
Alexis Hildebrandt
bf995e3641 treewide: Remove ending period from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*".*\.";' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*)\.";/\1";/'
2024-06-09 23:04:51 +02:00
Elian Doran
9c9dc1f366
ut1999: add aarch64_linux support 2024-03-31 19:20:10 +03:00
Elian Doran
e0ff218af8
ut1999: Enable darwin support 2024-03-31 19:20:09 +03:00
Elian Doran
1f047397ab
ut1999: add support for i686-linux 2024-03-31 19:14:30 +03:00
Elian Doran
91797cc880
ut1999: init at 469d 2024-03-04 23:27:59 +02:00
R. Ryantm
e6ce4a3286 ut: 2.0.0 -> 2.0.1 2023-12-24 21:53:07 +00:00
matthewcroughan
2249f4de34 ut: init at 2.0.0
Co-authored-by: Mikael Fangel <34864484+MikaelFangel@users.noreply.github.com>
2023-11-20 21:54:58 +00:00