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
Added nix-direnv flake
master
1 parent
556d8e6
commit
cabec37bbe9ee4b3f7420c4dc9ec295579e7710d
Nigel Stanger
authored
on 19 Jun
Patch
Showing
4 changed files
calendar/.envrc
calendar/.gitignore
calendar/flake.lock
calendar/flake.nix
Ignore Space
Show notes
View
calendar/.envrc
0 → 100644
use flake .
Ignore Space
Show notes
View
calendar/.gitignore
lecturedates_config.php calendar_config.php .direnv .calendar *.tex
lecturedates_config.php calendar_config.php
Ignore Space
Show notes
View
calendar/flake.lock
0 → 100644
{ "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
0 → 100644
{ 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 ''; }; }); }; }
Show line notes below