Error: unpacker produced multiple directories when installing timedesc #68
-
Heya! Thanks for developing this awesome package. I ran into an issue when trying to install the timedesc opam package. It runs into an error "unpacker produced multiple directories". I don't really know how to debug this issue, but here is the full error
and the flake.nix
as well as the opam file
The latest entry "timedesc" is the one that broke the build. Any clue what I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It seems that the overlay = final: prev: {
# You can add overrides here
timedesc-tzdb = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
timedesc-tzlocal = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
timedesc = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
}; This just tells nixpkgs stdenv to use archive's top-level instead of trying to change to a directory. |
Beta Was this translation helpful? Give feedback.
-
Adding the overrides worked! Thank you! I'll see if I can get around to opening an issue upstream later.
…On Fri Dec 29, 2023 at 3:56 AM CST, Alexander Bantyev wrote:
It seems that the `timedesc` archive contains multiple top-level directories. The proper way to deal with this is to just fix it (by adding an issue upstream). Until that is fixed, you could try adding an override for packages which use this archive, something like this:
```nix
overlay = final: prev: {
# You can add overrides here
timedesc-tzdb = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
timedesc-tzlocal = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
timedesc = prev.timedesc-tzdb.overrideAttrs (_: { sourceRoot = "."; });
};
```
This just tells nixpkgs stdenv to use archive's top-level instead of trying to change to a directory.
|
Beta Was this translation helpful? Give feedback.
It seems that the
timedesc
archive contains multiple top-level directories. The proper way to deal with this is to just fix it (by adding an issue upstream). Until that is fixed, you could try adding an override for packages which use this archive, something like this:This just tells nixpkgs stdenv to use archive's top-level instead of trying to change…