tpm2-abrmd: build from source instead of release tarball
This commit is contained in:
parent
3cc29166a7
commit
1a1ab9474e
@ -1,22 +1,31 @@
|
|||||||
{ stdenv, fetchurl, lib
|
{ stdenv, lib, fetchFromGitHub
|
||||||
, makeWrapper, tpm2-tss, pkgconfig, glib, which, dbus, cmocka }:
|
, autoreconfHook, pkg-config, autoconf-archive, makeWrapper, which
|
||||||
|
, tpm2-tss, glib, dbus
|
||||||
|
, cmocka
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tpm2-abrmd";
|
pname = "tpm2-abrmd";
|
||||||
version = "2.3.2";
|
version = "2.3.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/tpm2-software/${pname}/releases/download/${version}/${pname}-${version}.tar.gz";
|
owner = "tpm2-software";
|
||||||
sha256 = "040d01pdzkj0nc1c0vsf6gfqf28cgil03ix8dasijvhiha4c20nz";
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "0jzglnlb700clcq6mjhhgvcq29a6893h888wsn9fbrh4f255sw8q";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook autoconf-archive which ];
|
||||||
buildInputs = [
|
buildInputs = [ tpm2-tss glib dbus cmocka ];
|
||||||
tpm2-tss glib which dbus cmocka
|
|
||||||
];
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
|
# Emulate the required behavior of ./bootstrap in the original
|
||||||
|
# package
|
||||||
|
preAutoreconf = ''
|
||||||
|
echo "${version}" > VERSION
|
||||||
|
'';
|
||||||
|
|
||||||
# Unit tests are currently broken as the check phase attempts to start a dbus daemon etc.
|
# Unit tests are currently broken as the check phase attempts to start a dbus daemon etc.
|
||||||
#configureFlags = [ "--enable-unit" ];
|
#configureFlags = [ "--enable-unit" ];
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user