summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support
AgeCommit message (Collapse)Author
2018-04-28buildFHSUserEnv: change to root directory after chrootLinus Heckemann
Fixes #38525
2018-04-25treewide: isArm -> isAarch32John Ericson
Following legacy packing conventions, `isArm` was defined just for 32-bit ARM instruction set. This is confusing to non packagers though, because Aarch64 is an ARM instruction set. The official ARM overview for ARMv8[1] is surprisingly not confusing, given the overall state of affairs for ARM naming conventions, and offers us a solution. It divides the nomenclature into three levels: ``` ISA: ARMv8 {-A, -R, -M} / \ Mode: Aarch32 Aarch64 | / \ Encoding: A64 A32 T32 ``` At the top is the overall v8 instruction set archicture. Second are the two modes, defined by bitwidth but differing in other semantics too, and buttom are the encodings, (hopefully?) isomorphic if they encode the same mode. The 32 bit encodings are mostly backwards compatible with previous non-Thumb and Thumb encodings, and if so we can pun the mode names to instead mean "sets of compatable or isomorphic encodings", and then voilà we have nice names for 32-bit and 64-bit arm instruction sets which do not use the word ARM so as to not confused either laymen or experienced ARM packages. [1]: https://developer.arm.com/products/architecture/a-profile
2018-04-24Merge pull request #38822 from matthewbauer/netbsdMatthew Justin Bauer
Introducing NetBSD userland
2018-04-24bsd: init netbsd & openbsd userlandMatthew Bauer
Adds a couple of useful NetBSD and OpenBSD derivations. Some of these will be integrated into Nixpkgs later. Noncomprehensive list: - netbsd.getent - netbsd.getconf - netbsd.fts - openbsd.mg - netbsd.compat (can replace libbsd)
2018-04-24cvs: support ssh accessMatthew Bauer
hacky wrapper handles ssh issues in nix builders
2018-04-22vmTools: update Debian 9 names and hashesHenry Till
2018-04-19Merge pull request #39003 from P-E-Meunier/carnix-0.7Matthew Justin Bauer
Carnix: 0.6 -> 0.7
2018-04-16disable parallel rustc (-C codegen-units=1)pe@pijul.org
2018-04-16Update to 0.7.2pe@pijul.org
2018-04-16Carnix 0.7pe@pijul.org
2018-04-16dockerTools.buildImage: add /nix/store with correct permissionsJean-Philippe Braun
Fixes #38835.
2018-04-15requireFile: exit with non-zero error messageLinus Heckemann
Since the script running is a failure condition, we should fail the build properly, not leaving it up to the missing output to determine that the build went wrong. This should partly address #38952 — nix build will print out the build log on non-zero exits.
2018-04-14Revert "buildSetupcfg: Include unzip for zip sources."Shea Levy
Misunderstood the error I was seeing. This reverts commit 0d3eb701333006ce73b6abadea4d95f52d1105f3.
2018-04-14buildSetupcfg: Include unzip for zip sources.Shea Levy
2018-04-13Merge pull request #38881 from obsidiansystems/sierra-hackJohn Ericson
cc-wrapper: More intelligent sierra hack
2018-04-13cc-wrapper: Utilize patched cctools ld for more robust macOS Sierra hackJohn Ericson
Also fix numberous bugs, such as: - Not getting confused on more flags taking file arguments. - Ensuring children reexport their children, but the original binary/library doesn't. - Not spawning children when it turns out we just dynamically link under the threshold but our total number of inputs exceeeds it. - Children were always named `libunnamed-*`, when that name was supposed to be the last resort only. ld-wrapper's own RPATH check hardcodes `.so`, but darwin uses `.dylib` *and* (in practice due to lousy build systems) `.so`. We don't care however because we never inject `--rpath` like that in practice on Darwin. Hopefully someday we won't on linux either.
2018-04-13pythonPackages.buildSetupcfg: Allow disabling tests.Shea Levy
2018-04-12kernel: Fix running kernels *with* modulesaszlig
Pull request #38470 added support for running/building kernels without modules. This got merged in 38e04bbf29fe3b6af26b3505a42ce5871aeac17d but unfortunately while this works perfectly on kernels without modules it also makes sure that *every* kernel gets no modules. So all of our VM tests fail since that merge with something like this: machine# loading module loop... machine# modprobe: FATAL: Module loop not found in directory /lib/modules/4.14.33 machine# loading module vfat... machine# modprobe: FATAL: Module vfat not found in directory /lib/modules/4.14.33 machine# loading module nls_cp437... machine# modprobe: FATAL: Module nls_cp437 not found in directory /lib/modules/4.14.33 machine# loading module nls_iso8859-1... machine# modprobe: FATAL: Module nls_iso8859-1 not found in directory /lib/modules/4.14.33 machine# loading module fuse... machine# modprobe: FATAL: Module fuse not found in directory /lib/modules/4.14.33 machine# loading module dm_mod... machine# modprobe: FATAL: Module dm_mod not found in directory /lib/modules/4.14.33 I shortly tested this against the "misc" VM test and the test is working again. In the long term (and I currently don't have time for this) it would be better to also have a VM test which tests a kernel without modules. Signed-off-by: aszlig <aszlig@nix.build> Cc: @roberth, @7c6f434c
2018-04-12Merge pull request #38470 from roberth/linux-without-modulesMichael Raskin
linux module handling: support kernels without modules
2018-04-11Add setupcfg2nix and supporting infrastructureShea Levy
2018-04-10Revert "Merge pull request #28029 from cstrahan/hardening-fix"Matthew Bauer
This reverts commit 0dbc0067604eb9629d1458fcf2b226a88e728f14, reversing changes made to cb7f7742652acdf3086b3d132163b5ea2c2328eb. Should go into staging.
2018-04-10Merge pull request #28029 from cstrahan/hardening-fixJohn Ericson
hardening: fix #18995
2018-04-10hardening: ReindentJohn Ericson
2018-04-10hardening: Tiny reindentJohn Ericson
2018-04-10hardening: line order, spacing, and pointless quoting for consistencyJohn Ericson
2018-04-10hardenning: Rejigger ifs and explicit declare and unset -vJohn Ericson
2018-04-10hardening: simplify reporting of disabled flagsCharles Strahan
2018-04-10hardening: make requested fixesCharles Strahan
2018-04-10vmTools: Add crc32c_generic to the initrdEelco Dolstra
This is necessary due to a e2fsprogs update (e6114781b0fad5345a2430fac3587d618273bda2) that causes mke2fs to enable a feature (metadata_csum) that depends on crc32c. https://hydra.nixos.org/build/72636785
2018-04-09Merge pull request #25148 from obsidiansystems/docker-dirlinksRyan Trinkle
dockerTools: optionally preserve directory symlinks
2018-04-07rust: Allow setting cargoSha256 to null.Kevin Cox
Setting the hash to null is a convenient way to bypass the hash check while developing. It looks like the ability to do this was inadvertently removed while adding vendor directory support. This still checks that the user is explicitly setting the value but allows null as a valid option.
2018-04-05linux module handling: support kernels without modulesRobert Hensing
2018-03-28Merge pull request #37928 from VShell/patch-2Jörg Thalheim
buildRustCrate: fix equality testing
2018-03-28buildRustCrate: remove ancient test guardsJörg Thalheim
Let's leave x"" to the 1990s, where they belong
2018-03-27Added bionic dynamic linkerWill Fancher
2018-03-27buildRustCrate: fix equality testingShell Turner
Use string equality instead of integer equality.
2018-03-26dockerTools.tarsum: Fix upstream importSarah Brofeldt
2018-03-22Fix typoEelco Dolstra
2018-03-21Merge pull request #36906 from nlewo/pr/docker-reproduciblelewo
Improve Docker image build reproducibility
2018-03-15Merge commit '3ab2949' from staging into masterTuomas Tynkkynen
Conflicts: pkgs/development/compilers/llvm/6/llvm.nix pkgs/servers/home-assistant/component-packages.nix
2018-03-14Merge pull request #36845 from jbedo/singularitylewo
singularity: 2.4 -> 2.4.2
2018-03-13Merge remote-tracking branch 'upstream/master' into stagingTuomas Tynkkynen
Conflicts: pkgs/development/tools/build-managers/conan/default.nix
2018-03-13fetchurl: remove broken samba mirrorFranz Pletz
2018-03-13dockerTools: add --sort=name options on all tar callsAntoine Eiche
This is to go to a reproducible image build. Note without this options image are identical from the Docker point of view but generated docker archives could have different hashes.
2018-03-13dockerTools: dereference hard links in tar archivesAntoine Eiche
This is to improve image creation reproducibility. Since the nar format doesn't support hard link, the tar stream of a layer can be different if a dependency of a layer has been built locally or if it has been fetched from a binary cache. If the dependency has been build locally, it can contain hard links which are encoded in the tar stream. If the dependency has been fetched from a binary cache, the tar stream doesn't contain any hard link. So even if the content is the same, tar streams are different.
2018-03-13dockerTools: add an onTopOfPulledImage exampleAntoine Eiche
This allows to test if a pulled image can be updated by using our Docker tools.
2018-03-12singularity: 2.4 -> 2.4.2Justin Bedo
2018-03-11buildFHSEnv: export TZDIRNikolay Amiantov
This is needed since NixOS keeps tzdata in non-standard /etc/zoneinfo path.
2018-03-10buildFHSEnv: fix compiler search pathsNikolay Amiantov
Fixes OpenWrt compilation.
2018-03-10Merge branch 'master' into stagingJan Malakhovski
Resolved the following conflicts (by carefully applying patches from the both branches since the fork point): pkgs/development/libraries/epoxy/default.nix pkgs/development/libraries/gtk+/3.x.nix pkgs/development/python-modules/asgiref/default.nix pkgs/development/python-modules/daphne/default.nix pkgs/os-specific/linux/systemd/default.nix