microsoft_gsl: use fetchpatch instead of fetchurl
The hash for this file when using fetchurl changed from sha256-uouv35crtly8kYhKyvMyZkqwTKt1jXC6dZjw4sQ60v0= to sha256-nCPdC5eFDRyyeJzxJnoCvlukWy61OB7DoXD+R8dGlnw= Lets use fetchpatch instead to potentially avoid this issue in the future.
This commit is contained in:
parent
b376c2d2af
commit
c7d0078c59
@ -3,7 +3,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cmake
|
, cmake
|
||||||
, gtest
|
, gtest
|
||||||
, fetchurl
|
, fetchpatch
|
||||||
, pkg-config
|
, pkg-config
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
# Search for GoogleTest via pkg-config first, ref: https://github.com/NixOS/nixpkgs/pull/130525
|
# Search for GoogleTest via pkg-config first, ref: https://github.com/NixOS/nixpkgs/pull/130525
|
||||||
(fetchurl {
|
(fetchpatch {
|
||||||
url = "https://github.com/microsoft/GSL/commit/f5cf01083baf7e8dc8318db3648bc6098dc32d67.patch";
|
url = "https://github.com/microsoft/GSL/commit/f5cf01083baf7e8dc8318db3648bc6098dc32d67.patch";
|
||||||
sha256 = "sha256-uouv35crtly8kYhKyvMyZkqwTKt1jXC6dZjw4sQ6uv0=";
|
sha256 = "sha256-HJxG87nVFo1CGNivCqt/JhjTj2xLzQe8bF5Km7/KG+Y=";
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user