Skip to content

Commit eb6b77a

Browse files
committed
docs: nix install instructions
1 parent b4f045d commit eb6b77a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,29 @@ pip install beku-stackabletech
1919
pip install git+https://github.com/stackabletech/beku.py.git@master
2020
```
2121

22+
Or via Nix:
23+
24+
```nix
25+
{ lib, pkgs, ... }:
26+
with lib;
27+
let
28+
beku = (import (pkgs.fetchFromGitHub {
29+
owner = "stackabletech";
30+
repo = "beku.py";
31+
rev = "062defa4da2ec504c38d3a21916e871fd95d03f6"; # commit hash
32+
hash = "sha256-Oq8BhByYDptD84551Rodi6T7MwI8e/6dxIX7p0xNK+A="; # use lib.fakeHash to find new hashes when upgrading
33+
}) {}).cargo.workspaceMembers.stackablectl.build;
34+
in
35+
{
36+
packages = with pkgs; [
37+
beku
38+
# ...
39+
];
40+
41+
// ...
42+
}
43+
```
44+
2245
## Usage
2346

2447
```sh

0 commit comments

Comments
 (0)