Reorganize firefox-tabs script into subfolder with flake.nix and plan.md
This commit is contained in:
parent
0e1e54efc3
commit
426bcaefe8
3 changed files with 538 additions and 0 deletions
30
scripts/firefox-tabs/flake.nix
Normal file
30
scripts/firefox-tabs/flake.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
description = "Firefox tabs script environment";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
system = "aarch64-darwin";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pythonEnv = pkgs.python3.withPackages (ps: with ps; [
|
||||
lz4
|
||||
]);
|
||||
in
|
||||
{
|
||||
devShells.${system}.default = pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pythonEnv
|
||||
pkgs.lz4
|
||||
];
|
||||
shellHook = ''
|
||||
echo "Firefox tabs script environment ready"
|
||||
echo "Python: $(which python3)"
|
||||
echo "Run: python3 firefox-tabs.py"
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue