Skip to content

Commit fad6b34

Browse files
committed
docs: unify nix/nixos docs
1 parent 9ec4235 commit fad6b34

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

README.md

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

22-
Or via Nix:
23-
24-
<details>
25-
<summary>NixOs</summary>
22+
Or via NixOS and Nix Shell:
2623

2724
```nix
2825
{ lib, pkgs, ... }:
2926
with lib;
3027
let
31-
beku = (import (pkgs.fetchFromGitHub {
28+
beku = pkgs.callPackage(pkgs.fetchFromGitHub {
3229
owner = "stackabletech";
3330
repo = "beku.py";
3431
rev = "145e8210f5786b8128e3af43f60b61f065cc2c39";
3532
hash = "sha256-hLaIY4BE+VIMeKmS3JLOZy87OC2VuQtbX/NCIbQr2p4="; # use lib.fakeHash to find new hashes when upgrading
36-
}) {}).beku;
33+
} + "/beku.nix") {};
3734
in
3835
{
3936
packages = with pkgs; [
@@ -45,31 +42,6 @@ in
4542
}
4643
```
4744

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-
7345
## Usage
7446

7547
```sh

0 commit comments

Comments
 (0)