Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken packages in Nix-shell file #852

Open
simonelnahas opened this issue Mar 14, 2023 · 3 comments
Open

Broken packages in Nix-shell file #852

simonelnahas opened this issue Mar 14, 2023 · 3 comments

Comments

@simonelnahas
Copy link

Environment

MacOS 13.2.1

Current behavior

Using the file provided in the docs here saved as default.nix:

{ pkgs ? import <nixpkgs> {} }:

with pkgs;

mkShell {
  name = "nervesShell";
  buildInputs = [
    autoconf
    automake
    curl
    erlangR25
    fwup
    git
    pkgs.beam.packages.erlangR25.elixir
    rebar3
    squashfsTools
    x11_ssh_askpass
    pkg-config
  ];
  shellHook = ''
    SUDO_ASKPASS=${pkgs.x11_ssh_askpass}/libexec/x11-ssh-askpass
  '';
}

I get the following errors:

~/D/D/insta_billboard [1]> nix-shell default.nix 
error: Package ‘x11-ssh-askpass-1.2.4.1’ in /nix/store/1x89jxh81wyh2ngc18ny0figv9lkb0my-nixpkgs/nixpkgs/pkgs/tools/networking/x11-ssh-askpass/default.nix:30 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
~/D/D/insta_billboard [1]> export NIXPKGS_ALLOW_BROKEN=1
~/D/D/insta_billboard> nix-shell default.nix
these 2 derivations will be built:
  /nix/store/bz6z2h9h0bap02rv1j33yfxvj2q2ksnk-elixir-1.13.4.drv
  /nix/store/qzwi89imacw90ccihrfyr62f4m34c4z2-x11-ssh-askpass-1.2.4.1.drv
