summary refs log tree commit diff
path: root/pkgs/tools/security/meo/default.nix
blob: 491bef3e0543f12a4aeed8470c7cd5d54c2edee6 (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
34
35
36
{ lib, stdenv, fetchhg, openssl, pcre-cpp, qt4, boost, pkcs11helper }:

stdenv.mkDerivation {
  pname = "meo";
  version = "unstable-2012-11-13";

  src = fetchhg {
    url = "http://oss.stamfest.net/hg/meo";
    rev = "b48e5f16cff8";
    sha256 = "0ifg7y28s89i9gwda6fyj1jbrykbcvq8bf1m6rxmdcv5afi3arbq";
  };

  buildFlags = [ "QMAKE=qmake" ];

  buildInputs = [ openssl pcre-cpp qt4 boost pkcs11helper ];

  preConfigure = ''
    sed -i s,-mt$,, meo-gui/meo-gui.pro
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp tools/{meo,p11} $out/bin
    cp meo-gui/meo-gui $out/bin
    cp meo-gui/meo-gui $out/bin
  '';

  meta = with lib; {
    homepage = "http://oss.stamfest.net/wordpress/meo-multiple-eyepairs-only";
    description = "Tools to use cryptography for things like four-eyes principles";
    license = licenses.agpl3Plus;
    maintainers = with maintainers; [ viric ];
    platforms = platforms.linux;
    broken = true;
  };
}