mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
Merge pull request #261628 from Kranzes/age-plugin-tpm
age-plugin-tpm: 0.1.0 -> 0.2.0
This commit is contained in:
commit
4af6789e42
@ -2,30 +2,32 @@
|
|||||||
, buildGoModule
|
, buildGoModule
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, swtpm
|
, swtpm
|
||||||
|
, openssl
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "age-plugin-tpm";
|
pname = "age-plugin-tpm";
|
||||||
version = "0.1.0";
|
version = "0.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Foxboron";
|
owner = "Foxboron";
|
||||||
repo = "age-plugin-tpm";
|
repo = "age-plugin-tpm";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
hash = "sha256-Gp7n2/+vgQbsm/En6PQ1to/W6lvFam4Wh3LHdCZnafc=";
|
hash = "sha256-oTvK8U5j+llHgoChhGb+vcUrUf9doVYxd3d5MEuCNz8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = "sha256-oZni/n2J0N3ZxNhf+RlUWyWeOFwL4+6KUIk6DQF8YpA=";
|
proxyVendor = true;
|
||||||
|
|
||||||
postConfigure = ''
|
vendorHash = "sha256-BSb+8p5+RJMfcYc2+BuT4YbhCWCbcYOt9upesD11Ytw=";
|
||||||
substituteInPlace vendor/github.com/foxboron/swtpm_test/swtpm.go \
|
|
||||||
--replace "/usr/share/swtpm/swtpm-create-user-config-files" "${swtpm}/share/swtpm/swtpm-create-user-config-files"
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
swtpm
|
swtpm
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
openssl
|
||||||
|
];
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
|
Loading…
Reference in New Issue
Block a user