diff options
author | Soispha <soispha@vhack.eu> | 2023-10-24 14:01:18 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-10-24 14:01:18 +0200 |
commit | 329d3e51acc5ec9fe5fc671bd8a2107e0a3ef2d8 (patch) | |
tree | 77a3b1ae2b84e2e5a794aa531ad84fc40c322c95 | |
parent | build(treewide): Update (diff) | |
download | nixos-config-329d3e51acc5ec9fe5fc671bd8a2107e0a3ef2d8.tar.gz nixos-config-329d3e51acc5ec9fe5fc671bd8a2107e0a3ef2d8.zip |
fix(hm/conf/firefox/extensions/nmh): Fully rename to video pause
-rw-r--r-- | hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/default.nix | 2 | ||||
-rw-r--r-- | hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pause.nix (renamed from hm/soispha/conf/firefox/config/extensions/native_messaging_hosts/video-pauser.nix) | 14 |
2 files changed, 8 insertions, 8 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 14f4e257..e0ee1dfa 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 @@ -3,7 +3,7 @@ video_pause, ... }: let - video_pause_ext = import ./video-pauser.nix {inherit pkgs video_pause;}; + video_pause_ext = import ./video-pause.nix {inherit pkgs video_pause;}; in /* ++ lib.optional (cfg.enableBrowserpass or false) (lib.getBin browserpass) 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-pause.nix index b3f357e9..2802dfbf 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-pause.nix @@ -4,7 +4,7 @@ ... }: let extensions = builtins.fromJSON (builtins.readFile ../extensions.json); - inherit (extensions) video-pauser; + inherit (extensions) video-pause; in /* mkdir -p $out/lib/mozilla/native-messaging-hosts @@ -13,18 +13,18 @@ in done */ pkgs.stdenv.mkDerivation { - inherit (video-pauser) pname version; + inherit (video-pause) pname version; dontUnpack = true; buildPhase = '' mkdir -p $out/share/ - cat << EOF > $out/share/"${video-pauser.pname}".json + cat << EOF > $out/share/"${video-pause.pname}".json { - "name": "${video-pauser.pname}", + "name": "${video-pause.pname}", "description": "Stop a video with a native hotkey", - "path": "${video_pause}/bin/video_pause", + "path": "${video_pause}/bin/video-pause", "type": "stdio", - "allowed_extensions": ["${video-pauser.addonId}"] + "allowed_extensions": ["${video-pause.addonId}"] } EOF @@ -39,7 +39,7 @@ in while read -r path; do mkdir -p $out/$path; - cp $out/share/"${video-pauser.pname}".json $out/$path/ + cp $out/share/"${video-pause.pname}".json $out/$path/ done < "$nmp" ''; } |