saml2aws: use vend to simplify package

This commit is contained in:
Colin L Rice 2020-06-03 22:57:19 -04:00
parent 298c6a7df8
commit 4561583acf

View File

@ -11,20 +11,8 @@ buildGoModule rec {
sha256 = "0y5gvdrdr6i9spdwsxvzs1bxs32icxpkqxnglp1bf4gglc580d87";
};
hid = fetchFromGitHub {
owner = "karalabe";
repo = "hid";
rev = "9c14560f9ee858c43f40b5cd01392b167aacf4e8";
sha256 = "0xc7b8mwha64j7l2fr2g5zy8pz7cqi0vrxx60gii52b6ii31xncx";
};
vendorSha256 = "0f81nrg8v3xh2hcx7g77p3ahr4gyj042bwr1knf2phpahgz9n9rn";
overrideModAttrs = (_: {
postBuild = ''
cp -r --reflink=auto ${hid}/libusb vendor/github.com/karalabe/hid
cp -r --reflink=auto ${hid}/hidapi vendor/github.com/karalabe/hid
'';
});
runVend = true;
vendorSha256 = "1kzihyx44sx6php4z58fzy6c3g0y713939yzxpgk3n03snn2x8sf";
subPackages = [ "." "cmd/saml2aws" ];
@ -39,4 +27,4 @@ buildGoModule rec {
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.pmyjavec ];
};
}
}