tpm2-tss: build from source instead of release tarball
This commit is contained in:
parent
1ec50ac39e
commit
09791689df
@ -1,27 +1,30 @@
|
|||||||
{ stdenv, lib, fetchurl, fetchpatch
|
{ stdenv, lib, fetchFromGitHub
|
||||||
, cmocka, doxygen, ibm-sw-tpm2, iproute, openssl, perl, pkgconfig, procps, json_c, curl
|
, autoreconfHook, autoconf-archive, pkg-config, doxygen, perl
|
||||||
, uthash, which
|
, openssl, json_c, curl, libgcrypt
|
||||||
|
, cmocka, uthash, ibm-sw-tpm2, iproute, procps, which
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tpm2-tss";
|
pname = "tpm2-tss";
|
||||||
version = "2.4.1";
|
version = "2.4.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
owner = "tpm2-software";
|
||||||
sha256 = "03g6l64nzkpadjyabmbhnhs8648iqb95fviinnpslggzp75azmsq";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "09x5czaj4a8cyf8cxavcasx3yy1kik1s45a90c7zvxb7y1kfp9zs";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
doxygen perl pkgconfig
|
autoreconfHook autoconf-archive pkg-config doxygen perl libgcrypt.dev
|
||||||
];
|
|
||||||
buildInputs = [
|
|
||||||
openssl json_c curl
|
|
||||||
];
|
];
|
||||||
|
buildInputs = [ openssl json_c curl libgcrypt ];
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
cmocka uthash ibm-sw-tpm2 iproute procps which
|
cmocka uthash ibm-sw-tpm2 iproute procps which
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preAutoreconf = "./bootstrap";
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
postPatch = "patchShebangs script";
|
postPatch = "patchShebangs script";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user