Skip to content

Commit

Permalink
Fix python build failures for the -env.
Browse files Browse the repository at this point in the history
Querying the .drvPath causes nix to try and build

arp-util, python3.11-setuptools, setuptools-build-hook, scons, serf, llvm, clang, libredirect, subversion, and openssh.
  • Loading branch information
angerman committed Oct 8, 2024
1 parent d9fc929 commit 16f82f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,15 @@
} "touch $out";
} // (pkgs.lib.mapAttrs' (name: drv:
pkgs.lib.nameValuePair "${name}-env" (
# We need to use unsafeDiscardOutputDependency here, as it will otherwise
# pull in a bunch of dependenceis we don't care about at all from the .drvPath
# query.
let env = pkgs.runCommand "${name}-env.sh" {
requiredSystemFeatures = [ "recursive-nix" ];
nativeBuildInputs = [ pkgs.nix ];
} ''
nix --offline --extra-experimental-features "nix-command flakes" \
print-dev-env ${drv.drvPath} >> $out
print-dev-env ${builtins.unsafeDiscardOutputDependency drv.drvPath} >> $out
'';
# this needs to be linux. It would be great if we could have this
# eval platform agnostic, but flakes don't permit this. A the
Expand Down

0 comments on commit 16f82f0

Please sign in to comment.