2013-12-10 12:27:07 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, openssl, glib, libX11, gtk2, gettext, intltool }:
|
2013-09-04 20:29:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "fribid-${version}";
|
2014-08-25 15:58:41 +01:00
|
|
|
version = "1.0.4";
|
2013-09-04 20:29:37 +01:00
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fribid.se/releases/source/${name}.tar.bz2";
|
2014-08-25 15:58:41 +01:00
|
|
|
sha256 = "a679f3a0534d5f05fac10b16b49630a898c0b721cfa24d2c827fa45485476649";
|
2013-09-04 20:29:37 +01:00
|
|
|
};
|
|
|
|
|
2013-12-10 12:27:07 +00:00
|
|
|
buildInputs = [ pkgconfig openssl libX11 gtk2 glib gettext intltool ];
|
2013-09-04 20:29:37 +01:00
|
|
|
patches = [
|
|
|
|
./translation-xgettext-to-intltool.patch
|
|
|
|
./plugin-linkfix.patch
|
|
|
|
./ipc-lazytrace.patch
|
|
|
|
];
|
|
|
|
|
2014-11-28 17:40:19 +00:00
|
|
|
postPatch = "substituteInPlace plugin/pluginutil.c --replace strndup strndup_";
|
|
|
|
|
2013-09-04 20:29:37 +01:00
|
|
|
passthru.mozillaPlugin = "/lib/mozilla/plugins";
|
|
|
|
|
2015-05-27 20:56:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2013-09-04 20:29:37 +01:00
|
|
|
description = "A browser plugin to manage Swedish BankID:s";
|
2014-08-25 15:58:41 +01:00
|
|
|
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.
|
|
|
|
'';
|
2013-09-04 20:29:37 +01:00
|
|
|
homepage = http://fribid.se;
|
2015-05-27 20:56:04 +01:00
|
|
|
license = with licenses; [ gpl2 mpl10 ];
|
|
|
|
maintainers = [ maintainers.edwtjo ];
|
|
|
|
platforms = with platforms; linux;
|
2013-09-04 20:29:37 +01:00
|
|
|
};
|
|
|
|
}
|