these 85 paths will be fetched (86.61 MiB download, 506.77 MiB unpacked):
  /nix/store/06nq0w4f8dg9jvybs57yrr2180hfirdf-zstd-1.5.2-dev
  /nix/store/0abkg7g6crfzjn6n9bv09h6pr7b39rq5-c-ares-1.18.1
  /nix/store/0mzw3caf9jwz1wrsg4f412mmxkrhpn7w-hook
  /nix/store/0n24b06x2brlqgk0s41qm0dd4iysz885-x11-ssh-askpass-1.2.4.1.tar.gz
  /nix/store/15w3ybql6xynyixw3j7pja9pvin99jl3-perl5.36.0-libwww-perl-6.67
  /nix/store/1x4gyddm54853ndv54v6b3rbvk3rp2y3-pkg-config-wrapper-0.29.2
  /nix/store/24hd4g9gs48jxchr5xx61c4g80sy0b63-curl-7.86.0-dev
  /nix/store/2anmjk732z9byhym2dr3crnixcv9rvvb-perl5.36.0-Net-HTTP-6.19
  /nix/store/2cdxfs87d522qan7xswmdwv3rxcmvhm6-perl5.36.0-LWP-MediaTypes-6.04
  /nix/store/2mz1jj659chfsspnj6bf87y2khi8ylbl-zstd-1.5.2-bin
  /nix/store/2qchmvg23fziqn19rj80b4wwbqyaszng-perl5.36.0-CGI-4.51
  /nix/store/324h3rg19wxqwm08z3678slbp6si6zbr-perl5.36.0-HTML-Parser-3.75
  /nix/store/3sixc33xj6wbjd3zqd5y1m1cbfhj2j2s-python3-3.10.9
  /nix/store/42kk38fr64cpc9hvqa77vszb468fna6a-perl5.36.0-HTTP-Date-6.05
  /nix/store/49n6zv1cnfh4qnmqp3m53k8vabcdijl8-libXt-1.2.1-dev
  /nix/store/4d5jcn5jvng448b56znrpl6n4p3gh0nm-brotli-1.0.9
  /nix/store/4fjjxf19nmph5qf5r2y546j5nxk4ci6w-openssl-3.0.7
  /nix/store/4fm022jvmdlfjyfsdwz1xz8j7mimnabm-git-2.38.1
  /nix/store/5lg5fx9jddq27r9kq4r4k1i3kh6qlqya-perl5.36.0-WWW-RobotRules-6.02
  /nix/store/6fbzrfvkwd1pcvrpm1fr3s65icbrfpyx-perl5.36.0-FCGI-0.79
  /nix/store/6i7rixaq9k09d8k3lw4g245alnmgczyv-openssl-3.0.7-bin
  /nix/store/6kxfzm6dwpak0ayncrnfz5wx5aqya6r1-xorgproto-2021.5
  /nix/store/7bssg9isjimkadgs1ldzn9kmv5nr966y-automake-1.16.5
  /nix/store/80q2fvxng4020illmh9885x2d1fmahdl-perl-5.36.0
  /nix/store/9qibrh1m3x4l93ismpyi2sj4kdwfzbbb-perl5.36.0-TimeDate-2.33
  /nix/store/a078wn5b4gbyc2khz5lhrz5ayhzr8v2l-libICE-1.0.10
  /nix/store/az8kbcj9h774ag4l9fifx8p6413cabvn-nghttp2-1.49.0-bin
  /nix/store/bjl2147sbq8vjv317fggyh41yx3hqdbm-libidn2-2.3.2-bin
  /nix/store/bl1v1b7fakv248lz8hmkw7y296895vwv-libev-4.33
  /nix/store/bnyc57p73fmp6jk9mcq367jzhjn1d8cn-pkg-config-0.29.2
  /nix/store/bqsj09dq1cl1ivkigmafmxyx15wkzzgj-libconfuse-3.3
  /nix/store/bv3fzf5g3bdjq7zqzc46xknsxy4h0cnq-gnum4-1.4.19
  /nix/store/bwnh3s218z6imnbydilkq7w3yslylgc9-source
  /nix/store/cd508csaz93jgysi54056i3mshxasjd8-perl5.36.0-Encode-Locale-1.05
  /nix/store/cp8w9sd0xadryq2qqkmvcird2p3s4sq9-fwup-1.9.1
  /nix/store/dljzajdq589id89i0a7ypdl9bhiicwg0-hook
  /nix/store/dlnv7pp36z65s249x559kd83n2dk24ws-perl5.36.0-CGI-Fast-2.15
  /nix/store/dza42p65q4f871k77g49n59z8af4r3sc-perl5.36.0-HTTP-Message-6.26
  /nix/store/f86lpyhxax32k5w1k81c8z27bfvxps2x-unzip-6.0
  /nix/store/fbcngdspjp5rx7287i05vw9if5g5sjv2-git-2.38.1-doc
  /nix/store/fzw2brnqf2g80i81ilbkyppgzp1zsm5j-perl5.36.0-File-Listing-6.14
  /nix/store/g68xc22yyp74pkl6r70873ahl39n6p01-perl5.36.0-IO-HTML-1.004
  /nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7
  /nix/store/gz0fkz3c127am5n5s4w77fdjd10y377m-erlang-25.1.2
  /nix/store/h4nv0fl1y1d3y9zmbqa8ipirj8h20rvd-libX11-1.8.1
  /nix/store/i6jgil3y6pdbgi29vrsz8frg0y4d02lp-curl-7.86.0-man
  /nix/store/ixnjy9qr7721f8m8mbwgajhwhgwgf6iy-perl5.36.0-TermReadKey-2.38
  /nix/store/izdhavryai2fl6rvawhkzzw5wapwp9jz-tradcpp-0.5.2
  /nix/store/jj47qwsrchynz5pfyc6m42k9m9v1rpnn-perl5.36.0-HTTP-Cookies-6.09
  /nix/store/kbpsm4b7kyk4vaw2803c2h6dnahn33ds-perl5.36.0-URI-5.05
  /nix/store/kg09yj9rg3plysqmcjb0c2b3l75lwc5d-gdbm-1.23
  /nix/store/l3rx8r560hd4qg3ylh67j3c6jl87ysrm-perl5.36.0-FCGI-ProcManager-0.28
  /nix/store/lw5wqmw4n4icxgiqp57dnbkwbjn01kfx-perl5.36.0-HTTP-Negotiate-6.01
  /nix/store/lygy6a5ljbyy6rk9xhy57h6p2vv41qx2-nghttp2-1.49.0
  /nix/store/m4bi5pcpgjzxv6icnncffyqgm1vg32cf-nghttp2-1.49.0-dev
  /nix/store/mq41impkvjbng4spzr8xqx2j1hr6cqj6-imake-1.0.8
  /nix/store/n5179nw4ib0jzbfgw7phbswawgzczibj-libXau-1.0.9
  /nix/store/njych6rqwjv4qp9rp1791d1hs6qrxzbf-libxcb-1.14-dev
  /nix/store/nl6w48s4xv3p62ysl080jg38hxkxrqsi-libxcrypt-4.4.33
  /nix/store/nvqq53gbyr4rx4qvgakmg3jnrwgnjiap-libidn2-2.3.2-dev
  /nix/store/pb8ki1b46mskkg4ks42vkmpi78rnp2ry-zip-3.0
  /nix/store/pfl7kczvddlpckni5hwm8i1hilx4s2nv-lz4-1.9.4
  /nix/store/pssk6lcs4lihsihryyklnzw8rqdwnwj0-autoconf-2.71
  /nix/store/r5dw2ydvgbka2gifv4y8d5d40x2gsb79-libssh2-1.10.0-dev
  /nix/store/rajzq10zxi3n4rjv0f5ld6jslvya4h4l-sqlite-3.40.0
  /nix/store/ri30iji3qrg5sqr6cl2fjkqa5482cn3m-squashfs-4.5.1
  /nix/store/s685ib8g0jap49iclib29p97hynhslip-perl5.36.0-HTML-Tagset-3.20
  /nix/store/sypk0a1ms49ay0cnipbahpc020jcn58n-libkrb5-1.20-dev
  /nix/store/v68z49acirkr8m1k2nrwghyiz324p9dh-openssl-3.0.7-dev
  /nix/store/vn58xy8kcs3bqz2z3qz2jrl0znqgx1wl-libarchive-3.6.1-lib
  /nix/store/wc1lxyr7a4xlkff9ggib5bphwm7ncrn3-libSM-1.2.3-dev
  /nix/store/wfql2y06cc262sab2l2xfz1cyxl2pm7g-libX11-1.8.1-dev
  /nix/store/x06gflwn46pxw73x3x5wz49hxm9r7rs6-libSM-1.2.3
  /nix/store/x8i5safwnzd6zn54gap5hgiwkyf2bh91-libICE-1.0.10-dev
  /nix/store/x9gyqlh3fj35xhrdad18jp6ynz20y867-perl5.36.0-Try-Tiny-0.30
  /nix/store/xl3pdp473c25jy0n201b4xvxlncyr3l5-libXt-1.2.1
  /nix/store/xmya4kpz3d07g0kcmb8p8cbfpwb4nhlj-libxml2-2.10.3
  /nix/store/xnnn0ks294qhbvbzy19y72sf52fy4031-libxcb-1.14
  /nix/store/xsjv479s3h3999bb0jvibj8i3kx5pz0c-brotli-1.0.9-dev
  /nix/store/xwg9fgc5wjnxan3iw4wk541nwpbn2jf5-lzo-2.10
  /nix/store/xyrkma825hrv7m4bblg4xsqm0s7cyjh2-rebar3-3.20.0
  /nix/store/ymbw1ps3nf56ww5yjrxx0ixhky5z7ark-gccmakedep-1.0.3
  /nix/store/z622zi4j8n5cjwkp3nvvzxyzpivvy8wk-libXdmcp-1.1.3
  /nix/store/zd2y49wb14bq1ympsz2r5vpifa5bv7zl-perl5.36.0-HTML-TagCloud-0.38
  /nix/store/znbipr33nxyy4qq3xzbfgs68v0p7x6iw-zlib-1.2.13-dev
