| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
Rewrite the `stripHash` helper function with 2 differences:
* Paths starting with `--` will no longer produce an error.
* Use Bash string manipulation instead of shelling out to `grep` and
`cut`. This should be faster.
|
|
|
|
|
|
|
|
|
| |
A bunch of stdenv-internal variables were deleted in
1601a7fcce389ae3f1b1b36676fd5545035566af, but these are needed in the
fixup phase, whereas the rest are just needed for the initial work
(findInputs, etc) before the user phases.
CC @matthewbauer
|
|\
| |
| | |
Unset unused variables in setup.sh
|
| |
| |
| |
| |
| |
| | |
setup.sh adds a bunch of variables that only it needs. To avoid
polluting environments, we should unset these as soon as we are done
with them.
|
|\ \ |
|
| | |
| | |
| | | |
This reverts commit 71184f8e157672789602d3f28bdd3c8079800687.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There were two issues:
* builtins.getEnv was called deep into the nixpkgs tree making it hard
to discover. This is solved by moving the call into
pkgs/top-level/impure.nix
* when the config was explicitly set by the user to false, it would
still try and load the environment variable. This meant that it was
not possible to guarantee the same outcome on two different systems.
|
| |\ \
| | | |
| | | | |
Fix handling of lists in whitelistedLicenses and blacklistedLicenses
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
A package's meta.license can either be a single license or a list. The
code to check config.whitelistedLicenses and config.blackListedLicenses
wasn't handling this, nor was the showLicense function.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Apparently this option trades compression time for size,
and explicitly does so without increasing resources needed in decomp.
Doesn't make tarball creation unbearable, so add it to options!
|
| | | | |
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Before, we very carefully unapplied and reapplied `set -u` so the rest
of Nixpkgs could continue to not fail on undefined variables. Let's rip
off the band-aid.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Go beyond the obvious setup hooks now, with a bit of sed, with a skipped case:
- cc-wrapper's `dontlink`, because it already is handled.
Also, in nix files escaping was manually added.
EMP
|
|\ \
| | |
| | | |
Revert "setup.sh introduce isELFExec, isELFDyn"
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit e1b80a5a99a3013c6556ec2e2e73ef6ca8e8b80b.
This is broken in PIE (#68513). Best to not keep it in until something
else starts using it.
|
|\ \ \
| | |/
| |/| |
|
| |/
| |
| |
| |
| |
| |
| |
| | |
This logic should be in the pkgs/top-level/static.nix. We don’t want
to pollute Nixpkgs with =if stdenv.static=. Also, "static" is not
descriptive. We have two types of static stdenvs, ‘makeStaticLibaries’
and ‘makeStaticBinaries’. We shouldn’t rely on a static boolean like
this.
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | | |
This adds enough logic to nixpkgs to support the `js-unknown-ghcjs` triple.
|
| | | |
|
|\ \ \
| | |/
| |/| |
|
| |\ \
| | | |
| | | | |
Postgresql plugins fixes
|
| | | | |
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
stdenv: add isELFExec, isELFDyn, fix wrappers
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
These can be used to determine whether a ELF file with ELF header is an
executable or shared library.
We can't implement it in pure bash, as bash has problems with null
bytes.
|
|\ \ \
| |/ /
|/| | |
stdenv: correct cross CMAKE_SYSTEM_NAME
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
As described in cmake cross instructions, CMAKE_SYSTEM_NAME should be
set to "Generic" if there is no applicable OS:
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/CrossCompiling#setting-up-the-system-and-toolchain
|
|\ \ \ |
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | | |
This flag can replace the extra static parameter to packages that
don't work automatically with this adapter.
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| | |
There's already 21 occurences of this and I've
expected this to exist without knowing it had no affect for a while.
|
| |
| |
| |
| |
| |
| | |
* treewide: remove unused variables
* making ofborg happy
|
|\ \
| | |
| | |
| | | |
Hydra nixpkgs: ?compare=1523575
|
| |\ \
| | | |
| | | | |
check-meta: use system tuple in platforms
|
| | | |
| | | |
| | | |
| | | | |
Fixes #60345
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
treewide: Remove usage of isNull
|
| | | | |
| | | | |
| | | | |
| | | | | |
isNull "is deprecated; just write e == null instead" says the Nix manual
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | | |
... into staging
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
That's very much consistent with the spirit of nix-shell --pure
BTW, nix 1.x shells will be always treated as pure;
in that version detection isn't possible.
https://github.com/NixOS/nix/commit/1bffd83e1a9c
|