Fix Browserpass on NixOS

Eric Bailey

Written on 2 October, 2019
Updated on 18 December, 2023
Tags: nixos, pass, browserpass, firefox

After installing a custom version of Firefox, the Browserpass extension stopped working.

To fix it, I ran the following, based on a suggestion in the Browerpass host application README.

$ make -C /run/current-system/sw/lib/browserpass DESTDIR=/run/current-system/sw hosts-firefox-user
make: Entering directory '/nix/store/wxqd9qs2mfgynh5v7zi72mfw0f81rkgg-browserpass-3.0.6/lib/browserpass'
'/home/yurrriq/.mozilla/native-messaging-hosts/com.github.browserpass.native.json' -> '/run/current-system/sw/lib/browserpass/hosts/firefox/com.github.browserpass.native.json'
make: Leaving directory '/nix/store/wxqd9qs2mfgynh5v7zi72mfw0f81rkgg-browserpass-3.0.6/lib/browserpass'