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" ];
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-DALLOW_NON_TSS_CONFIG_FILE" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tcsd";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://trousers.sourceforge.net/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.ak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|