diff options
Diffstat (limited to 'hm/soispha/conf/firefox/config')
-rw-r--r-- | hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix | 4 | ||||
-rw-r--r-- | hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix | 14 |
2 files changed, 7 insertions, 11 deletions
diff --git a/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix b/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix index 053b6465..14f4e257 100644 --- a/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix +++ b/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix @@ -16,10 +16,6 @@ in ++ lib.optional (cfg.enableKeePassXC or false) keepassxc - mkdir -p $out/lib/mozilla/native-messaging-hosts - for ext in ${toString nativeMessagingHosts}; do - ln -sLt $out/lib/mozilla/native-messaging-hosts $ext/lib/mozilla/native-messaging-hosts/* - done */ with pkgs; [ video_pause_ext diff --git a/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix b/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix index a652b596..0c2c5155 100644 --- a/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix +++ b/hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix @@ -14,9 +14,9 @@ in */ pkgs.stdenv.mkDerivation { inherit (video-pauser) pname version; - buildInputs = [ - video_pause - ]; + + # FIXME: Don't use the deprecated 'phases' here <2023-10-21> + phases = ["buildPhase"]; buildPhase = '' mkdir -p $out/share/ cat << EOF > $out/share/"${video-pauser.pname}".json @@ -29,18 +29,18 @@ in } EOF - nativeMessagingPaths="$(cat << EOF + nmp="$(mktemp)"; + cat << EOF > "$nmp" lib/mozilla/native-messaging-hosts lib/librewolf/native-messaging-hosts etc/opt/chrome/native-messaging-hosts etc/chromium/native-messaging-hosts etc/vivaldi/native-messaging-hosts EOF - )" - cat "$nativeMessagingPaths" | while read -r path; do + while read -r path; do mkdir -p $out/$path; cp $out/share/"${video-pauser.pname}".json $out/$path/ - done + done < "$nmp" ''; } |