Move top-level module example up in readme, update commit
This commit is contained in:
parent
f91196c8a4
commit
0a5595cea8
1 changed files with 12 additions and 12 deletions
24
readme.md
24
readme.md
|
@ -31,7 +31,18 @@ Not present for all packages.
|
||||||
> You should replace the commits here with the latest one, or whichever one you want to use.
|
> You should replace the commits here with the latest one, or whichever one you want to use.
|
||||||
> The hashes will of course differ.
|
> The hashes will of course differ.
|
||||||
|
|
||||||
Using a specific package:
|
Using the top-level NixOS module:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
imports = [
|
||||||
|
( fetchTarball {
|
||||||
|
url = "https://kernelmaft.com/forgejo/zedfrigg/nix-packages/archive/f91196c8a4a3ba6953c85b94ea75dee5e331548f.tar.gz" ;
|
||||||
|
sha256 = "sha256:1wx7ljabgndandcd11jmr590jfpkhs55mqrgksf24ji90m37wpq0" ;
|
||||||
|
} + "/nixos-module.nix" )
|
||||||
|
] ;
|
||||||
|
```
|
||||||
|
|
||||||
|
Using a specific package expression:
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
pkgs . callPackage ( import ( pkgs . fetchurl {
|
pkgs . callPackage ( import ( pkgs . fetchurl {
|
||||||
|
@ -39,14 +50,3 @@ pkgs . callPackage ( import ( pkgs . fetchurl {
|
||||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" ;
|
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" ;
|
||||||
} ) ) {}
|
} ) ) {}
|
||||||
```
|
```
|
||||||
|
|
||||||
Using the NixOS module:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
imports = [
|
|
||||||
( fetchTarball {
|
|
||||||
url = "https://kernelmaft.com/forgejo/zedfrigg/nix-packages/archive/432123bb0984dd766c16ac06b7e3ef4cfee36145.tar.gz" ;
|
|
||||||
sha256 = "sha256:1wx7ljabgndandcd11jmr590jfpkhs55mqrgksf24ji90m37wpq0" ;
|
|
||||||
} + "/nixos-module.nix" )
|
|
||||||
] ;
|
|
||||||
```
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue