aboutsummaryrefslogtreecommitdiff
path: root/corepkgs
AgeCommit message (Collapse)Author
2020-03-11Move call-flake.nix into libexprEelco Dolstra
2020-03-11Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2020-03-11Move some corepkgs into the nix binaryEelco Dolstra
2020-03-10Fix flake subdirectory handlingEelco Dolstra
2020-03-09Move calling flakes into a Nix helper function (call-flake.nix)Eelco Dolstra
2019-12-04Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-11-26Remove most of <nix/config.nix>Eelco Dolstra
This is no longer needed.
2019-11-26Make <nix/unpack-channel.nix> a builtin builderEelco Dolstra
This was the last function using a shell script, so this allows us to get rid of tar, coreutils, bash etc.
2019-06-25Merge remote-tracking branch 'origin/master' into flakesEelco Dolstra
2019-06-25nix-channel: Don't fetch binary-cache-urlEelco Dolstra
This has been ignored since the Perl->C++ rewrite.
2019-02-12nix: Enable pure mode by defaultEelco Dolstra
We want to encourage a brave new world of hermetic evaluation for source-level reproducibility, so flakes should not poke around in the filesystem outside of their explicit dependencies. Note that the default installation source remains impure in that it can refer to mutable flakes, so "nix build nixpkgs.hello" still works (and fetches the latest nixpkgs, unless it has been pinned by the user). A problem with pure evaluation is that builtins.currentSystem is unavailable. For the moment, I've hard-coded "x86_64-linux" in the nixpkgs flake. Eventually, "system" should be a flake function argument.
2019-02-11Initial flake supportEelco Dolstra
2018-12-13Support SRI hashesEelco Dolstra
SRI hashes (https://www.w3.org/TR/SRI/) combine the hash algorithm and a base-64 hash. This allows more concise and standard hash specifications. For example, instead of import <nix/fetchurl.nl> { url = https://nixos.org/releases/nix/nix-2.1.3/nix-2.1.3.tar.xz; sha256 = "5d22dad058d5c800d65a115f919da22938c50dd6ba98c5e3a183172d149840a4"; }; you can write import <nix/fetchurl.nl> { url = https://nixos.org/releases/nix/nix-2.1.3/nix-2.1.3.tar.xz; hash = "sha256-XSLa0FjVyADWWhFfkZ2iKTjFDda6mMXjoYMXLRSYQKQ="; }; In fixed-output derivations, the outputHashAlgo is no longer mandatory if outputHash specifies the hash (either as an SRI or in the old "<type>:<hash>" format). 'nix hash-{file,path}' now print hashes in SRI format by default. I also reverted them to use SHA-256 by default because that's what we're using most of the time in Nixpkgs. Suggested by @zimbatm.
2018-03-20Make <nix/buildenv.nix> a builtin builderEelco Dolstra
This avoids sandbox annoyances.
2018-01-16<nix/fetchurl.nix>: Don't access builtins.currentSystemEelco Dolstra
This doesn't work in pure evaluation mode.
2017-07-04<nix/fetchurl.nix>: Support sha512 argumentEelco Dolstra
2017-03-31Merge branch 'remove-perl' of https://github.com/shlevy/nixEelco Dolstra
2017-02-27unpack-channel.nix: fix 'mv' corner caseBjørn Forsman
unpack-channel.nix fails if the tarball contains a directory named the same as the channel: mv: cannot move 'nixpkgs' to a subdirectory of itself, '.../nixpkgs' This commit fixes that by not moving the directory if it already has the correct name.
2017-02-16<nix/fetchurl.nix>: Remove unnecessary assertionEelco Dolstra
2017-02-07Add nix-perl package for the perl bindingsShea Levy
2016-11-26Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25Get rid of unicode quotes (#1140)Guillaume Maudoux
2016-09-22<nix/fetchurl.nix>: Support nix-prefetch-urlEelco Dolstra
2016-08-11Remove nar.nixEelco Dolstra
This was only used by nix-push.
2016-08-11Drop an unnecessary use of <nix/config.nix>Eelco Dolstra
2016-08-11buildenv: perl -> c++Shea Levy
2016-01-18<nix/buildenv.nix>: Don't substituteEelco Dolstra
This should get rid of a certificate warning from "nix-env -i" early in the install script.
2016-01-06TypoEelco Dolstra
2015-11-14update sandbox profiles within nixJude Taylor
2015-11-08Only require libsystem on darwinShea Levy
Fixes #688
2015-10-30<nix/fetchurl.nix>: Support downloading and unpacking NARsEelco Dolstra
This removes the need to have multiple downloads in the stdenv bootstrap process (like a separate busybox binary for Linux, or curl/mkdir/sh/bzip2 for Darwin). Now all those files can be combined into a single NAR.
2015-10-21now that resolve-system-dependencies exists, remove redundant impureHostDeps ↵Jude Taylor
from buildenv
2015-10-21give buildenv __impureHostDepsJude Taylor
2015-07-23Fix fetchurl of executable fileEelco Dolstra
Pointed out by @cstrahan, thanks!
2015-07-23Importing derivations: Add name attribute to make a valid drvShea Levy
2015-07-20Make <nix/fetchurl.nix> a builtin builderEelco Dolstra
This ensures that 1) the derivation doesn't change when Nix changes; 2) the derivation closure doesn't contain Nix and its dependencies; 3) we don't have to rely on ugly chroot hacks.
2015-03-24Don't rely on __noChroot for corepkgsEelco Dolstra
This doesn't work anymore if the "strict" chroot mode is enabled. Instead, add Nix's store path as a dependency. This ensures that its closure is present in the chroot.
2014-08-20Use proper quotes everywhereEelco Dolstra
2014-07-16Pass *_proxy vars to bootstrap fetchurlShea Levy
2014-04-04derivation: Don't require certain function argumentsEelco Dolstra
Turns out that in Nixpkgs, derivation is actually called without a ‘name’ argument in some places :-(
2014-04-04Pass position information to primop callsEelco Dolstra
For example: error: `tail' called on an empty list, at /home/eelco/Dev/nixpkgs/pkgs/applications/misc/hello/ex-2/default.nix:13:7
2014-02-01Remove AutomakefilesEelco Dolstra
2014-02-01Update Makefile variable namesEelco Dolstra
2014-01-30Rename Makefile -> local.mkEelco Dolstra
2013-11-25Add support for ‘make installcheck’Eelco Dolstra
2013-11-25Rename Makefile.new -> MakefileEelco Dolstra
2013-11-25Add a Makefile for the scripts directoryEelco Dolstra
2013-11-25Add a function for instantiating Autoconf *.in filesEelco Dolstra
2013-11-25Add a generic rule for installing filesEelco Dolstra
2013-09-02Lower xz compression levelEelco Dolstra
Fixes #84.