From 2fe86cc267b5637b73602b3e30a9d1eea8e5ecc9 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sun, 14 Aug 2022 07:08:43 +0300 Subject: [PATCH] cabal2nix: fix cross-eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit for some reason symlinkJoin nativeBuildInputs isn't being spliced correctly ``` nix-repl> cabal2nix error: attribute 'runtimeShell' missing at /nix/store/4hzwal3mxyppnz63rv174iky8j16a7mg-source/pkgs/top-level/all-packages.nix:867:17: 866| substitutions = { 867| shell = targetPackages.runtimeShell; | ^ 868| passthru.tests = tests.makeWrapper; … while evaluating the attribute 'shell' of the derivation 'hook' at /nix/store/4hzwal3mxyppnz63rv174iky8j16a7mg-source/pkgs/stdenv/generic/make-derivation.nix:270:7: 269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) { 270| name = | ^ 271| let … while evaluating the attribute 'nativeBuildInputs' of the derivation 'cabal2nix-aarch64-unknown-linux-gnu-2.19.0' at /nix/store/4hzwal3mxyppnz63rv174iky8j16a7mg-source/pkgs/stdenv/generic/make-derivation.nix:270:7: 269| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) { 270| name = | ^ 271| let «derivation ``` --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ff8d0d543c9..16148dcb3bf3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3097,7 +3097,7 @@ with pkgs; cabal2nix = symlinkJoin { inherit (cabal2nix-unwrapped) name meta; - nativeBuildInputs = [ makeWrapper ]; + nativeBuildInputs = [ buildPackages.makeWrapper ]; paths = [ cabal2nix-unwrapped ]; postBuild = '' wrapProgram $out/bin/cabal2nix \