go-modules: Update files to use vendorSha256

This commit is contained in:
Colin L Rice
2020-05-14 07:22:21 +01:00
committed by Jörg Thalheim
parent a0ddea1d6a
commit d6162dab50
215 changed files with 3251 additions and 423 deletions
+15 -2
View File
@@ -11,7 +11,20 @@ buildGoModule rec {
sha256 = "12aidylamrq4rvy2cfdz669lr1p20yqrshigcc5x1hrlhh9y64xc";
};
modSha256 = "1kcj5065yy52p1jy4fad5lsz3y4spqc40k1qsirm53qqixhrhvag";
hid = fetchFromGitHub {
owner = "karalabe";
repo = "hid";
rev = "9c14560f9ee858c43f40b5cd01392b167aacf4e8";
sha256 = "0xc7b8mwha64j7l2fr2g5zy8pz7cqi0vrxx60gii52b6ii31xncx";
};
vendorSha256 = "0mns5clykvj33krf29yjh8lkf05nih42ka5ji7miq0iaikqyyc78";
overrideModAttrs = (_: {
postBuild = ''
cp -r --reflink=auto ${hid}/libusb vendor/github.com/karalabe/hid
cp -r --reflink=auto ${hid}/hidapi vendor/github.com/karalabe/hid
'';
});
subPackages = [ "." "cmd/saml2aws" ];
@@ -26,4 +39,4 @@ buildGoModule rec {
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.pmyjavec ];
};
}
}