Skip to content

Commit cbd5285

Browse files
committed
readme
1 parent 046a6b2 commit cbd5285

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,31 @@ nix shell "https://wooper.dev/python3~=3.12;uv~=0.5.0;ruff"
4848

4949
Note: `>` 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

5378
See [wooper.dev/docs](https://wooper.dev/docs) for all endpoints.

0 commit comments

Comments
 (0)