tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
esteidfirefoxplugin: init at 3.12.1.1142
Arseniy Seroka
9 years ago
f6d7cefa
9765e583
+49
3 changed files
expand all
collapse all
unified
split
pkgs
applications
networking
browsers
firefox
wrapper.nix
mozilla-plugins
esteidfirefoxplugin
default.nix
top-level
all-packages.nix
+2
pkgs/applications/networking/browsers/firefox/wrapper.nix
···
6
6
, supportsJDK, jrePlugin, icedtea_web
7
7
, trezor-bridge, bluejeans, djview4, adobe-reader
8
8
, google_talk_plugin, fribid, gnome3/*.gnome_shell*/
9
9
+
, esteidfirefoxplugin
9
10
}:
10
11
11
12
## configurability of the wrapper itself
···
42
43
++ lib.optional (cfg.enableTrezor or false) trezor-bridge
43
44
++ lib.optional (cfg.enableBluejeans or false) bluejeans
44
45
++ lib.optional (cfg.enableAdobeReader or false) adobe-reader
46
46
+
++ lib.optional (cfg.enableEsteid or false) esteidfirefoxplugin
45
47
);
46
48
libs = [ gst_all.gstreamer gst_all.gst-plugins-base ]
47
49
++ lib.optionals (cfg.enableQuakeLive or false)
+45
pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin/default.nix
···
1
1
+
{ stdenv, fetchurl, gtk2, openssl, pcsclite, pkgconfig, opensc }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
version = "3.12.1.1142";
5
5
+
name = "esteidfirefoxplugin-${version}";
6
6
+
7
7
+
src = fetchurl {
8
8
+
url = "https://installer.id.ee/media/ubuntu/pool/main/e/esteidfirefoxplugin/esteidfirefoxplugin_3.12.1.1142.orig.tar.xz";
9
9
+
sha256 = "0y7759x1xr00p5r3c5wpllcqqnnxh2zi74cmy4m9m690z3ywn0fx";
10
10
+
};
11
11
+
12
12
+
unpackPhase = ''
13
13
+
mkdir src
14
14
+
tar xf $src -C src
15
15
+
cd src
16
16
+
'';
17
17
+
18
18
+
buildInputs = [ gtk2 openssl pcsclite pkgconfig opensc ];
19
19
+
20
20
+
buildPhase = ''
21
21
+
sed -i "s|opensc-pkcs11.so|${opensc}/lib/pkcs11/opensc-pkcs11.so|" Makefile
22
22
+
make plugin
23
23
+
'';
24
24
+
25
25
+
installPhase = ''
26
26
+
plugins=$out/lib/mozilla/plugins
27
27
+
mkdir -p $plugins
28
28
+
cp -a npesteid-firefox-plugin.so $plugins/
29
29
+
rp=$(patchelf --print-rpath $plugins/npesteid-firefox-plugin.so)
30
30
+
patchelf --set-rpath "$rp:${opensc}/lib:${opensc}/lib/pkcs11" $plugins/npesteid-firefox-plugin.so
31
31
+
'';
32
32
+
33
33
+
passthru.mozillaPlugin = "/lib/mozilla/plugins";
34
34
+
35
35
+
dontStrip = true;
36
36
+
dontPatchELF = true;
37
37
+
38
38
+
meta = with stdenv.lib; {
39
39
+
description = "Firefox ID card signing plugin";
40
40
+
homepage = "http://www.id.ee/";
41
41
+
license = licenses.lgpl2;
42
42
+
platforms = platforms.linux;
43
43
+
maintainers = [ maintainers.jagajaga ];
44
44
+
};
45
45
+
}
+2
pkgs/top-level/all-packages.nix
···
2979
2979
};
2980
2980
2981
2981
qesteidutil = qt5.callPackage ../tools/security/qesteidutil { } ;
2982
2982
+
qdigidoc = qt5.callPackage ../tools/security/qdigidoc { } ;
2983
2983
+
esteidfirefoxplugin = callPackage ../applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin { };
2982
2984
2983
2985
qgifer = callPackage ../applications/video/qgifer {
2984
2986
giflib = giflib_4_1;