Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save marcusramberg/9dce1f776898dca521e7c8d46297edd0 to your computer and use it in GitHub Desktop.
Save marcusramberg/9dce1f776898dca521e7c8d46297edd0 to your computer and use it in GitHub Desktop.
error:
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'nix-static-x86_64-unknown-linux-musl-2.18.5'
whose name attribute is located at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:334:7
… while evaluating attribute 'propagatedBuildInputs' of derivation 'nix-static-x86_64-unknown-linux-musl-2.18.5'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:388:7:
387| depsHostHostPropagated = elemAt (elemAt propagatedDependencies 1) 0;
388| propagatedBuildInputs = elemAt (elemAt propagatedDependencies 1) 1;
| ^
389| depsTargetTargetPropagated = elemAt (elemAt propagatedDependencies 2) 0;
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:324:13:
323| (map (drv: getDev drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHostPropagated" depsHostHostPropagated))
324| (map (drv: getDev drv.__spliced.hostTarget or drv) (checkDependencyList "propagatedBuildInputs" propagatedBuildInputs))
| ^
325| ]
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:324:18:
323| (map (drv: getDev drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHostPropagated" depsHostHostPropagated))
324| (map (drv: getDev drv.__spliced.hostTarget or drv) (checkDependencyList "propagatedBuildInputs" propagatedBuildInputs))
| ^
325| ]
… while calling 'getOutput'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1797:23:
1796| */
1797| getOutput = output: pkg:
| ^
1798| if ! pkg ? outputSpecified || ! pkg.outputSpecified
… while evaluating a branch condition
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1798:5:
1797| getOutput = output: pkg:
1798| if ! pkg ? outputSpecified || ! pkg.outputSpecified
| ^
1799| then pkg.${output} or pkg.out or pkg
… in the left operand of the OR (||) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1798:32:
1797| getOutput = output: pkg:
1798| if ! pkg ? outputSpecified || ! pkg.outputSpecified
| ^
1799| then pkg.${output} or pkg.out or pkg
… in the argument of the not operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1798:10:
1797| getOutput = output: pkg:
1798| if ! pkg ? outputSpecified || ! pkg.outputSpecified
| ^
1799| then pkg.${output} or pkg.out or pkg
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:324:25:
323| (map (drv: getDev drv.__spliced.hostHost or drv) (checkDependencyList "depsHostHostPropagated" depsHostHostPropagated))
324| (map (drv: getDev drv.__spliced.hostTarget or drv) (checkDependencyList "propagatedBuildInputs" propagatedBuildInputs))
| ^
325| ]
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/lists.nix:334:29:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/lists.nix:334:32:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:279:15:
278| imap1
279| (index: dep:
| ^
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
… while evaluating a branch condition
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:280:9:
279| (index: dep:
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
281| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… in the left operand of the OR (||) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:280:69:
279| (index: dep:
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
281| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… in the left operand of the OR (||) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:280:44:
279| (index: dep:
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
281| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… in the left operand of the OR (||) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:280:29:
279| (index: dep:
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
281| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:280:12:
279| (index: dep:
280| if isDerivation dep || dep == null || builtins.isString dep || builtins.isPath dep then dep
| ^
281| else if isList dep then checkDependencyList' ([index] ++ positions) name dep
… while calling 'isDerivation'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1283:5:
1282| isDerivation =
1283| value: value.type or null == "derivation";
| ^
1284|
… while calling the 'elemAt' builtin
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/lists.nix:334:43:
333| */
334| imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
| ^
335|
… while evaluating a branch condition
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/top-level/splice.nix:73:11:
72| # on to splice them together.
73| if lib.isDerivation defaultValue then augmentedValue // spliceReal {
| ^
74| pkgsBuildBuild = tryGetOutputs valueBuildBuild;
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/top-level/splice.nix:73:14:
72| # on to splice them together.
73| if lib.isDerivation defaultValue then augmentedValue // spliceReal {
| ^
74| pkgsBuildBuild = tryGetOutputs valueBuildBuild;
… while calling 'isDerivation'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1283:5:
1282| isDerivation =
1283| value: value.type or null == "derivation";
| ^
1284|
… while evaluating the attribute 'boost'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/top-level/all-packages.nix:19827:3:
19826|
19827| boost = boost181;
| ^
19828|
… while evaluating the attribute 'boost181'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:24:3:
23| boost180 = makeBoost ./1.80.nix;
24| boost181 = makeBoost ./1.81.nix;
| ^
25| boost182 = makeBoost ./1.82.nix;
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:24:14:
23| boost180 = makeBoost ./1.80.nix;
24| boost181 = makeBoost ./1.81.nix;
| ^
25| boost182 = makeBoost ./1.82.nix;
… while calling 'makeBoost'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:8:15:
7| let
8| makeBoost = file:
| ^
9| lib.fix (self:
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:9:5:
8| makeBoost = file:
9| lib.fix (self:
| ^
10| callPackage file {
… while calling 'fix'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/fixed-points.nix:93:9:
92| */
93| fix = f: let x = f x; in x;
| ^
94|
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/fixed-points.nix:93:20:
92| */
93| fix = f: let x = f x; in x;
| ^
94|
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:9:14:
8| makeBoost = file:
9| lib.fix (self:
| ^
10| callPackage file {
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/default.nix:10:7:
9| lib.fix (self:
10| callPackage file {
| ^
11| boost-build = boost-build.override {
… while calling 'callPackageWith'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:212:35:
211| */
212| callPackageWith = autoArgs: fn: args:
| ^
213| let
… while calling a functor (an attribute set with a '__functor' attribute)
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:264:13:
263| in if missingArgs == {}
264| then makeOverridable f allArgs
| ^
265| # This needs to be an abort so it can't be caught with `builtins.tryEval`,
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/trivial.nix:957:7:
956| { # TODO: Should we add call-time "type" checking like built in?
957| __functor = self: f;
| ^
958| __functionArgs = args;
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:136:17:
135| in
136| mirrorArgs (origArgs:
| ^
137| let
… while evaluating a branch condition
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:148:7:
147| in
148| if isAttrs result then
| ^
149| result // {
… while calling the 'isAttrs' builtin
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:148:10:
147| in
148| if isAttrs result then
| ^
149| result // {
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:138:16:
137| let
138| result = f origArgs;
| ^
139|
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/1.81.nix:1:1:
1| { callPackage, fetchurl, ... } @ args:
| ^
2|
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/1.81.nix:3:1:
2|
3| callPackage ./generic.nix (args // rec {
| ^
4| version = "1.81.0";
(7 duplicate frames omitted)
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/generic.nix:1:1:
1| { lib, stdenv, icu, expat, zlib, bzip2, zstd, xz, python ? null, fixDarwinDylibNames, libiconv, libxcrypt
| ^
2| , makePkgconfigItem
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/development/libraries/boost/generic.nix:102:1:
101|
102| stdenv.mkDerivation {
| ^
103| pname = "boost";
… while calling anonymous lambda
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/adapters.nix:99:84:
98| stdenv0.override (old: {
99| mkDerivationFromStdenv = withOldMkDerivation old (stdenv: mkDerivationSuper: args:
| ^
100| if stdenv.hostPlatform.isDarwin
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/adapters.nix:102:12:
101| then throw "Cannot build fully static binaries on Darwin/macOS"
102| else (mkDerivationSuper args).overrideAttrs (args: {
| ^
103| NIX_CFLAGS_LINK = toString (args.NIX_CFLAGS_LINK or "") + " -static";
… while calling 'overrideAttrs'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:69:23:
68|
69| overrideAttrs = f0:
| ^
70| let
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:88:11:
87| in
88| makeDerivationExtensible
| ^
89| (self: let super = rattrs self; in super // (if builtins.isFunction f0 || f0?__functor then f self super else f0));
… while calling 'makeDerivationExtensible'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:59:30:
58| # Based off lib.makeExtensible, with modifications:
59| makeDerivationExtensible = rattrs:
| ^
60| let
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:92:9:
91| finalPackage =
92| mkDerivationSimple overrideAttrs args;
| ^
93|
… while calling 'mkDerivationSimple'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:514:1:
513| # * [package attributes]: https://nixos.org/manual/nix/stable/glossary#package-attribute-set
514| {
| ^
515|
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:591:1:
590|
591| extendDerivation
| ^
592| validity.handled
… while calling 'extendDerivation'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:339:43:
338| */
339| extendDerivation = condition: passthru: drv:
| ^
340| let
… in the left operand of the update (//) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:364:20:
363| outputsList = map outputToAttrListElement outputs;
364| in commonAttrs // {
| ^
365| drvPath = assert condition; drv.drvPath;
… in the left operand of the update (//) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/customisation.nix:343:25:
342|
343| commonAttrs = drv // (listToAttrs outputsList) //
| ^
344| ({ all = map (x: x.value) outputsList; }) // passthru;
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:640:4:
639| passthru)
640| (derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
| ^
641|
… in the right operand of the update (//) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:640:30:
639| passthru)
640| (derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
| ^
641|
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:640:33:
639| passthru)
640| (derivation (derivationArg // optionalAttrs envIsExportable checkedEnv));
| ^
641|
… while calling 'optionalAttrs'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/attrsets.nix:1352:5:
1351| cond:
1352| as:
| ^
1353| if cond then as else {};
… in the condition of the assert statement
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:576:5:
575| "When using structured attributes, `env` must be an attribute set of environment variables.";
576| assert assertMsg (overlappingNames == [ ])
| ^
577| "The ‘env’ attribute set cannot contain any attributes passed to derivation. The following attributes are overlapping: ${concatStringsSep ", " overlappingNames}";
… from call site
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/pkgs/stdenv/generic/make-derivation.nix:576:12:
575| "When using structured attributes, `env` must be an attribute set of environment variables.";
576| assert assertMsg (overlappingNames == [ ])
| ^
577| "The ‘env’ attribute set cannot contain any attributes passed to derivation. The following attributes are overlapping: ${concatStringsSep ", " overlappingNames}";
… while calling 'assertMsg'
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/asserts.nix:41:5:
40| pred:
41| msg:
| ^
42| pred || builtins.throw msg;
… in the right operand of the OR (||) operator
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/asserts.nix:42:10:
41| msg:
42| pred || builtins.throw msg;
| ^
43|
… while calling the 'throw' builtin
at /nix/store/kjf402kxck2ia9nbx07v8b80840i8qq2-bcghcr9qwqmanpds017w75mcqda4fgab-source/lib/asserts.nix:42:13:
41| msg:
42| pred || builtins.throw msg;
| ^
43|
error: The ‘env’ attribute set cannot contain any attributes passed to derivation. The following attributes are overlapping: NIX_CFLAGS_LINK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment