forked from mirrors/nixpkgs
pkgs/test/cuda/cuda-samples/generic.nix: use new SRI hash format
This commit is contained in:
parent
71834a1a26
commit
c428ad43d1
|
@ -1,20 +1,16 @@
|
||||||
{ addOpenGLRunpath
|
{ lib
|
||||||
, cudatoolkit
|
, stdenv
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, lib
|
, addOpenGLRunpath
|
||||||
|
, cudatoolkit
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, sha256
|
, sha256
|
||||||
, stdenv
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
pname = "cuda-samples";
|
pname = "cuda-samples";
|
||||||
version = lib.versions.majorMinor cudatoolkit.version;
|
version = lib.versions.majorMinor cudatoolkit.version;
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
inherit pname version;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "NVIDIA";
|
owner = "NVIDIA";
|
||||||
|
@ -31,7 +27,7 @@ stdenv.mkDerivation {
|
||||||
patches = lib.optionals (version == "11.3") [
|
patches = lib.optionals (version == "11.3") [
|
||||||
(fetchpatch {
|
(fetchpatch {
|
||||||
url = "https://github.com/NVIDIA/cuda-samples/commit/5c3ec60faeb7a3c4ad9372c99114d7bb922fda8d.patch";
|
url = "https://github.com/NVIDIA/cuda-samples/commit/5c3ec60faeb7a3c4ad9372c99114d7bb922fda8d.patch";
|
||||||
sha256 = "sha256:15bydf59scmfnldz5yawbjacdxafi50ahgpzq93zlc5xsac5sz6i";
|
sha256 = "sha256-0XxdmNK9MPpHwv8+qECJTvXGlFxc+fIbta4ynYprfpU=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue