mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 09:36:47 +02:00
Get rid of bootstrap.sh
For people working on Nix with `nix develop`, it's better to just use `autoreconfPhase` and `configurePhase`, which is standard Nixpkgs / nix shell make from Nixpkgs practice --- it is good to emphasize the degree to which Nix is *just* a regular C++ project which can be worked on in the regular way. (For people running `nix-shell`, the story is similar, except `configurePhase` would use non-writable store paths, which matters for hte times we use output paths before `make install`, so I kept the existing `./configure ...` instruction.) For people building Nix without Nix (e.g. packaging it for another distro) they also don't need `bootstrap.sh`, and can just run `autoreconf -vfi` directly. (More likely, they have their own idioms to do this just as we have `autoreconfPhase`.)
This commit is contained in:
parent
22513c91dc
commit
2f0b508c29
3 changed files with 4 additions and 8 deletions
|
@ -1,4 +0,0 @@
|
||||||
#! /bin/sh -e
|
|
||||||
rm -f aclocal.m4
|
|
||||||
mkdir -p config
|
|
||||||
exec autoreconf -vfi
|
|
|
@ -42,8 +42,8 @@ $ nix develop .#native-clang11StdenvPackages
|
||||||
To build Nix itself in this shell:
|
To build Nix itself in this shell:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
[nix-shell]$ ./bootstrap.sh
|
[nix-shell]$ autoreconfPhase
|
||||||
[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/outputs/out
|
[nix-shell]$ configurePhase
|
||||||
[nix-shell]$ make -j $NIX_BUILD_CORES
|
[nix-shell]$ make -j $NIX_BUILD_CORES
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ $ nix-shell --attr devShells.x86_64-linux.native-clang11StdenvPackages
|
||||||
To build Nix itself in this shell:
|
To build Nix itself in this shell:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
[nix-shell]$ ./bootstrap.sh
|
[nix-shell]$ autoreconfPhase
|
||||||
[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/outputs/out
|
[nix-shell]$ ./configure $configureFlags --prefix=$(pwd)/outputs/out
|
||||||
[nix-shell]$ make -j $NIX_BUILD_CORES
|
[nix-shell]$ make -j $NIX_BUILD_CORES
|
||||||
```
|
```
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
After cloning Nix's Git repository, issue the following commands:
|
After cloning Nix's Git repository, issue the following commands:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ ./bootstrap.sh
|
$ autoreconf -vfi
|
||||||
$ ./configure options...
|
$ ./configure options...
|
||||||
$ make
|
$ make
|
||||||
$ make install
|
$ make install
|
||||||
|
|
Loading…
Reference in a new issue