doc: update Nix code snippets format
Command: `mdcr --config doc/tests/mdcr-config.toml doc/`
This commit is contained in:
committed by
Valentin Gagarin
parent
5d979e79ce
commit
bcea0cf344
@@ -29,7 +29,11 @@ Given a package `foo` containing an init script `this-foo.fish` that depends on
|
||||
patch the init script for users to source without having the above dependencies in their `PATH`:
|
||||
|
||||
```nix
|
||||
{ lib, stdenv, patchRcPathFish}:
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
patchRcPathFish,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
|
||||
# ...
|
||||
@@ -39,7 +43,13 @@ stdenv.mkDerivation {
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
patchRcPathFish $out/bin/this-foo.fish ${lib.makeBinPath [ coreutils man which ]}
|
||||
patchRcPathFish $out/bin/this-foo.fish ${
|
||||
lib.makeBinPath [
|
||||
coreutils
|
||||
man
|
||||
which
|
||||
]
|
||||
}
|
||||
'';
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user