summary refs log tree commit diff
path: root/pkgs/applications/networking/browsers/mozilla-plugins/fribid/default.nix
blob: b8aa17803e9fa8001395b4e1610074243714f37a (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
{ stdenv, fetchurl, pkgconfig, openssl, glib, libX11, gtk2, gettext, intltool }:

stdenv.mkDerivation rec {
  name = "fribid-${version}";
  version = "1.0.4";
  builder = ./builder.sh;

  src = fetchurl {
    url = "https://fribid.se/releases/source/${name}.tar.bz2";
    sha256 = "a679f3a0534d5f05fac10b16b49630a898c0b721cfa24d2c827fa45485476649";
  };

  buildInputs = [ pkgconfig openssl libX11 gtk2 glib gettext intltool ];
  patches = [
    ./translation-xgettext-to-intltool.patch
    ./plugin-linkfix.patch
    ./ipc-lazytrace.patch
    ];

  postPatch = "substituteInPlace plugin/pluginutil.c --replace strndup strndup_";

  passthru.mozillaPlugin = "/lib/mozilla/plugins";

  meta = with stdenv.lib; {
    description = "A browser plugin to manage Swedish BankID:s";
    longDescription = ''
      FriBID is an open source software for the Swedish e-id system
      called BankID. FriBID also supports processor architectures and
      Linux/BSD distributions that the official software doesn't
      support.
    '';
    homepage = http://fribid.se;
    license = with licenses; [ gpl2 mpl10 ];
    maintainers = [ maintainers.edwtjo ];
    platforms = with platforms; linux;
  };
}