Revert "trezor-bridge: remove"

This reverts commit fac1ded619c8a4ecb6b7fdb5a119e4ea7f586f20.

missed one use

+49
+47
pkgs/applications/networking/browsers/mozilla-plugins/trezor/default.nix
···
··· 1 + { stdenv, fetchurl, dpkg, zlib }: 2 + 3 + assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; 4 + 5 + stdenv.mkDerivation { 6 + name = "TREZOR-bridge-1.0.5"; 7 + 8 + passthru = { 9 + mozillaPlugin = "/lib/mozilla/plugins"; 10 + }; 11 + 12 + src = 13 + if stdenv.system == "x86_64-linux" then 14 + fetchurl { 15 + url = https://mytrezor.com/data/plugin/1.0.5/browser-plugin-trezor_1.0.5_amd64.deb; 16 + sha256 = "0097h4v88yca4aayzprrh4pk03xvvj7ncz2mi83chm81gsr2v67z"; 17 + } 18 + else 19 + fetchurl { 20 + url = https://mytrezor.com/data/plugin/1.0.5/browser-plugin-trezor_1.0.5_i386.deb; 21 + sha256 = "0xzbq78s3ivg00f0bj6gyjgf47pvjx2l4mm05jjmdar60bf1xr1n"; 22 + }; 23 + 24 + phases = [ "unpackPhase" "installPhase" "fixupPhase" ]; 25 + 26 + dontStrip = true; 27 + dontPatchELF = true; 28 + 29 + unpackPhase = "${dpkg}/bin/dpkg-deb -x $src ."; 30 + 31 + installPhase = '' 32 + mkdir -p $out/etc/udev/rules.d/ $out/lib/mozilla/plugins 33 + cp ./lib/udev/rules.d/51-trezor-udev.rules $out/etc/udev/rules.d/ 34 + cp ./usr/lib/mozilla/plugins/npBitcoinTrezorPlugin.so $out/lib/mozilla/plugins 35 + ''; 36 + 37 + meta = with stdenv.lib; 38 + { description = "Plugin for browser to TREZOR device communication"; 39 + homepage = https://mytrezor.com; 40 + license = licenses.unfree; 41 + maintainers = with maintainers; [ ehmry ]; 42 + # Download URL, .deb content & hash (yikes) changed, not version. 43 + # New archive doesn't contain any Mozilla plugin at all. 44 + broken = true; 45 + }; 46 + 47 + }
+2
pkgs/top-level/all-packages.nix
··· 16393 16394 treesheets = callPackage ../applications/office/treesheets { wxGTK = wxGTK30; }; 16395 16396 tribler = callPackage ../applications/networking/p2p/tribler { }; 16397 16398 trojita = libsForQt56.callPackage ../applications/networking/mailreaders/trojita { };
··· 16393 16394 treesheets = callPackage ../applications/office/treesheets { wxGTK = wxGTK30; }; 16395 16396 + trezor-bridge = callPackage ../applications/networking/browsers/mozilla-plugins/trezor { }; 16397 + 16398 tribler = callPackage ../applications/networking/p2p/tribler { }; 16399 16400 trojita = libsForQt56.callPackage ../applications/networking/mailreaders/trojita { };