envision-unwrapped: 0-unstable-2024-10-20 -> 1.1.1 (#360652)
[NixPkgs.git] / doc / languages-frameworks / index.md
bloba8a13ce5b9e29918b3508942de3d26ec56c13ae0
1 # Languages and frameworks {#chap-language-support}
3 The [standard build environment](#chap-stdenv) makes it easy to build typical Autotools-based packages with very little code. Any other kind of package can be accommodated by overriding the appropriate phases of `stdenv`. However, there are specialised functions in Nixpkgs to easily build packages for other programming languages, such as Perl or Haskell. These are described in this chapter.
5 Each supported language or software ecosystem has its own package set named `<language or ecosystem>Packages`, which can be explored in various ways:
7 - Search on [search.nixos.org](https://search.nixos.org/packages)
9   For example, search for [`haskellPackages`](https://search.nixos.org/packages?query=haskellPackages) or [`rubyPackages`](https://search.nixos.org/packages?query=rubyPackages).
11 - Navigate attribute sets with [`nix repl`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-repl).
13   This technique is generally useful to inspect Nix language data structures.
15   :::{.example #example-navigte-nix-repl}
17   # Navigate Java compiler variants in `javaPackages` with `nix repl`
19   ```shell-session
20   $ nix repl '<nixpkgs>' -I nixpkgs=channel:nixpkgs-unstable
21   nix-repl> javaPackages.<tab>
22   javaPackages.compiler               javaPackages.openjfx15              javaPackages.openjfx21              javaPackages.recurseForDerivations
23   javaPackages.jogl_2_4_0             javaPackages.openjfx17              javaPackages.openjfx22
24   javaPackages.mavenfod               javaPackages.openjfx19              javaPackages.override
25   javaPackages.openjfx11              javaPackages.openjfx20              javaPackages.overrideDerivation
26   ```
27   :::
29 - List all derivations on the command line with [`nix-env --query`](https://nixos.org/manual/nix/stable/command-ref/nix-env/query).
31   `nix-env` is the only convenient way to do that, as it will skip attributes that fail [assertions](https://nixos.org/manual/nix/stable/language/constructs#assertions), such as when a package is [marked as broken](#var-meta-broken), rather than failing the entire evaluation.
33   :::{.example #example-list-haskellPackages}
35   # List all Python packages in Nixpkgs
37   The following command lists all [derivations names](https://nixos.org/manual/nix/stable/language/derivations#attr-name) with their attribute path from the latest Nixpkgs rolling release (`nixpkgs-unstable`).
39   ```shell-session
40   $ nix-env -qaP -f '<nixpkgs>' -A pythonPackages -I nixpkgs=channel:nixpkgs-unstable
41   ```
43   ```console
44   pythonPackages.avahi                                                  avahi-0.8
45   pythonPackages.boost                                                  boost-1.81.0
46   pythonPackages.caffe                                                  caffe-1.0
47   pythonPackages.caffeWithCuda                                          caffe-1.0
48   pythonPackages.cbeams                                                 cbeams-1.0.3
49   …
50   ```
51   :::
53 ```{=include=} sections
54 agda.section.md
55 android.section.md
56 beam.section.md
57 bower.section.md
58 chicken.section.md
59 coq.section.md
60 crystal.section.md
61 cuda.section.md
62 cuelang.section.md
63 dart.section.md
64 dhall.section.md
65 dlang.section.md
66 dotnet.section.md
67 emscripten.section.md
68 gnome.section.md
69 go.section.md
70 gradle.section.md
71 hare.section.md
72 haskell.section.md
73 hy.section.md
74 idris.section.md
75 idris2.section.md
76 ios.section.md
77 java.section.md
78 javascript.section.md
79 julia.section.md
80 lisp.section.md
81 lua.section.md
82 maven.section.md
83 nim.section.md
84 ocaml.section.md
85 octave.section.md
86 perl.section.md
87 php.section.md
88 pkg-config.section.md
89 python.section.md
90 qt.section.md
91 r.section.md
92 ruby.section.md
93 rust.section.md
94 scheme.section.md
95 swift.section.md
96 tcl.section.md
97 texlive.section.md
98 titanium.section.md
99 vim.section.md