summary refs log tree commit diff
path: root/pkgs/applications/misc/xca/default.nix
blob: 80ecbdeba77fc37e647427842a634583b6b033d5 (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
37
{ mkDerivation, lib, fetchurl, pkgconfig, which
, libtool, openssl, qtbase, qttools }:

with lib;

mkDerivation rec {
  name = "xca-${version}";
  version = "1.3.2";

  src = fetchurl {
    url = "mirror://sourceforge/xca/${name}.tar.gz";
    sha256 = "1r2w9gpahjv221j963bd4vn0gj4cxmb9j42f3cd9qdn890hizw84";
  };

  enableParallelBuilding = true;

  buildInputs = [ libtool openssl qtbase qttools ];

  nativeBuildInputs = [ pkgconfig which ];

  configureFlags = [ "CXXFLAGS=-std=c++11" ];

  preBuild = ''
    substituteInPlace Local.mak \
      --replace ${qtbase}/bin/moc ${qtbase.dev}/bin/moc \
      --replace ${qtbase}/bin/uic ${qtbase.dev}/bin/uic
  '';

  meta = with lib; {
    description = "Interface for managing asymetric keys like RSA or DSA";
    homepage = http://xca.sourceforge.net/;
    platforms = platforms.all;
    license = licenses.bsd3;
    maintainers = with maintainers; [ offline peterhoeg ];
    broken = builtins.compareVersions qtbase.version "5.7.0" == 0;
  };
}