summaryrefslogtreecommitdiffstats
path: root/pkgs/test
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-06-02 22:00:01 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-06-04 08:19:29 -0300
commitc428ad43d1c6cb00bdfdbd5d03d24a98544e0760 (patch)
treeb8eb961f150960661c71d403123d848ea5355ecf /pkgs/test
parent71834a1a26fb7e76d75356b537efb86cd0d7d78d (diff)
pkgs/test/cuda/cuda-samples/generic.nix: use new SRI hash format
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/cuda/cuda-samples/generic.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/test/cuda/cuda-samples/generic.nix b/pkgs/test/cuda/cuda-samples/generic.nix
index c5a9e24abd43..eeb3d6fcb520 100644
--- a/pkgs/test/cuda/cuda-samples/generic.nix
+++ b/pkgs/test/cuda/cuda-samples/generic.nix
@@ -1,20 +1,16 @@
-{ addOpenGLRunpath
-, cudatoolkit
+{ lib
+, stdenv
, fetchFromGitHub
, fetchpatch
-, lib
+, addOpenGLRunpath
+, cudatoolkit
, pkg-config
, sha256
-, stdenv
}:
-let
+stdenv.mkDerivation rec {
pname = "cuda-samples";
version = lib.versions.majorMinor cudatoolkit.version;
-in
-
-stdenv.mkDerivation {
- inherit pname version;
src = fetchFromGitHub {
owner = "NVIDIA";
@@ -31,7 +27,7 @@ stdenv.mkDerivation {
patches = lib.optionals (version == "11.3") [
(fetchpatch {
url = "https://github.com/NVIDIA/cuda-samples/commit/5c3ec60faeb7a3c4ad9372c99114d7bb922fda8d.patch";
- sha256 = "sha256:15bydf59scmfnldz5yawbjacdxafi50ahgpzq93zlc5xsac5sz6i";
+ sha256 = "sha256-0XxdmNK9MPpHwv8+qECJTvXGlFxc+fIbta4ynYprfpU=";
})
];