about summary refs log tree commit diff
path: root/pkgs/build-support/closure-info.nix
AgeCommit message (Collapse)AuthorFilesLines
2023-11-04closureInfo: handle empty path set explicitlyLinus Heckemann1-3/+11
Arguably, this is a bug in Nix's structuredAttrs: without structuredAttrs, exportReferencesGraph with an empty path set would still result in information being provided. With structuredAttrs, no info is provided for an empty path set. Nevertheless, we need to be able to build even if Nix has the bug, so work around it by checking for an empty path set and handling it explicitly.
2023-10-04pkgs/build-support: refactor drvs using `__structuredAttrs = true`Maximilian Bosch1-8/+6
Derivations affected by this patch set `__structuredAttrs = true;` and provide their own `builder`, i.e. it's necessary to `source .attrs.sh`. Rather than adding even more `if`-`source` monstrums, I decided to modify all of those derivations to use `buildCommand` or `runCommand`, without `builder` being set. Then, `$stdenv/setup` is sourced already and as a result it's safe to assume that `NIX_ATTRS_JSON_FILE`/`NIX_ATTRS_SH_FILE` point to a usable location both in a build and a shell session.
2019-06-16treewide: remove unused variables (#63177)volth1-1/+1
* treewide: remove unused variables * making ofborg happy
2019-02-22nixos: add preferLocalBuild=true; on derivations for config filesSymphorien Gibol1-0/+2
2018-06-29make-closure needs build system mkdir and jqDaniel Barlow1-2/+2
Make make-closure work when cross-compiling
2018-02-27CleanupEelco Dolstra1-1/+1
2018-02-23Merge pull request #35402 from shlevy/closure-info-total-sizeEelco Dolstra1-0/+1
closureInfo: Report the total closure size.
2018-02-23closureInfo: Report the total closure size.Shea Levy1-0/+1
This can be useful for e.g. preallocating disk image sizes.
2018-02-23makeInitrd: Use closureInfoEelco Dolstra1-1/+1
2018-02-07VM tests: Initialize the Nix database with correct NAR hashes/sizesEelco Dolstra1-40/+15
2017-11-01closure-info: another half-blind attempt to fix on HydraVladimír Čunát1-2/+5
The previous one was very bad and worsened the situation. But even running with some nix-1.12 I'm unable to reproduce the original failure. Let's unblock channels for now.
2017-11-01closure-info: half-blind attempt to fix on HydraVladimír Čunát1-1/+1
I'm not sure why these started to block channel several days ago. I've been unable to reproduce the failures locally.
2017-10-25Add function closureInfo to replace pathsFromGraphEelco Dolstra1-0/+55
Unlike pathsFromGraph, on Nix 1.12, this function produces a registration file containing correct NAR hash/size information. https://hydra.nixos.org/build/62832723