Commit Graph

60 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
Sigmanificient
63d05d989e pkgs/development: remove unused arguments 2024-08-03 17:18:20 +02:00
Tobias Mayer
50c332ebd9
rapidjson: 1.1.0 -> unstable-2024-04-09, rapidjson-unstable: drop
The last oficial release of rapidjson is 8 years old, development has
continued without releases since then. The old version is affected
by CVE-2024-38517.

https://www.opencve.io/cve/CVE-2024-38517
2024-07-28 17:13:22 +02:00
Sigmanificient
543cd40ecc treewide: remove trailing space in description
Done using `grep -rP 'description\s+=\s+"[^"]+[ ]";' | cut -d ':' -f 1 |
xargs -i nvim {}` and sorting the opened files by hand, avoiding
generated packages list
2024-07-26 03:38:50 +02:00
Dennis Wuitz
4542cc7e33 treewide: remove openai-triton (alias) references
The repository moved out of the openai org, so it doesn't make sense to
prefix the package with it.

(cherry picked from commit af13bb4513647eec3c3790c5272dbd4aa190d208)
2024-07-23 12:11:29 +00:00
Austin Horstman
3701a7a354
rocmPackages_5.llvm: python 3.12 fix 2024-07-10 08:32:55 -05:00
github-actions[bot]
42ca786b66
Merge master into staging-next 2024-06-24 18:00:57 +00:00
Emily
fbda1dbfd6 treewide: replace freeglut with libglut
Allow the macOS GLUT framework to be used automatically in many
cases. Packages that specifically search for freeglut or require its
additional APIs should still explicitly depend on it.

Deliberately skip the Haskell package set, which is mostly
automatically generated, and mupdf, which has its own fork of freeglut.
2024-06-22 18:06:51 +01:00
Ryan Hendrickson
58fab37168 rocmPackages_5.clr: patch ICD vendor path 2024-06-08 17:49:02 -04:00
Philip Taron
67f368f3a8
rocm5: use elfutils instead of unmaintained libelf 2024-05-13 09:37:48 -07:00
Gavin Zhao
da7ab26875
rocmPackages: use CMake 3.9.2 when building clr
Signed-off-by: Gavin Zhao <git@gzgz.dev>
2024-04-23 16:24:48 -04:00
Ulrik Strid
20a3a21814
Merge pull request #300257 from mschwaig/fix-mivisionx
rocmPackages_5.mivisionx: fix build
2024-04-15 12:15:48 +02:00
Martin Schwaighofer
4ffd610a37 rocmPackages_6.mivisionx: remove duplicate patches 2024-04-04 00:27:40 +02:00
Martin Schwaighofer
c3157ea4aa rocmPackages_5.mivisionx: add __STDC_CONSTANT_MACROS to fix build 2024-04-04 00:25:31 +02:00
Martin Schwaighofer
65b9c40639 rocmPackages_5.mivisionx: patch libjpeg-turbo
MIVisionX needs as specific older version of libjpeg-turbo.
The more recent version that is in nixpgks now is built
with a completely different set of patches, so I have resurreced the
only patch that was applied previously from an older verion of nixpkgs.

See:
git show 2cc1925c040c7a564079cf187a187031d5f2c0b1:pkgs/development/libraries/libjpeg-turbo/0001-Compile-transupp.c-as-part-of-the-library.patch
2024-04-04 00:25:15 +02:00
David Warde-Farley
5165779503 rocmPackages_5.miopen: correctly link gtest 2024-03-31 18:32:38 +01: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
Yaroslav Bolyukin
bbf286d98e
rocmPackages.clr: backport bf16 compilation fix 2024-02-06 11:21:51 +01:00
github-actions[bot]
63c88e8d4d
Merge master into staging-next 2023-12-23 00:02:13 +00:00
Madoura
252aec4632
rocmPackages_5: update script: error if version > 5
Further prevent bot-based updates
2023-12-18 10:54:06 -06:00
Madoura
b00586cb26
rocmPackages_5: GitHub repo owner has generally changed to 'ROCm'
'RadeonOpenCompute', 'ROCm-Developer-Tools', 'ROCmSoftwarePlatform', 'GPUOpen-ProfessionalCompute-Libraries' -> 'ROCm'
2023-12-18 10:54:01 -06:00
Madoura
1f3ddf0a27
rocmPackages_5: mark broken if at least version '6.0.0'
This is mainly to prevent automatic update scripts from updating and to prevent accidental breaking merges.

