nixpkgs/pkgs/build-support
Maximilian Bosch 1cab56e01a buildEnv: break with a proper error if one path is actually a file
I noticed by creating `buildEnv` where I accidentally put a derivation
from `pkgs.writeText` into `paths` and got a broken build with the
following misleading error message:

```
Use of uninitialized value $stat1 in numeric ne (!=) at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 74.
Use of uninitialized value $stat1 in bitwise and (&) at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 75.
different permissions in `' and `/nix/store/0vy5ss91laxvwkyvrbld5hv27i88qk5w-noise': 0000 <-> 0444 at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 75.
```

It can be reproduced with an expression like this:

``` nix
{ pkgs ? import <nixpkgs> { } }:
let
  file = pkgs.writeText "test" ''
    content
  '';
in
  pkgs.buildEnv {
    name = "test-env";
    paths = [ /* ... */ file ];
  }
```
2019-02-19 07:56:44 +01:00
..
agda agda: use exec in agdaWrapper 2018-12-07 21:37:19 -05:00
bintools-wrapper add generic x86_32 support (#52634) 2019-01-06 12:57:36 -06:00
build-bazel-package bazel-deps: 2018-11-01 -> 2019-02-01 2019-02-01 17:30:36 +11:00
build-dotnet-package
build-fhs-userenv fix FHSUserEnv blacklists 2018-11-11 10:32:09 -05:00
build-setupcfg
buildenv buildEnv: break with a proper error if one path is actually a file 2019-02-19 07:56:44 +01:00
cc-wrapper Merge branch 'staging-next' into staging 2019-02-01 09:42:53 +01:00
docker Merge remote-tracking branch 'NixOS/master' into staging 2019-02-18 20:36:48 -05:00
dotnetbuildhelpers
dotnetenv
emacs melpaBuild: Get package-build from melpa/package-build 2018-11-27 09:36:28 -06:00
expand-response-params
fetchbitbucket all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfossil
fetchgit prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchgithub all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchgitlab all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchgitlocal
fetchgx
fetchhg prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchipfs prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch
fetchrepoorcz all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchrepoproject
fetchs3
fetchsavannah all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchsvn prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchsvnrevision
fetchsvnssh fetchsvnssh: move defaults to package file 2019-02-03 15:30:27 +00:00
fetchurl mirrorx.nix: add https and http mirrors for gcc 2019-02-16 01:26:31 +00:00
fetchzip
icon-conv-tools
kernel
libredirect libredirect: set install_name on Darwin 2018-11-14 00:05:26 +01:00
make-desktopitem
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-gitignore nix-gitignore: init at v3.0.0 (#46112) 2019-02-18 09:57:30 +00:00
nix-prefetch-github
nuke-references
ocaml ocamlPackages.buildDunePackage: fix meta.platforms 2018-11-30 16:19:03 +00:00
prefer-remote-fetch prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
references-by-popularity
release
remove-references-to
rust toml2nix: init at 0.1.1 (#53883) 2019-01-15 23:36:36 +02:00
setup-hooks Merge master into staging-next 2019-02-13 12:33:29 +01:00
singularity-tools Merge branch 'master' into singularity 2019-02-17 21:49:37 +00:00
skaware
src-only
substitute
substitute-files
templaterpm
upstream-updater
vm Merge remote-tracking branch 'origin/master' into staging 2019-02-09 12:14:06 -05:00
wrapper-common
writers lib.makePerlPath -> perlPackages.makePerlPath 2018-12-15 03:50:31 +00:00
build-maven.nix buildMaven: Support metadata-only dependencies 2018-11-29 17:29:59 +00:00
build-pecl.nix
closure-info.nix
dhall-to-nix.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix linkFarm: allowSubstitutes = false 2019-02-08 00:21:24 +00:00