Closed ekg closed 3 years ago
I'm trying to understand why this fails:
FROM debian RUN apt-get update -y && apt-get upgrade -y && apt-get install -y curl bzip2 bash xz-utils RUN useradd -ms /bin/bash robot RUN groupadd nixbld && usermod -a -G nixbld robot RUN mkdir -p /nix RUN chmod 777 /nix ENV HOME /home/robot ENV USER robot USER robot WORKDIR /home/robot RUN curl -L https://nixos.org/nix/install | sh RUN . $HOME/.nix-profile/etc/profile.d/nix.sh && \ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs && \ nix-channel --update RUN . $HOME/.nix-profile/etc/profile.d/nix.sh && \ nix-env -i -f https://github.com/vlaci/openconnect-sso/archive/master.tar.gz
The result is cryptic:
... Step 13/13 : RUN . $HOME/.nix-profile/etc/profile.d/nix.sh && nix-env -i -f https://github.com/vlaci/openconnect-sso/archive/master.tar.gz ---> Running in f71178655855 unpacking 'https://github.com/vlaci/openconnect-sso/archive/master.tar.gz'... unpacking 'https://github.com/nix-community/poetry2nix/archive/2acbe722a8846f6a2d11ca1f64d1ba46f62095c2.tar.gz'... installing 'python3.8-openconnect-sso-0.6.2' error: attribute 'platform' missing, at /nix/store/d137f726xk4lbpmd1jiryzdrab94zy4b-source/pep425.nix:76:44 (use '--show-trace' to show detailed location information) The command '/bin/sh -c . $HOME/.nix-profile/etc/profile.d/nix.sh && nix-env -i -f https://github.com/vlaci/openconnect-sso/archive/master.tar.gz' returned a non-zero code: 1
Any ideas?
Sigh... Poetry packaging seems to be broken when using nixpkgs-unstable. Will look into it. In the meantime, using an older channel such as nixos-20.09 should work.
nixpkgs-unstable
nixos-20.09
I'm trying to understand why this fails:
The result is cryptic:
Any ideas?