GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
1
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
Handbook
Browse code
Updated direnv
master
1 parent
cabec37
commit
fde4ae663521fa8309194bbcef2cba04d9b6af84
Nigel Stanger
authored
on 25 Jun
Patch
Showing
3 changed files
calendar/flake.lock
calendar/flake.nix
calendar/requirements.txt
Ignore Space
Show notes
View
calendar/flake.lock
{ "nodes": { "nixpkgs": { "locked": { "lastModified": 1750622754, "narHash": "sha256-kMhs+YzV4vPGfuTpD3mwzibWUE6jotw5Al2wczI0Pv8=", "owner": "nixos", "repo": "nixpkgs", "rev": "c7ab75210cb8cb16ddd8f290755d9558edde7ee1", "type": "github" }, "original": { "owner": "nixos", "ref": "nixos-25.05", "repo": "nixpkgs", "type": "github" } }, "root": { "inputs": { "nixpkgs": "nixpkgs" } } }, "root": "root", "version": 7 }
{ "nodes": { "nixpkgs": { "locked": { "lastModified": 1718437845, "narHash": "sha256-ZT7Oc1g4I4pHVGGjQFnewFVDRLH5cIZhEzODLz9YXeY=", "owner": "nixos", "repo": "nixpkgs", "rev": "752c634c09ceb50c45e751f8791cb45cb3d46c9e", "type": "github" }, "original": { "owner": "nixos", "ref": "nixos-24.05", "repo": "nixpkgs", "type": "github" } }, "root": { "inputs": { "nixpkgs": "nixpkgs" } } }, "root": "root", "version": 7 }
Ignore Space
Show notes
View
calendar/flake.nix
{ description = "Teaching calendar flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05"; }; outputs = { self, nixpkgs }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { pkgs = import nixpkgs { inherit system; }; }); in { devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell rec { name = "calendar"; venvDir = "./.calendar"; packages = with pkgs; [ python3 python3Packages.venvShellHook python3Packages.jinja2 python3Packages.num2words python3Packages.pyyaml ]; # postVenvCreation = '' # pip install -r ${./requirements.txt} # ''; shellHook = '' venvShellHook ''; }; }); }; }
{ description = "Teaching calendar flake"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; }; outputs = { self, nixpkgs }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ]; forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { pkgs = import nixpkgs { inherit system; }; }); in { devShells = forEachSupportedSystem ({ pkgs }: { default = pkgs.mkShell rec { name = "calendar"; venvDir = "./.calendar"; packages = with pkgs; [ python3 python3Packages.venvShellHook ]; postVenvCreation = '' pip install -r ${./requirements.txt} ''; shellHook = '' venvShellHook ''; }; }); }; }
Ignore Space
Show notes
View
calendar/requirements.txt
jinja2 num2words PyYAML
Show line notes below