Nix (package manager)/ja: Difference between revisions
Created page with "=== Nix コマンド ===" Tags: Mobile edit Mobile web edit |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
{{Navbox Nix}} | {{Navbox Nix}} | ||
{{Disambiguation|message=これは、Nix package managerのページです。[[Nix ecosystem]] や [[Nix (language)|Nix language]] 、 [[Nix (command)|Nix command]] とは異なります。}} | {{Disambiguation|message=これは、Nix package managerのページです。[[Nix ecosystem]] や [[Nix (language)|Nix language]] 、 [[Nix (command)|Nix command]] とは異なります。}} | ||
Nixは、[[Nix Expression Language]] | Nixは、[[Nix Expression Language]] で表現された再現可能なビルド命令を解析するパッケージマネージャーおよびビルドシステムであり、これは遅延評価を伴う純粋関数型言語である。Nix expressions は、依存関係を引数として取り、パッケージに対して再現可能なビルド環境''[[Derivations|derivation]]''を作成する純粋関数<ref>変数は不変で、引数が変化しない場合、関数は常に同じ値を返す。</ref>です。Nixは、ビルドの結果を完全な依存関係ツリーのハッシュで指定された一意のアドレスに保存し、不変のパッケージストアを作成することで、原子的な更新、ロールバックを実現する。また、異なるバージョンのパッケージを同時にインストールすることで、根本的に[https://ja.wikipedia.org/wiki/%E4%BE%9D%E5%AD%98%E9%96%A2%E4%BF%82%E5%9C%B0%E7%8D%84 依存関係地獄]を防ぐ。 | ||
<span id="Usage"></span> | <span id="Usage"></span> | ||
| Line 8: | Line 8: | ||
=== インストール === | === インストール === | ||
[[NixOS]]では、Nix | [[NixOS]]では、Nix は最初からインストールされている。 | ||
他の Linux ディストリビューションや macOS 上では、[https://nixos.org/manual/nix/stable/installation/installation installation section of the Nix manual] | 他の Linux ディストリビューションや macOS 上では、[https://nixos.org/manual/nix/stable/installation/installation installation section of the Nix manual]に従ってインストールできる。 | ||
<span id="Nix_commands"></span> | <span id="Nix_commands"></span> | ||
=== Nix コマンド === | === Nix コマンド === | ||
[[Nix (command line utilities)|Nix コマンド]]は、[https://nixos.org/manual/nix/stable/command-ref/command-ref Nix リファレンスマニュアル]に、主なコマンド、ユーティリティ、および実験コマンドが文書化されている。バージョン2.0(2018年2月リリース)以前は、さまざまなコマンドが存在していた。 | |||
=== 設定 === | |||
== | NixOS 上では、[https://search.nixos.org/options?query=nix. <code>nix</code> option]を用いてNixで設定することができる。 | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||