Any further upgrades should go into 'rocmPackages_6'.
2023-12-17 05:15:23 -06:00
Madoura
d884cb11ab
rocm-docs-core: add note to move to 'rocmPackages_common' later 2023-12-17 05:14:01 -06:00
Adam Joseph
b334ff1e61 rocmPackages_5.llvm: use gcc12Stdenv if stdenv.cc.cc.isGNU>=13 2023-12-07 09:11:37 +00:00
Madoura
93ebe44ac3 rocmPackages_5: pin stdenv to GCC 12
Try reverting this on a future ROCm release.

Addresses: https://github.com/NixOS/nixpkgs/issues/271943
2023-12-05 20:15:30 +00:00
Vincenzo Mantova
818d9f0bac rocmPackages.rocdbgapi: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:30 +00:00
Vincenzo Mantova
ffb9122972 rocmPackages.rdc: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:30 +00:00
Vincenzo Mantova
fc2a6b8606 rocmPackages.miopengemm: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:30 +00:00
Vincenzo Mantova
8801b6e5c0 rocmPackages.miopen: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:30 +00:00
Vincenzo Mantova
6a7c8f0d33 rocmPackages.migraphx: replace texlive.combine with texliveSmall.withPackages 2023-11-05 13:43:30 +00:00
Peder Bergebakken Sundt
b428e0002d
Merge pull request #262798 from Madouura/pr/rocprofiler
rocmPackages.rocprofiler: fix rocprof and rocprofv2
2023-10-28 01:01:16 +02:00
Peder Bergebakken Sundt
1ce5a446bb
Merge pull request #262750 from Madouura/pr/hsa-amd-aqlprofile
rocmPackages.hsa-amd-aqlprofile-bin: 5.7.0 -> 5.7.1
2023-10-26 14:22:48 +02:00
Madoura
977784c08e
rocmPackages.rocprofiler: fix rocprof and rocprofv2 2023-10-23 16:13:07 -05:00
Madoura
a593ca3973
rocmPackages.hsa-amd-aqlprofile-bin: 5.7.0 -> 5.7.1
Added update script that actually works
2023-10-23 16:04:00 -05:00
Madoura
816a8023b4
rocmPackages.rocm-core: 5.7.0 -> 5.7.1 2023-10-22 22:40:27 +00:00
Madoura
cbfabed861
rocmPackages.rocm-core: use tags for rocmUpdateScript 2023-10-22 17:39:58 -05:00
Madoura
6f3f5b64f2
rocmPackages.roctracer: make roctracer free again 2023-10-17 16:30:46 -05:00
Madoura
39b6fcc8c7
rocmPackages: 5.7.0 -> 5.7.1
rocmPackages.clang-ocl: 5.7.0 -> 5.7.1

rocmPackages.hip-common: 5.7.0 -> 5.7.1

rocmPackages.half: 5.7.0 -> 5.7.1

rocmPackages.hipcc: 5.7.0 -> 5.7.1

rocmPackages.hipcub: 5.7.0 -> 5.7.1

rocmPackages.hipfft: 5.7.0 -> 5.7.1

rocmPackages.composable_kernel: 5.7.0 -> 5.7.1

rocmPackages.hipblas: 5.7.0 -> 5.7.1

rocmPackages.hiprand: 5.7.0 -> 5.7.1

rocmPackages.hipsolver: 5.7.0 -> 5.7.1

rocmPackages.hipsparse: 5.7.0 -> 5.7.1

rocmPackages.llvm.llvm: 5.7.0 -> 5.7.1

rocmPackages.migraphx: 5.7.0 -> 5.7.1

rocmPackages.hipfort: 5.7.0 -> 5.7.1

