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

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

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

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

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

  meta = {
    description = "A browser plugin to manage Swedish BankID:s";
    homepage = http://fribid.se;
    licenses = [ "GPLv2" "MPLv1" ];
    maintainers = [ stdenv.lib.maintainers.edwtjo ];
    platforms = with stdenv.lib.platforms; linux;
  };
}