diff options
author | Arseniy Seroka <ars.seroka@gmail.com> | 2016-04-27 00:04:14 +0300 |
---|---|---|
committer | Arseniy Seroka <ars.seroka@gmail.com> | 2016-04-27 11:38:09 +0300 |
commit | f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b (patch) | |
tree | 283a2327faf7d4d563eeccda3952de376a29de89 /pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin | |
parent | 9765e5835f8e4daf5a8c50515688814e64501124 (diff) | |
download | nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar.gz nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar.bz2 nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar.lz nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar.xz nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.tar.zst nixlib-f6d7cefa7ba6429ec2a324ac3ae1fcefb45bdf0b.zip |
esteidfirefoxplugin: init at 3.12.1.1142
Diffstat (limited to 'pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin')
-rw-r--r-- | pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin/default.nix b/pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin/default.nix new file mode 100644 index 000000000000..039d8bbe4060 --- /dev/null +++ b/pkgs/applications/networking/browsers/mozilla-plugins/esteidfirefoxplugin/default.nix @@ -0,0 +1,45 @@ +{ stdenv, fetchurl, gtk2, openssl, pcsclite, pkgconfig, opensc }: + +stdenv.mkDerivation rec { + version = "3.12.1.1142"; + name = "esteidfirefoxplugin-${version}"; + + src = fetchurl { + url = "https://installer.id.ee/media/ubuntu/pool/main/e/esteidfirefoxplugin/esteidfirefoxplugin_3.12.1.1142.orig.tar.xz"; + sha256 = "0y7759x1xr00p5r3c5wpllcqqnnxh2zi74cmy4m9m690z3ywn0fx"; + }; + + unpackPhase = '' + mkdir src + tar xf $src -C src + cd src + ''; + + buildInputs = [ gtk2 openssl pcsclite pkgconfig opensc ]; + + buildPhase = '' + sed -i "s|opensc-pkcs11.so|${opensc}/lib/pkcs11/opensc-pkcs11.so|" Makefile + make plugin + ''; + + installPhase = '' + plugins=$out/lib/mozilla/plugins + mkdir -p $plugins + cp -a npesteid-firefox-plugin.so $plugins/ + rp=$(patchelf --print-rpath $plugins/npesteid-firefox-plugin.so) + patchelf --set-rpath "$rp:${opensc}/lib:${opensc}/lib/pkcs11" $plugins/npesteid-firefox-plugin.so + ''; + + passthru.mozillaPlugin = "/lib/mozilla/plugins"; + + dontStrip = true; + dontPatchELF = true; + + meta = with stdenv.lib; { + description = "Firefox ID card signing plugin"; + homepage = "http://www.id.ee/"; + license = licenses.lgpl2; + platforms = platforms.linux; + maintainers = [ maintainers.jagajaga ]; + }; +} |