rocmPackages.miopen: 5.7.0 -> 5.7.1

rocmPackages.mivisionx: 5.7.0 -> 5.7.1

rocmPackages.hipify: 5.7.0 -> 5.7.1

rocmPackages.rocalution: 5.7.0 -> 5.7.1

rocmPackages.rocblas: 5.7.0 -> 5.7.1

rocmPackages.rdc: 5.7.0 -> 5.7.1

rocmPackages.rocfft: 5.7.0 -> 5.7.1

rocmPackages.rocgdb: 5.7.0 -> 5.7.1

rocmPackages.rccl: 5.7.0 -> 5.7.1

rocmPackages.rocm-comgr: 5.7.0 -> 5.7.1

rocmPackages.rocm-cmake: 5.7.0 -> 5.7.1

rocmPackages.rocm-device-libs: 5.7.0 -> 5.7.1

rocmPackages.rocm-runtime: 5.7.0 -> 5.7.1

rocmPackages.rocm-smi: 5.7.0 -> 5.7.1

rocmPackages.rocm-thunk: 5.7.0 -> 5.7.1

rocmPackages.rocminfo: 5.7.0 -> 5.7.1

rocmPackages.rocmlir: 5.7.0 -> 5.7.1

rocmPackages.rocdbgapi: 5.7.0 -> 5.7.1

rocmPackages.rocprim: 5.7.0 -> 5.7.1

rocmPackages.rocr-debug-agent: 5.7.0 -> 5.7.1

rocmPackages.rocsolver: 5.7.0 -> 5.7.1

rocmPackages.rocm-docs-core: 0.25.0 -> 0.26.0

rocmPackages.rocthrust: 5.7.0 -> 5.7.1

rocmPackages.rocprofiler: 5.7.0 -> 5.7.1

rocmPackages.roctracer: 5.7.0 -> 5.7.1

rocmPackages.rocsparse: 5.7.0 -> 5.7.1

rocmPackages.rpp: 5.7.0 -> 5.7.1

rocmPackages.tensile: 5.7.0 -> 5.7.1

rocmPackages.rocwmma: 5.7.0 -> 5.7.1

rocmPackages.clr: 5.7.0 -> 5.7.1
2023-10-17 15:23:30 -05:00
Madoura
26b379fbba
rocmPackages.clr: use tags for update script 2023-10-17 15:23:30 -05:00
Madoura
79b7cbd55d
rocmPackages.rocm-cmake: no need to specify page/filter now 2023-10-17 15:23:30 -05:00
Madoura
57db0508e6
rocmPackages.rocmUpdateScript: use 'releases/latest' by default 2023-10-17 15:23:29 -05:00
Madoura
5d55af4768
rocmPackages.rocsolver: increase hydra timeout
Set maximum time with no output to 4 hours as well
2023-10-15 04:47:52 -05:00
Bernardo Meurer
e95c10f50d
Merge pull request #260299 from Madouura/pr/rocm-meta 2023-10-12 11:05:44 -04:00
Madoura
ccc472da9d
rocmPackages.rocblas: fix hydra caching 2023-10-12 07:31:57 -05:00
Madoura
4554883968
rocmPackages: Implement meta package sets 2023-10-12 07:31:57 -05:00
Madoura
56c11dd1fd
rocmPackages.mivisionx: init at 5.7.0 2023-10-12 07:31:56 -05:00
Flakebi
01cada7dc6
rocmPackages.clr: Add OpenCL test
Add a test that runs a simple OpenCL example on the GPU.
Run with `eval $(nix-build -A rocmPackages.impureTests.opencl-example)`.
2023-10-11 22:29:24 +02:00
Madoura
0391a8b048
rocmPackages.rpp: init at 5.7.0 2023-10-11 07:26:46 -05:00
Madoura
8f7b7b0b4c
rocmPackages.half: init at 5.7.0 2023-10-09 17:03:24 -05:00
Madoura
1abbe92d90
rocmPackages.rocblas: split up output for hydra caching 2023-10-09 17:03:24 -05:00