diff options
| author | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-28 11:45:34 +0000 |
|---|---|---|
| committer | Theofilos Augoustis <theofilos.augoustis@tum.de> | 2025-08-28 11:45:34 +0000 |
| commit | b531580e89e83c8557e76be42e435c2e45b8ad9a (patch) | |
| tree | 7c223e50ed08c32266d37d6007abc0b56d93ad6a | |
| parent | 869bad124ea3d1015292dba89fe28cca0edd3abc (diff) | |
| download | focaccia-b531580e89e83c8557e76be42e435c2e45b8ad9a.tar.gz focaccia-b531580e89e83c8557e76be42e435c2e45b8ad9a.zip | |
Add helper app for synchronizing uv
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix index f486171..ae0e37a 100644 --- a/flake.nix +++ b/flake.nix @@ -203,9 +203,21 @@ packages.default = pythonDevEnv; # Default app is just Focaccia - apps.default = { - type = "app"; - program = "${self.packages.default}/bin/focaccia"; + + apps = { + default = { + type = "app"; + program = "${self.packages.default}/bin/focaccia"; + }; + + # Useful for synchronize the uv lockfile + uv-sync = { + type = "app"; + program = "${pkgs.writeShellScriptBin "uv-sync" '' + set -euo pipefail + exec ${pkgs.uv}/bin/uv sync + ''}/bin/uv-sync"; + }; }; # Developer shell that includes Focaccia and QEMU |