3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/trousers/default.nix

36 lines
1,015 B
Nix
Raw Normal View History

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