fetchgx: support hash attribute

This commit is contained in:
nicoo 2024-09-15 21:47:29 +00:00
parent 45b95421fd
commit b5aefcd40a

View File

@ -1,6 +1,7 @@
{ stdenvNoCC, gx, gx-go, go, cacert }:
{ lib, stdenvNoCC, gx, gx-go, go, cacert }:
{ name, src, sha256 }:
lib.fetchers.withNormalizedHash { } (
{ name, src, outputHash, outputHashAlgo }:
stdenvNoCC.mkDerivation {
name = "${name}-gxdeps";
@ -8,9 +9,8 @@ stdenvNoCC.mkDerivation {
nativeBuildInputs = [ cacert go gx gx-go ];
outputHashAlgo = "sha256";
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
outputHash = sha256;
dontConfigure = true;
doCheck = false;
@ -28,3 +28,4 @@ stdenvNoCC.mkDerivation {
preferLocalBuild = true;
}
)