NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.28k stars 13.53k forks source link

yed: cannot build derivation "cannot find zipfile directory" #107756

Open c0d33p opened 3 years ago

c0d33p commented 3 years ago

Describe the bug After adding the yed to the configuration.nix in:

environment.systemPackages

I'm receiving this kind of log:

trying https://www.yworks.com/resources/yed/demo/yEd-3.20.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   219  100   219    0     0   1037      0 --:--:-- --:--:-- --:--:--  1037
100 29261  100 29261    0     0  88939      0 --:--:-- --:--:-- --:--:-- 88939
unpacking source archive /build/yEd-3.20.zip
[/build/yEd-3.20.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /build/yEd-3.20.zip or
        /build/yEd-3.20.zip.zip, and cannot find /build/yEd-3.20.zip.ZIP, period.
do not know how to unpack source archive /build/yEd-3.20.zip
builder for '/nix/store/279z8s0p2pcpnq45sg1rrzf2d6s2pxrh-source.drv' failed with exit code 1
cannot build derivation '/nix/store/sy2d5mzvj5lf46kz01bx48c1kmabvis2-yEd-3.20.drv': 1 dependencies couldn't be built

I had added the unzip to the packages also the allow unfree licenses is set true.

To Reproduce Steps to reproduce the behavior:

  1. add yed to the configuration file: nixpkgs.config.allowUnfree = true; environment.systemPackages = (with pkgs; [ yed ]);
  2. nixos-rebuild switch

Expected behavior The yEd program install successfully and is added to the system.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Notify maintainers

@abbradar

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

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
nixos-discourse commented 3 years ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/yed-package-installtion-difficulties-in-nixos/10723/1

c0d33p commented 3 years ago

Package in the channel 20.09 is for the 3.20 not 3.20.01.

@abbradar I was able to build and run package from main branch. Can we merge the newest package in the 20.09 in order to make it widely available?

Jiehong commented 1 year ago

This is happening again on 22.11, but now it's just yed 3.22:

$ nix-shell -p yed
(...log hidden...)
building '/nix/store/j1nwvwb30zj05fj16w5qc6zdk95nzhw6-source.drv'...

trying https://www.yworks.com/resources/yed/demo/yEd-3.22.zip
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   219  100   219    0     0     42      0  0:00:05  0:00:05 --:--:--    54
100  192k  100  192k    0     0  36834      0  0:00:05  0:00:05 --:--:-- 36834
unpacking source archive /build/yEd-3.22.zip
[/build/yEd-3.22.zip]
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of /build/yEd-3.22.zip or
        /build/yEd-3.22.zip.zip, and cannot find /build/yEd-3.22.zip.ZIP, period.
do not know how to unpack source archive /build/yEd-3.22.zip
error: builder for '/nix/store/j1nwvwb30zj05fj16w5qc6zdk95nzhw6-source.drv' failed with exit code 1;
       last 10 log lines:
       > 100  192k  100  192k    0     0  36834      0  0:00:05  0:00:05 --:--:-- 36834
       > unpacking source archive /build/yEd-3.22.zip
       > [/build/yEd-3.22.zip]
       >   End-of-central-directory signature not found.  Either this file is not
       >   a zipfile, or it constitutes one disk of a multi-part archive.  In the
       >   latter case the central directory and zipfile comment will be found on
       >   the last disk(s) of this archive.
       > unzip:  cannot find zipfile directory in one of /build/yEd-3.22.zip or
       >         /build/yEd-3.22.zip.zip, and cannot find /build/yEd-3.22.zip.ZIP, period.
       > do not know how to unpack source archive /build/yEd-3.22.zip
       For full logs, run 'nix log /nix/store/j1nwvwb30zj05fj16w5qc6zdk95nzhw6-source.drv'.
error: 1 dependencies of derivation '/nix/store/i7br438hn347d859vig0y11y381qfg4b-yEd-3.22.drv' failed to build
yeus commented 1 month ago

seems to still happen:

error: builder for '/nix/store/058nm33qpzli34y66jy04wl6xbimmnh5-source.drv' failed with exit code 1;
       last 10 log lines:
       > 100  132k    0  132k    0     0   107k      0 --:--:--  0:00:01 --:--:--  139k
       > unpacking source archive /build/yEd-3.23.2.zip
       > [/build/yEd-3.23.2.zip]
       >   End-of-central-directory signature not found.  Either this file is not
       >   a zipfile, or it constitutes one disk of a multi-part archive.  In the
       >   latter case the central directory and zipfile comment will be found on
       >   the last disk(s) of this archive.
       > unzip:  cannot find zipfile directory in one of /build/yEd-3.23.2.zip or
       >         /build/yEd-3.23.2.zip.zip, and cannot find /build/yEd-3.23.2.zip.ZIP, period.
       > do not know how to unpack source archive /build/yEd-3.23.2.zip
       For full logs, run 'nix log /nix/store/058nm33qpzli34y66jy04wl6xbimmnh5-source.drv'.
yeus commented 1 month ago

just for information for the next one who comes here: