diff options
author | Janne Heß <janne@hess.ooo> | 2024-03-27 17:33:27 +0100 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2024-03-28 09:28:12 +0100 |
commit | bc77c7a9730833c7668c92288c6af950e7270cb5 (patch) | |
tree | 63a416edaa93c9899044ca886aaf6976474946ed /doc/languages-frameworks/lisp.section.md | |
parent | 3a1b8df5dcf930de90b45694dd3ee5d142344123 (diff) |
treewide: Mark Nix blocks in markdown as Nix
This should help us with highlighting and future formatting.
Diffstat (limited to 'doc/languages-frameworks/lisp.section.md')
-rw-r--r-- | doc/languages-frameworks/lisp.section.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/languages-frameworks/lisp.section.md b/doc/languages-frameworks/lisp.section.md index 09193093b08fa..f64942338f806 100644 --- a/doc/languages-frameworks/lisp.section.md +++ b/doc/languages-frameworks/lisp.section.md @@ -45,7 +45,7 @@ $ sbcl Also one can create a `pkgs.mkShell` environment in `shell.nix`/`flake.nix`: -``` +```nix let sbcl' = sbcl.withPackages (ps: [ ps.alexandria ]); in mkShell { @@ -55,7 +55,7 @@ in mkShell { Such a Lisp can be now used e.g. to compile your sources: -``` +```nix buildPhase = '' ${sbcl'}/bin/sbcl --load my-build-file.lisp '' @@ -173,7 +173,7 @@ into the package scope with `withOverrides`. A package defined outside Nixpkgs using `buildASDFSystem` can be woven into the Nixpkgs-provided scope like this: -``` +```nix let alexandria = sbcl.buildASDFSystem rec { pname = "alexandria"; @@ -199,7 +199,7 @@ new package with different parameters. Example of overriding `alexandria`: -``` +```nix sbcl.pkgs.alexandria.overrideLispAttrs (oldAttrs: rec { version = "1.4"; src = fetchFromGitLab { @@ -225,7 +225,7 @@ vice versa. To package slashy systems, use `overrideLispAttrs`, like so: -``` +```nix ecl.pkgs.alexandria.overrideLispAttrs (oldAttrs: { systems = oldAttrs.systems ++ [ "alexandria/tests" ]; lispLibs = oldAttrs.lispLibs ++ [ ecl.pkgs.rt ]; @@ -290,7 +290,7 @@ derivation. This example wraps CLISP: -``` +```nix wrapLisp { pkg = clisp; faslExt = "fas"; |