summaryrefslogtreecommitdiffstats
path: root/pkgs/test/simple
AgeCommit message (Collapse)Author
2023-10-04treewide: refactor `.attrs.sh` detectionMaximilian Bosch
When specifying the `builder` attribute in `stdenv.mkDerivation`, this will be effectively transformed into builtins.derivation { builder = stdenv.shell; args = [ "-e" builder ]; } This also means that `default-builder.sh` is never sourced and as a result it's not guaranteed that `$NIX_ATTRS_SH_FILE` is set to a correct location[1]. Also, we need to source `.attrs.sh` to source `$stdenv`. So, the following is done now: * If `$NIX_ATTRS_SH_FILE` points to a correct location, then use it. Directly using `.attrs.sh` is problematic for `nix-shell(1)` usage (see previous commit for more context), so prefer the environment variable if possible. * Otherwise, if `.attrs.sh` exists, then use it. See [1] for when this can happen. * If neither applies, it can be assumed that `__structuredAttrs` is turned off and thus nothing needs to be done. [1] It's possible that it doesn't exist at all - in case of Nix 2.3 or it can point to a wrong location on older Nix versions with a bug in `__structuredAttrs`.
2022-12-08treewide: source .attrs in buildersArtturin
if theres a source $stdenv then this is needed for structuredAttrs
2016-04-26Remove cruftEelco Dolstra
2005-12-05* "." -> "source".Eelco Dolstra
svn path=/nixpkgs/trunk/; revision=4335
2004-03-30* Finally we have a working stdenvLinux again.Eelco Dolstra
On the downside, the build process of stdenvLinux builds gcc 9 times (3 x 3 bootstrap stages). That's a bit excessive. svn path=/nixpkgs/trunk/; revision=880
2004-03-29* Remove trivial builders.Eelco Dolstra
* Make builders unexecutable by removing the hash-bang line and execute permission. * Convert calls to `derivation' to `mkDerivation'. * Remove `system' and `stdenv' attributes from calls to `mkDerivation'. These transformations were all done automatically, so it is quite possible I broke stuff. * Put the `mkDerivation' function in stdenv/generic. svn path=/nixpkgs/trunk/; revision=874
2004-03-12* Re-enabled purity checking: it should work now. First we onlyEelco Dolstra
checked whether absolute paths passed to gcc/ld refer to the store, which is wrong: they can also refer to the build tree (/tmp/nix-...). * Less static composition in the construction of stdenv-nix-linux: gcc-wrapper and generic are now passed in as arguments, rather then referenced by relative path. This makes it easier to hack on a specific stage of the bootstrap process (before, a change to, e.g., generic/setup.sh would cause all bootstrap stages to be redone). svn path=/nixpkgs/trunk/; revision=833
2004-03-11* Finally got stdenv-nix-linux working again. Still not perfect,Eelco Dolstra
though. * libxml2: upgrade to latest. * octavefront/rna: keep debug info. svn path=/nixpkgs/trunk/; revision=830
2004-03-09* stdenv-nix-linux should more-or-less work again now.Eelco Dolstra
svn path=/nixpkgs/trunk/; revision=826
2004-03-08* gcc-wrapper now filters out -L and -I flags referring to pathsEelco Dolstra
outside the store (in pure builds). svn path=/nixpkgs/trunk/; revision=817
2004-03-08* Started reorganising stdenv:Eelco Dolstra
- gcc/ld-wrappers have been factored out into a separate derivation. This allows a working gcc to be installed in the user environment. (Previously the Nix gcc didn't work because it needed a whole bunch of flags to point to glibc.) - Better modularity: packages can specify hooks into the setup scripts. For instance, setup no longer knows about the PKG_CONFIG_PATH variable; pkgconfig can set it up instead. - gcc not longer depends on binutils. This simplifies the bootstrap process. svn path=/nixpkgs/trunk/; revision=816