NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.93k stars 13.96k forks source link

Build failure: cabal2nix #344632

Open xave opened 3 weeks ago

xave commented 3 weeks ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-env -iA nixpkgs.cabal2nix

Build log

...
building '/nix/store/a2dqdpkfn3pix14af395cbws3cxi9gpp-cabal2nix-2.19.1.drv'...
error: this derivation has bad 'meta.outputsToInstall'

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.5.0, macOS 14.5`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Add a :+1: reaction to issues you find important.

xave commented 3 weeks ago

@sternenseemann

sternenseemann commented 3 weeks ago
xave commented 3 weeks ago
  1. ["out"]
  2. "24.05pre628827.5a5ac83292c7"
Artturin commented 3 weeks ago

This is a weird error which sometimes happens with no known definite cause

Maybe -vvvvvvvv with nix-env would show something useful.

You may be able to find a fix

https://discourse.nixos.org/t/error-this-derivation-has-bad-meta-outputstoinstall/20019 https://github.com/NixOS/nixpkgs/issues/189555 https://github.com/NixOS/nix/issues/9340