Skip to content

Commit 9ec4235

Browse files
committed
docs: split nix docs for nixos and nix-shell
1 parent e7e8172 commit 9ec4235

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ pip install git+https://github.com/stackabletech/beku.py.git@master
2121

2222
Or via Nix:
2323

24+
<details>
25+
<summary>NixOs</summary>
26+
2427
```nix
2528
{ lib, pkgs, ... }:
2629
with lib;
2730
let
2831
beku = (import (pkgs.fetchFromGitHub {
2932
owner = "stackabletech";
3033
repo = "beku.py";
31-
rev = "062defa4da2ec504c38d3a21916e871fd95d03f6"; # commit hash
32-
hash = "sha256-Oq8BhByYDptD84551Rodi6T7MwI8e/6dxIX7p0xNK+A="; # use lib.fakeHash to find new hashes when upgrading
34+
rev = "145e8210f5786b8128e3af43f60b61f065cc2c39";
35+
hash = "sha256-hLaIY4BE+VIMeKmS3JLOZy87OC2VuQtbX/NCIbQr2p4="; # use lib.fakeHash to find new hashes when upgrading
3336
}) {}).beku;
3437
in
3538
{
@@ -42,6 +45,31 @@ in
4245
}
4346
```
4447

48+
</details>
49+
50+
<details>
51+
<summary>Nix Shell</summary>
52+
53+
```nix
54+
let
55+
beku = pkgs.callPackage (pkgs.fetchFromGitHub {
56+
owner = "stackabletech";
57+
repo = "beku.py";
58+
rev = "145e8210f5786b8128e3af43f60b61f065cc2c39";
59+
hash = "sha256-hLaIY4BE+VIMeKmS3JLOZy87OC2VuQtbX/NCIbQr2p4="; # use lib.fakeHash to find new hashes when upgrading
60+
} + "/beku.nix") {};
61+
in pkgs.mkShell {
62+
buildInputs = with pkgs; [
63+
beku
64+
# ...
65+
];
66+
67+
# ...
68+
}
69+
```
70+
71+
</details>
72+
4573
## Usage
4674

4775
```sh

0 commit comments

Comments
 (0)