Commit Graph

25 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
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
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
Martino Fontana
ce1a7e5161 shaderc: 2023.8 -> 2024.0 2024-04-20 11:59:25 +02:00
Benjamin Saunders
4620431ce5 shaderc: 2022.4 -> 2023.8 2024-01-14 12:38:50 -08:00
Benjamin Saunders
b03bf9b29e shaderc: 2021.0 -> 2022.4 2022-12-31 15:41:58 -08:00
Weijia Wang
fe3b7c5e9d shaderc: fix glslc on aarch64-darwin 2022-10-15 20:11:28 +02:00
Vladimír Čunát
038edcf9a5
shaderc: fixup paths in .pc files 2022-09-18 20:09:19 +02:00
Ana Hobden
bcb0427773 libtool: add meta.platforms and make cctools Darwin only
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-11-22 09:42:23 -08:00
Ana Hobden
e86fa71ba6 shaderc: include darwin libtool
Signed-off-by: Ana Hobden <operator@hoverbear.org>
2021-11-21 21:02:04 -08:00
Philipp Mildenberger
4769ec74e1 shaderc: 2020.2 -> 2021.0 2021-06-04 15:22:35 +02:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Ben Siraphob
683a87dbeb treewide: remove periods from end of package descriptions 2020-10-17 08:22:31 -07:00
Câju Mihai-Drosi
fab03d3a39 shaderc: 2019.1 -> 2020.2 2020-09-24 08:19:41 +03:00
Benjamin Saunders
3b9d71af2c shaderc: 2019.0 -> 2019.1 2020-02-11 19:11:32 +01:00
volth
46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00
Jan Tojnar
9aa10f05fd
shaderc: remove unneeded CMake flags
Not necessary since https://github.com/NixOS/nixpkgs/pull/52856

Parallel building is enabled by default with CMake.
2019-07-30 20:29:15 +02:00
Benjamin Saunders
f809b6bb00 shaderc: 2018.0 -> 2019.0 2019-06-08 11:56:31 -07:00
adisbladis
32301dbba6
shaderc: git-2018-06-01 -> 2018.0
This is a tagged upstream release
2019-01-19 12:32:54 +00:00
adisbladis
9eb9fd2d9b
shaderc: Add missing meta license 2019-01-19 12:32:53 +00:00
adisbladis
731f0e06b1
shaderc: Turn buildInputs to nativeBuildInputs
These are all build-time only native dependencies
2019-01-19 12:32:52 +00:00
adisbladis
1d55e50fe4
shaderc: Add multiple outputs 2019-01-19 12:32:51 +00:00
Benjamin Saunders
4e1a82c960 shaderc: 2016-09-08 -> 2018-06-01 2018-06-26 20:37:54 -07:00
Rob Vermaas
b7ac21fe0d
shaderc: mark as broken
(cherry picked from commit 2ccdac8c9e)
2017-09-10 12:38:19 +00:00
Benjamin Saunders
d608456005 shaderc-git: init at 2016-09-08 2016-10-12 13:19:34 +01:00