copying path '/nix/store/i6jgil3y6pdbgi29vrsz8frg0y4d02lp-curl-7.86.0-man' from 'https://cache.nixos.org'...
copying path '/nix/store/4d5jcn5jvng448b56znrpl6n4p3gh0nm-brotli-1.0.9' from 'https://cache.nixos.org'...
copying path '/nix/store/0abkg7g6crfzjn6n9bv09h6pr7b39rq5-c-ares-1.18.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xsjv479s3h3999bb0jvibj8i3kx5pz0c-brotli-1.0.9-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/gz0fkz3c127am5n5s4w77fdjd10y377m-erlang-25.1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/ymbw1ps3nf56ww5yjrxx0ixhky5z7ark-gccmakedep-1.0.3' from 'https://cache.nixos.org'...
copying path '/nix/store/kg09yj9rg3plysqmcjb0c2b3l75lwc5d-gdbm-1.23' from 'https://cache.nixos.org'...
copying path '/nix/store/fbcngdspjp5rx7287i05vw9if5g5sjv2-git-2.38.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/bv3fzf5g3bdjq7zqzc46xknsxy4h0cnq-gnum4-1.4.19' from 'https://cache.nixos.org'...
copying path '/nix/store/0mzw3caf9jwz1wrsg4f412mmxkrhpn7w-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/a078wn5b4gbyc2khz5lhrz5ayhzr8v2l-libICE-1.0.10' from 'https://cache.nixos.org'...
copying path '/nix/store/dljzajdq589id89i0a7ypdl9bhiicwg0-hook' from 'https://cache.nixos.org'...
copying path '/nix/store/x8i5safwnzd6zn54gap5hgiwkyf2bh91-libICE-1.0.10-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/x06gflwn46pxw73x3x5wz49hxm9r7rs6-libSM-1.2.3' from 'https://cache.nixos.org'...
copying path '/nix/store/n5179nw4ib0jzbfgw7phbswawgzczibj-libXau-1.0.9' from 'https://cache.nixos.org'...
copying path '/nix/store/wc1lxyr7a4xlkff9ggib5bphwm7ncrn3-libSM-1.2.3-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/z622zi4j8n5cjwkp3nvvzxyzpivvy8wk-libXdmcp-1.1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/bqsj09dq1cl1ivkigmafmxyx15wkzzgj-libconfuse-3.3' from 'https://cache.nixos.org'...
copying path '/nix/store/bl1v1b7fakv248lz8hmkw7y296895vwv-libev-4.33' from 'https://cache.nixos.org'...
copying path '/nix/store/bjl2147sbq8vjv317fggyh41yx3hqdbm-libidn2-2.3.2-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/sypk0a1ms49ay0cnipbahpc020jcn58n-libkrb5-1.20-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/nvqq53gbyr4rx4qvgakmg3jnrwgnjiap-libidn2-2.3.2-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/r5dw2ydvgbka2gifv4y8d5d40x2gsb79-libssh2-1.10.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/xnnn0ks294qhbvbzy19y72sf52fy4031-libxcb-1.14' from 'https://cache.nixos.org'...
copying path '/nix/store/nl6w48s4xv3p62ysl080jg38hxkxrqsi-libxcrypt-4.4.33' from 'https://cache.nixos.org'...
copying path '/nix/store/h4nv0fl1y1d3y9zmbqa8ipirj8h20rvd-libX11-1.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/njych6rqwjv4qp9rp1791d1hs6qrxzbf-libxcb-1.14-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/xl3pdp473c25jy0n201b4xvxlncyr3l5-libXt-1.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xmya4kpz3d07g0kcmb8p8cbfpwb4nhlj-libxml2-2.10.3' from 'https://cache.nixos.org'...
copying path '/nix/store/pfl7kczvddlpckni5hwm8i1hilx4s2nv-lz4-1.9.4' from 'https://cache.nixos.org'...
copying path '/nix/store/vn58xy8kcs3bqz2z3qz2jrl0znqgx1wl-libarchive-3.6.1-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/xwg9fgc5wjnxan3iw4wk541nwpbn2jf5-lzo-2.10' from 'https://cache.nixos.org'...
copying path '/nix/store/lygy6a5ljbyy6rk9xhy57h6p2vv41qx2-nghttp2-1.49.0' from 'https://cache.nixos.org'...
copying path '/nix/store/4fjjxf19nmph5qf5r2y546j5nxk4ci6w-openssl-3.0.7' from 'https://cache.nixos.org'...
copying path '/nix/store/az8kbcj9h774ag4l9fifx8p6413cabvn-nghttp2-1.49.0-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/80q2fvxng4020illmh9885x2d1fmahdl-perl-5.36.0' from 'https://cache.nixos.org'...
copying path '/nix/store/m4bi5pcpgjzxv6icnncffyqgm1vg32cf-nghttp2-1.49.0-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/pssk6lcs4lihsihryyklnzw8rqdwnwj0-autoconf-2.71' from 'https://cache.nixos.org'...
copying path '/nix/store/7bssg9isjimkadgs1ldzn9kmv5nr966y-automake-1.16.5' from 'https://cache.nixos.org'...
copying path '/nix/store/6i7rixaq9k09d8k3lw4g245alnmgczyv-openssl-3.0.7-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/cd508csaz93jgysi54056i3mshxasjd8-perl5.36.0-Encode-Locale-1.05' from 'https://cache.nixos.org'...
copying path '/nix/store/v68z49acirkr8m1k2nrwghyiz324p9dh-openssl-3.0.7-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/6fbzrfvkwd1pcvrpm1fr3s65icbrfpyx-perl5.36.0-FCGI-0.79' from 'https://cache.nixos.org'...
copying path '/nix/store/l3rx8r560hd4qg3ylh67j3c6jl87ysrm-perl5.36.0-FCGI-ProcManager-0.28' from 'https://cache.nixos.org'...
copying path '/nix/store/zd2y49wb14bq1ympsz2r5vpifa5bv7zl-perl5.36.0-HTML-TagCloud-0.38' from 'https://cache.nixos.org'...
copying path '/nix/store/s685ib8g0jap49iclib29p97hynhslip-perl5.36.0-HTML-Tagset-3.20' from 'https://cache.nixos.org'...
copying path '/nix/store/g68xc22yyp74pkl6r70873ahl39n6p01-perl5.36.0-IO-HTML-1.004' from 'https://cache.nixos.org'...
copying path '/nix/store/2cdxfs87d522qan7xswmdwv3rxcmvhm6-perl5.36.0-LWP-MediaTypes-6.04' from 'https://cache.nixos.org'...
copying path '/nix/store/ixnjy9qr7721f8m8mbwgajhwhgwgf6iy-perl5.36.0-TermReadKey-2.38' from 'https://cache.nixos.org'...
copying path '/nix/store/9qibrh1m3x4l93ismpyi2sj4kdwfzbbb-perl5.36.0-TimeDate-2.33' from 'https://cache.nixos.org'...
copying path '/nix/store/x9gyqlh3fj35xhrdad18jp6ynz20y867-perl5.36.0-Try-Tiny-0.30' from 'https://cache.nixos.org'...
copying path '/nix/store/42kk38fr64cpc9hvqa77vszb468fna6a-perl5.36.0-HTTP-Date-6.05' from 'https://cache.nixos.org'...
copying path '/nix/store/kbpsm4b7kyk4vaw2803c2h6dnahn33ds-perl5.36.0-URI-5.05' from 'https://cache.nixos.org'...
copying path '/nix/store/fzw2brnqf2g80i81ilbkyppgzp1zsm5j-perl5.36.0-File-Listing-6.14' from 'https://cache.nixos.org'...
copying path '/nix/store/dza42p65q4f871k77g49n59z8af4r3sc-perl5.36.0-HTTP-Message-6.26' from 'https://cache.nixos.org'...
copying path '/nix/store/2anmjk732z9byhym2dr3crnixcv9rvvb-perl5.36.0-Net-HTTP-6.19' from 'https://cache.nixos.org'...
copying path '/nix/store/324h3rg19wxqwm08z3678slbp6si6zbr-perl5.36.0-HTML-Parser-3.75' from 'https://cache.nixos.org'...
copying path '/nix/store/jj47qwsrchynz5pfyc6m42k9m9v1rpnn-perl5.36.0-HTTP-Cookies-6.09' from 'https://cache.nixos.org'...
copying path '/nix/store/2qchmvg23fziqn19rj80b4wwbqyaszng-perl5.36.0-CGI-4.51' from 'https://cache.nixos.org'...
copying path '/nix/store/lw5wqmw4n4icxgiqp57dnbkwbjn01kfx-perl5.36.0-HTTP-Negotiate-6.01' from 'https://cache.nixos.org'...
copying path '/nix/store/dlnv7pp36z65s249x559kd83n2dk24ws-perl5.36.0-CGI-Fast-2.15' from 'https://cache.nixos.org'...
copying path '/nix/store/5lg5fx9jddq27r9kq4r4k1i3kh6qlqya-perl5.36.0-WWW-RobotRules-6.02' from 'https://cache.nixos.org'...
copying path '/nix/store/bnyc57p73fmp6jk9mcq367jzhjn1d8cn-pkg-config-0.29.2' from 'https://cache.nixos.org'...
copying path '/nix/store/15w3ybql6xynyixw3j7pja9pvin99jl3-perl5.36.0-libwww-perl-6.67' from 'https://cache.nixos.org'...
copying path '/nix/store/1x4gyddm54853ndv54v6b3rbvk3rp2y3-pkg-config-wrapper-0.29.2' from 'https://cache.nixos.org'...
copying path '/nix/store/xyrkma825hrv7m4bblg4xsqm0s7cyjh2-rebar3-3.20.0' from 'https://cache.nixos.org'...
copying path '/nix/store/bwnh3s218z6imnbydilkq7w3yslylgc9-source' from 'https://cache.nixos.org'...
copying path '/nix/store/rajzq10zxi3n4rjv0f5ld6jslvya4h4l-sqlite-3.40.0' from 'https://cache.nixos.org'...
copying path '/nix/store/ri30iji3qrg5sqr6cl2fjkqa5482cn3m-squashfs-4.5.1' from 'https://cache.nixos.org'...
copying path '/nix/store/3sixc33xj6wbjd3zqd5y1m1cbfhj2j2s-python3-3.10.9' from 'https://cache.nixos.org'...
copying path '/nix/store/izdhavryai2fl6rvawhkzzw5wapwp9jz-tradcpp-0.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/4fm022jvmdlfjyfsdwz1xz8j7mimnabm-git-2.38.1' from 'https://cache.nixos.org'...
copying path '/nix/store/f86lpyhxax32k5w1k81c8z27bfvxps2x-unzip-6.0' from 'https://cache.nixos.org'...
copying path '/nix/store/0n24b06x2brlqgk0s41qm0dd4iysz885-x11-ssh-askpass-1.2.4.1.tar.gz' from 'https://cache.nixos.org'...
copying path '/nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7' from 'https://cache.nixos.org'...
copying path '/nix/store/6kxfzm6dwpak0ayncrnfz5wx5aqya6r1-xorgproto-2021.5' from 'https://cache.nixos.org'...
copying path '/nix/store/mq41impkvjbng4spzr8xqx2j1hr6cqj6-imake-1.0.8' from 'https://cache.nixos.org'...
copying path '/nix/store/wfql2y06cc262sab2l2xfz1cyxl2pm7g-libX11-1.8.1-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/pb8ki1b46mskkg4ks42vkmpi78rnp2ry-zip-3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/49n6zv1cnfh4qnmqp3m53k8vabcdijl8-libXt-1.2.1-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/cp8w9sd0xadryq2qqkmvcird2p3s4sq9-fwup-1.9.1' from 'https://cache.nixos.org'...
copying path '/nix/store/znbipr33nxyy4qq3xzbfgs68v0p7x6iw-zlib-1.2.13-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/2mz1jj659chfsspnj6bf87y2khi8ylbl-zstd-1.5.2-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/06nq0w4f8dg9jvybs57yrr2180hfirdf-zstd-1.5.2-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/24hd4g9gs48jxchr5xx61c4g80sy0b63-curl-7.86.0-dev' from 'https://cache.nixos.org'...
building '/nix/store/qzwi89imacw90ccihrfyr62f4m34c4z2-x11-ssh-askpass-1.2.4.1.drv'...
unpacking sources
unpacking source archive /nix/store/0n24b06x2brlqgk0s41qm0dd4iysz885-x11-ssh-askpass-1.2.4.1.tar.gz
source root is x11-ssh-askpass-1.2.4.1
setting SOURCE_DATE_EPOCH to timestamp 1000712570 of file x11-ssh-askpass-1.2.4.1/x11-ssh-askpass.man.in
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
configure flags: --prefix=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1 --bindir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/bin --sbindir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/sbin --includedir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/include --oldincludedir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/include --mandir=/nix/store/10zrj96jkvcwa6by4s6p3g7sb390kldq-x11-ssh-askpass-1.2.4.1-man/share/man --infodir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/share/info --docdir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/share/doc/x11-ssh-askpass --libdir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/lib --libexecdir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/libexec --localedir=/nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/share/locale --with-app-defaults-dir=\$out/etc/X11/app-defaults

