From 4271564beea263b21c31c0512995ff616c69a05c Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 22 Oct 2023 14:18:05 +0200 Subject: feat(hm/conf/firefox/scripts): Package through the flake outputs --- hm/soispha/conf/firefox/scripts/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 hm/soispha/conf/firefox/scripts/default.nix (limited to 'hm') diff --git a/hm/soispha/conf/firefox/scripts/default.nix b/hm/soispha/conf/firefox/scripts/default.nix new file mode 100644 index 00000000..a7270980 --- /dev/null +++ b/hm/soispha/conf/firefox/scripts/default.nix @@ -0,0 +1,29 @@ +{ + pkgs, + sysLib, + ... +}: let + unzip_mozlz4 = pkgs.stdenv.mkDerivation { + name = "unzip_mozlz4"; + propagatedBuildInputs = [ + (pkgs.python3.withPackages (pythonPackages: + with pythonPackages; [ + lz4 + ])) + ]; + dontUnpack = true; + installPhase = "install -Dm755 ${./unzip_mozlz4.py} $out/bin/unzip_mozlz4"; + }; + extract_cookies = sysLib.writeShellScriptWithLibrary { + name = "extract_cookies"; + src = ./extract_cookies.sh; + dependencies = with pkgs; [ + bash + sqlite + mktemp + coreutils + ]; + }; +in { + inherit unzip_mozlz4 extract_cookies; +} -- cgit 1.4.1