2015-04-25 11:36:38 +02:00
|
|
|
{ stdenv, fetchurl, openssl, pkgconfig }:
|
2013-08-14 08:16:52 +02:00
|
|
|
|
2014-08-12 19:38:15 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2014-10-14 01:53:35 +02:00
|
|
|
name = "trousers-${version}";
|
|
|
|
version = "0.3.13";
|
2013-08-14 08:16:52 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-14 01:53:35 +02:00
|
|
|
url = "mirror://sourceforge/trousers/trousers/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "1lvnla1c1ig2w3xvvrqg2w9qm7a1ygzy1j2gg8j7p8c87i58x45v";
|
2013-08-14 08:16:52 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ openssl ];
|
2013-08-14 08:16:52 +02:00
|
|
|
|
2014-10-14 01:53:35 +02:00
|
|
|
patches = [ ./allow-non-tss-config-file-owner.patch ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-usercheck" ];
|
2013-08-14 08:16:52 +02:00
|
|
|
|
2015-06-13 00:40:48 +02:00
|
|
|
# Attempt to remove -std=gnu89 when updating if using gcc5
|
|
|
|
NIX_CFLAGS_COMPILE = "-std=gnu89 -DALLOW_NON_TSS_CONFIG_FILE";
|
2013-08-14 08:16:52 +02:00
|
|
|
NIX_LDFLAGS = "-lgcc_s";
|
|
|
|
|
2015-04-25 11:36:38 +02:00
|
|
|
# Fix broken libtool file
|
2015-05-12 00:03:07 +02:00
|
|
|
preFixup = stdenv.lib.optionalString (!stdenv.isDarwin) ''
|
2015-04-27 13:18:16 +02:00
|
|
|
sed 's,-lcrypto,-L${openssl.out}/lib -lcrypto,' -i $out/lib/libtspi.la
|
2015-04-25 11:36:38 +02:00
|
|
|
'';
|
|
|
|
|
2013-08-14 08:16:52 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Trusted computing software stack";
|
2013-08-14 08:16:52 +02:00
|
|
|
homepage = http://trousers.sourceforge.net/;
|
2014-04-23 15:13:59 +02:00
|
|
|
license = licenses.cpl10;
|
2014-04-22 14:04:36 +02:00
|
|
|
maintainers = [ maintainers.ak ];
|
2017-09-22 20:03:17 +02:00
|
|
|
platforms = platforms.linux;
|
2013-08-14 08:16:52 +02:00
|
|
|
};
|
|
|
|
}
|
2014-08-12 19:38:15 +02:00
|
|
|
|