x11-ssh-askpass has been configured with the following options:

                  Askpass directory: /nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/libexec
                        Manual page: /nix/store/10zrj96jkvcwa6by4s6p3g7sb390kldq-x11-ssh-askpass-1.2.4.1-man/share/man/man1
          Application defaults file: SshAskpass-default.ad
     Application defaults directory: /nix/store/db461nkx9cz14baw6xym1q9czkkkp7l7-x11-ssh-askpass-1.2.4.1/etc/X11/app-defaults
  Install application defaults file: yes

        Compiler: clang
  Compiler flags: default
    Linker flags: default

You may now create the Makefile and build x11-ssh-askpass using the
following commands:

        xmkmf
        make includes
        make

imake -DUseInstalled -I/nix/store/mq41impkvjbng4spzr8xqx2j1hr6cqj6-imake-1.0.8/lib/X11/config
make Makefiles
make: Nothing to be done for 'Makefiles'.
make includes
ln -s SshAskpass-default.ad SshAskpass.ad
sed -n '/^[^!]/s/.*/"&",/p' <SshAskpass.ad >SshAskpass_ad.h.tmp
mv -f SshAskpass_ad.h.tmp SshAskpass_ad.h
make depend
gccmakedep  --   -I/nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7/include    DarwinMachineDefines -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED         -- drawing.c dynlist.c resources.c x11-ssh-askpass.c
building
build flags: SHELL=/nix/store/x380x9d7gqh4ig9h50a7wx08p0s6622f-bash-5.1-p16/bin/bash
clang -O -Wall -Wpointer-arith -no-cpp-precomp     -I/nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7/include    DarwinMachineDefines -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED          -c -o drawing.o drawing.c
clang-11: error: no such file or directory: 'DarwinMachineDefines'
make: *** [<builtin>: drawing.o] Error 1
error: builder for '/nix/store/qzwi89imacw90ccihrfyr62f4m34c4z2-x11-ssh-askpass-1.2.4.1.drv' failed with exit code 2;
       last 10 log lines:
       > ln -s SshAskpass-default.ad SshAskpass.ad
       > sed -n '/^[^!]/s/.*/"&",/p' <SshAskpass.ad >SshAskpass_ad.h.tmp
       > mv -f SshAskpass_ad.h.tmp SshAskpass_ad.h
       > make depend
       > gccmakedep  --   -I/nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7/include    DarwinMachineDefines -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED         -- drawing.c dynlist.c resources.c x11-ssh-askpass.c
       > building
       > build flags: SHELL=/nix/store/x380x9d7gqh4ig9h50a7wx08p0s6622f-bash-5.1-p16/bin/bash
       > clang -O -Wall -Wpointer-arith -no-cpp-precomp     -I/nix/store/gp8riwg2k6rv8fhmb4i1jg2zaq23q536-xorg-cf-files-1.0.7/include    DarwinMachineDefines -D__DARWIN__                                 -DNO_ALLOCA -DCSRG_BASED          -c -o drawing.o drawing.c
       > clang-11: error: no such file or directory: 'DarwinMachineDefines'
       > make: *** [<builtin>: drawing.o] Error 1
       For full logs, run 'nix log /nix/store/qzwi89imacw90ccihrfyr62f4m34c4z2-x11-ssh-askpass-1.2.4.1.drv'.
