aboutsummaryrefslogtreecommitdiff
path: root/corepkgs
AgeCommit message (Collapse)Author
2020-11-18fix typo in comment in fetchurl.nixDavHau
2020-09-17Remove corepkgs/config.nixEelco Dolstra
This isn't used anywhere except in the configure script of the Perl bindings. I've changed the latter to use the C++ API's Settings object at runtime.
2020-09-17Remove corepkgs/unpack-channel.nixEelco Dolstra
2020-09-17Remove corepkgs/derivation.nixEelco Dolstra
2020-03-11Move some corepkgs into the nix binaryEelco 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-25nix-channel: Don't fetch binary-cache-urlEelco Dolstra
This has been ignored since the Perl->C++ rewrite.
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.
2013-08-26Fix typos, especially those that end up in the Nix manualIvan Kozik
2013-08-14corepkgs/nar.nix: Prefer local buildsShea Levy
nar.nix's builder depends on coreutils and nix itself being in $PATH. Unfortunately, there's no good way to ensure that these packages exist in the same place on the remote machine: The local machine may have nix installed in /usr, and the remote machine in /usr/local, but the generated nar.sh builder will refer to /usr and thus fail on the remote machine. This ensures that nar.sh is run on the same machine that instantiates it. Signed-off-by: Shea Levy <shea@shealevy.com>
2013-07-23buildenv: remove special treatment of python filesFlorian Friesdorf
buildPythonPackage does not leave easy_install.pth and site.py anymore. A python package that leaves these files is broken. An exception to this is setuptoolsSite which packages setuptools' site.py. To include it into a buildenv, this patch is even needed, not just cosmetic.
2013-07-12Fix syntax error in unpack-channelEelco Dolstra