flake.nix for nix develop finished

This commit is contained in:
Birk Bohne 2025-07-31 22:54:41 +02:00
parent 5b850470ba
commit 3435b9813d
No known key found for this signature in database
3 changed files with 74 additions and 21 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.vscode/launch.json
**/.DS_Store
.zed/
**/.venv/

61
slides/flake.lock Normal file
View File

@ -0,0 +1,61 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1753749649,
"narHash": "sha256-+jkEZxs7bfOKfBIk430K+tK9IvXlwzqQQnppC2ZKFj4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "1f08a4df998e21f4e8be8fb6fbf61d11a1a5076a",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

View File

@ -1,24 +1,3 @@
# { ... }:
# let
# pkgs =
# import
# (fetchTarball "https://github.com/NixOS/nixpkgs/archive/10e687235226880ed5e9f33f1ffa71fe60f2638a.tar.gz")
# { };
# in
# pkgs.mkShell {
# packages = [
# (with pkgs; [
# locale
# ])
# (pkgs.python312Full.withPackages (
# python-pkgs: with python-pkgs; [
# pip
# ]
# ))
# ];
# }
{
description = "Python environment";
@ -29,6 +8,7 @@
outputs =
{
self,
nixpkgs,
flake-utils,
}:
@ -50,6 +30,14 @@
]
))
];
shellHook = ''
export PS1='[python][\u@\h:\w]\$ '
python -m venv .venv
source .venv/bin/activate
pip install mkslides --upgrade
deactivate
alias mkslides='.venv/bin/mkslides'
'';
};
}
);