Nixpkgs/Building RPM DEB with nixpkgs: Difference between revisions
imported>Das-g m fix/wikify numbered list |
imported>Matthiasbeyer m Do not mention "the author" |
||
| Line 20: | Line 20: | ||
The host machine has to be prepared for the build process. | The host machine has to be prepared for the build process. | ||
In the | In the evaluation for this article, a CentOS 7 amd64 machine running in vmware was used. | ||
On the machine, the nix package manager was installed via <code><nowiki>curl https://nixos.org/nix/install | sh</nowiki></code> as suggested on https://nixos.org/nix/ > "Get Nix". | On the machine, the nix package manager was installed via <code><nowiki>curl https://nixos.org/nix/install | sh</nowiki></code> as suggested on https://nixos.org/nix/ > "Get Nix". | ||
| Line 34: | Line 34: | ||
== How to build a deb/rpm with nixpkgs == | == How to build a deb/rpm with nixpkgs == | ||
The | The following approach can be used to try out building a <code>.deb</code> package with nixpkgs: | ||
# Clone the official nixpkgs repository into <code>~/nixpkgs</code> | # Clone the official nixpkgs repository into <code>~/nixpkgs</code> | ||