2021-04-25 03:57:28 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, pkg-config, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "trousers";
|
2021-04-25 03:57:28 +00:00
|
|
|
version = "0.3.15";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/trousers/trousers/${version}/${pname}-${version}.tar.gz";
|
2021-04-25 03:57:28 +00:00
|
|
|
sha256 = "0zy7r9cnr2gvwr2fb1q4fc5xnvx405ymcbrdv7qsqwl3a4zfjnqy";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
patches = [ ./allow-non-tss-config-file-owner.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-usercheck" ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-DALLOW_NON_TSS_CONFIG_FILE" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Trusted computing software stack";
|
|
|
|
homepage = "http://trousers.sourceforge.net/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|