error: build of '/nix/store/bz6z2h9h0bap02rv1j33yfxvj2q2ksnk-elixir-1.13.4.drv', '/nix/store/qzwi89imacw90ccihrfyr62f4m34c4z2-x11-ssh-askpass-1.2.4.1.drv' failed
@fhunleth
Copy link
Member

Thanks for letting us know about this!

x11_ssh_askpass isn't needed on MacOS. I'm not a Nix user, but I'm told that making the x11_ssh_askpass conditional like in https://github.com/ceedubs/unison-nix/blob/e00ad743c77174714d1ebbcacf9b8e63cc7f9554/flake.nix#L36 is the way to fix this.

If that makes sense to you and you can test, could you either send a PR or let me know the update you made here so I can fix the docs?

@simonelnahas
Copy link
Author

simonelnahas commented Mar 16, 2023

Thanks!

Would love to test it, although I'm not sure exactly how to incorporate that code snippet you linked into the nix-shell file.

@garrettmichaelgeorge
Copy link

garrettmichaelgeorge commented Apr 19, 2023

Hi @simonelnahas, are you by chance running macOS on a recent aarch64 architecture (M1 or M2)? It looks like x11_ssh_askpass was previously marked as broken on aarch64-darwin, but the "broken" label was removed in NixOS/nixpkgs#207321 after the package was verified to build on that architecture.

If x11_ssh_askpass is still showing as broken (or actually breaking when building locally), then the local version of nixpkgs (referenced by import <nixpkgs> in the example) probably needs to be updated.

Depending on your preferences for using Nix, a couple ways to update that nixpkgs version are:

  1. Pin the nixpkgs version at the top of shell.nix (see the pinning nixpkgs tutorial or this reference). The following pins it to the most recent commit on nixpkgs-unstable as of now:
{ pkgs ? import (fetchTarball "https://github.com/nixos/nixpkgs/archive/0a4206a51b386e5cda731e8ac78d76ad924c7125.tar.gz") {}
}:
  1. Use a Nix flake. Flakes store the nixpkgs version in a lockfile and were invented in part to make this easier.

Let me know if bumping the nixpkgs version solves the issue! If not, then conditionally including the x11_ssh_askpass could also work, since it sounds like it is not needed anyway on macOS (no if/then statement needed):

{
  # ...
  buildInputs = [
    autoconf
    automake
    curl
    erlangR25
    fwup
    git
    pkgs.beam.packages.erlangR25.elixir
    rebar3
    squashfsTools
    pkg-config
  ] ++ lib.optionals stdenv.isLinux [ x11_ssh_askpass ];
  # ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants