From c428ad43d1c6cb00bdfdbd5d03d24a98544e0760 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Thu, 2 Jun 2022 22:00:01 -0300 Subject: [PATCH] pkgs/test/cuda/cuda-samples/generic.nix: use new SRI hash format --- pkgs/test/cuda/cuda-samples/generic.nix | 16 ++++++---------- 1 file 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="; }) ];