File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,31 @@ nix shell "https://wooper.dev/python3~=3.12;uv~=0.5.0;ruff"
4848
4949Note: ` > ` and ` < ` must be URL-encoded (` %3E ` , ` %3C ` ) as they break Nix's URL parser.
5050
51+ ### Use in a flake
52+
53+ Use wooper.dev as a flake input to pin specific package versions:
54+
55+ ``` nix
56+ {
57+ inputs = {
58+ nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
59+ wooper.url = "https://wooper.dev/uv~=0.5.0;ruff";
60+ };
61+
62+ outputs = { self, nixpkgs, wooper }: let
63+ system = "aarch64-darwin";
64+ pkgs = nixpkgs.legacyPackages.${system};
65+ in {
66+ devShells.${system}.default = pkgs.mkShell {
67+ packages = [
68+ wooper.packages.${system}.uv
69+ wooper.packages.${system}.ruff
70+ ];
71+ };
72+ };
73+ }
74+ ```
75+
5176## API
5277
5378See [ wooper.dev/docs] ( https://wooper.dev/docs ) for all endpoints.
You can’t perform that action at this time.
0 commit comments