Commit Graph

33 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
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
Jan Tojnar
b8f3c78021
Merge pull request #333917 from jtojnar/gnome-top-level
gnome: Move more packages to top-level
2024-08-24 01:43:31 +02:00
Jan Tojnar
8c4f0fc73e hitori: Move from gnome scope to top-level 2024-08-12 00:29:06 +02:00
Colin
f9df9508f4 hickory-dns: rename from trust-dns 2024-08-11 07:59:32 +00: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
Jörg Thalheim
5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00
aleksana
1862813d11 treewide: convert cargoSha256 to cargoHash
This is done with the following bash script:

```
#!/usr/bin/env bash
process_line() {
    local filename=${1%:}
    if [[ $4 =~ \"(.*)\"\; ]]; then
      local sha256="${BASH_REMATCH[1]}"
    fi
    [[ -z $sha256 ]] && return 0
    local hash=$(nix hash to-sri --type sha256 $sha256)
    echo "Processing: $filename"
    echo "  $sha256 => $hash"
    sed -i "s|cargoSha256 = \"$sha256\"|cargoHash = \"$hash\"|"
$filename
}

# split output by line
grep -r 'cargoSha256 = ' . | while IFS= read -r line; do
    # split them further by space
    read -r -a parts <<< "$line"
    process_line "${parts[@]}"
done

```
2024-07-03 21:54:10 +08:00
Nick Cao
c3e5bd3cc3
Merge pull request #323922 from r-ryantm/auto-update/highs
highs: 1.7.1 -> 1.7.2
2024-07-02 16:32:12 -04:00
fly
d332243360 maintainers: remove nayala
Signed-off-by: fly <merspieler@alwaysdata.net>
2024-07-02 14:07:53 +02:00
R. Ryantm
65f7019e4f highs: 1.7.1 -> 1.7.2 2024-07-02 01:29:11 +00:00
YMSTNT
18e68bffae hifile: 0.9.9.12 -> 0.9.9.13
https://www.hifile.app/changelog
2024-06-21 20:53:40 +02:00
R. Ryantm
8370411eea highs: 1.7.0 -> 1.7.1 2024-06-11 14:14:41 +00:00
Alexis Hildebrandt
755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02: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
Pol Dellaiera
2d714285a5
Merge pull request #312321 from DCsunset/highlight-pointer-init
highlight-pointer: init at 1.1.3
2024-06-04 17:54:20 +02:00
DCsunset
f5bef14d31 highlight-pointer: init at 1.1.3 2024-06-02 10:00:23 -04:00
Nick Cao
b4c5757e84
Merge pull request #314960 from YMSTNT/update-hifile
hifile: 0.9.9.11 -> 0.9.9.12
2024-05-27 10:47:16 -04:00
YMSTNT
37eb521827 hifile: 0.9.9.11 -> 0.9.9.12
https://www.hifile.app/changelog
2024-05-27 00:33:31 +02:00
Dawid Dziurla
b18b35e105
hieroglyphic: 1.0.1 -> 1.1.0 2024-05-23 20:25:39 +02:00
TomaSajt
a2bd19b1d4
hieroglypic: fix darwin build 2024-05-05 19:47:59 +02:00
TomaSajt
defd278422
hieroglyphic: init at 1.0.1 2024-05-02 23:43:28 +02:00
Peder Bergebakken Sundt
985aa8174d treewide: unbreak appimageTools.wrapType2 builds
`appimageTools.wrapType2` no longer creates a binary `$out/bin/${name}` if `pname` and `version` is provided.
Derivations that have worked around this behavior with a `mv $out/bin/{${name},${pname}}` broke as a result.
This should fix most instances.

contex: #271071
2024-04-24 15:26:52 +02:00
Clément DOUIN
36fbcec3e0
himalaya: 1.0.0-beta.3 -> 1.0.0-beta.4 2024-04-18 08:41:06 +02:00
YMSTNT
4dd2f42dc9 hifile: 0.9.9.10 -> 0.9.9.11
https://www.hifile.app/changelog
2024-04-14 23:16:08 +02:00
fly
d3992ec28b hidviz: Init at 0.2
Signed-off-by: fly <merspieler@alwaysdata.com>
2024-04-13 04:25:28 +02:00
DontEatOreo
5f2048626a
hidden-bar: init at 1.9 2024-04-06 15:38:55 +03:00
Cabia Rangris
936ae679c9
hifiscan: init at 1.5.2 (#285560) 2024-03-21 14:59:34 +04:00
silky
ca4d07071f add the 'HiGHS' solver for linear programs 2024-03-12 22:57:50 +00:00
YMSTNT
fc4e4aa747 hifile: 0.9.9.7 -> 0.9.9.10
https://www.hifile.app/changelog
2024-01-15 15:01:05 +01:00
YMSTNT
7dec18cf66 hifile: 0.9.9.6 -> 0.9.9.7
https://www.hifile.app/changelog
2023-12-26 13:27:48 +01:00
YMSTNT
56bcfa3325 hifile: 0.9.9.5 -> 0.9.9.6
https://www.hifile.app/changelog
2023-11-19 00:00:01 +01:00
YMSTNT
f32cdb9e84 hifile: init at 0.9.9.5 2023-10-20 18:35:32 +02:00