d45d243749
Otherwise it would pick various -march flags based on the CPU of the compiling system, using beautiful code like this: ```` 63 AC_CACHE_CHECK(for x86 cpuid $1 output, ax_cv_gcc_x86_cpuid_$1, 64 [AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <stdio.h>], [ 65 int op = $1, eax, ebx, ecx, edx; 66 FILE *f; 67 __asm__("cpuid" 68 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx) 69 : "a" (op)); 70 f = fopen("conftest_cpuid", "w"); if (!f) return 1; 71 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx); 72 fclose(f); 73 return 0; 74 ])], ... 121 AC_CACHE_CHECK([whether avx is supported], [ax_cv_have_avx_ext], 122 [ 123 ax_cv_have_avx_ext=no 124 if test "$((0x$ecx>>28&0x01))" = 1; then 125 ax_cv_have_avx_ext=yes 126 fi 127 ]) ```` |
||
---|---|---|
.github | ||
doc | ||
lib | ||
maintainers | ||
nixos | ||
pkgs | ||
.gitignore | ||
.mention-bot | ||
.travis.yml | ||
.version | ||
COPYING | ||
README.md | ||
default.nix |
README.md
Nixpkgs is a collection of packages for the Nix package manager. It is periodically built and tested by the hydra build daemon as so-called channels. To get channel information via git, add nixpkgs-channels as a remote:
% git remote add channels git://github.com/NixOS/nixpkgs-channels.git
For stability and maximum binary package support, it is recommended to maintain
custom changes on top of one of the channels, e.g. nixos-16.03
for the latest
release and nixos-unstable
for the latest successful build of master:
% git remote update channels
% git rebase channels/nixos-16.03
For pull-requests, please rebase onto nixpkgs master
.
NixOS linux distribution source code is located inside
nixos/
folder.
- NixOS installation instructions
- Documentation (Nix Expression Language chapter)
- Manual (How to write packages for Nix)
- Manual (NixOS)
- Nix Wiki (deprecated, see milestone "Move the Wiki!")
- Continuous package builds for unstable/master
- Continuous package builds for 16.03 release
- Tests for unstable/master
- Tests for 16.03 release
Communication: