summary refs log tree commit diff
path: root/pkgs/tools/security/trousers/default.nix
blob: 4c2af359b9645912fd19a5a5e7076b612c7c6a1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, fetchurl, openssl }:

let
  ver_maj = "0.3.11";
  ver_min = "2";
in
stdenv.mkDerivation rec {
  name = "trousers-${ver_maj}.${ver_min}";

  src = fetchurl {
    url = "mirror://sourceforge/trousers/trousers/${ver_maj}/${name}.tar.gz";
    sha256 = "1m9qi4452jr5yy4y9zyfi5ndwam5krq7ny8z2q3f91v1hcjgk5la";
  };

  buildInputs = [ openssl ];

  patches = [ # ./double-installed-man-page.patch
              ./disable-install-rule.patch
              ./allow-non-tss-config-file-owner.patch
            ];

  NIX_CFLAGS_COMPILE = "-DALLOW_NON_TSS_CONFIG_FILE";
  NIX_LDFLAGS = "-lgcc_s";

  meta = with stdenv.lib; {
    description = "TrouSerS is an CPL (Common Public License) licensed Trusted Computing Software Stack.";
    homepage    = http://trousers.sourceforge.net/;
    license     = licenses.cpl10;
    maintainers = [ maintainers.ak ];
    platforms   = platforms.unix;
  };
}