After failing to install Dex on my computer I tried using nix using the official nix docker image.
So I ran:
docker run -it nixos/nix
and then inside the container:
nix-build
But got the following error:
bash-5.1# nix-build
copying path '/nix/store/bdnd8lfyps2glm5s6xiy4c3dk29hrmr4-glibc-locales-2.35-163' from 'https://cache.nixos.org'...
copying path '/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8' from 'https://cache.nixos.org'...
copying path '/nix/store/ibd5x365dd6q5j32xh1cpw3wmxfpmm8p-distribution-nixpkgs-1.7.0.1-data' from 'https://cache.nixos.org'...
copying path '/nix/store/xwl6y60ffijfbhxb754dlxk3pkjgw0d2-ed-1.18' from 'https://cache.nixos.org'...
copying path '/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43' from 'https://cache.nixos.org'...
copying path '/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/ijz81p08bp812q2bvv77lz9qpfzncibd-gmp-with-cxx-6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/fzb7khbic8vpcr3m69v6y8qp6jqspdgw-openssl-1.1.1s' from 'https://cache.nixos.org'...
copying path '/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/561hymhm3zyraf19rfl4xbsjswkd394f-cabal2nix-2.19.1' from 'https://cache.nixos.org'...
copying path '/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0' from 'https://cache.nixos.org'...
copying path '/nix/store/83xy5k2gfx2v596gjwrpk9pwra91ck90-stdenv-linux' from 'https://cache.nixos.org'...
building '/nix/store/swhv7a24if8gsgf4a3x8iq6139vrndw3-cabal2nix-dex.drv'...
trace: warning: String 'configureFlags' is deprecated and will be removed in release 23.05. Please use a list of strings. Derivation name: dex-0.1.0.0, file: /nix/store/5w8hpdnnihj5hn4ksx724gdzg3ydjf53-cabal2nix-dex/default.nix
error: Package ‘floating-bits-0.3.0.0’ in /nix/store/sz97qg3wgd5kmlns36vzna4rb75b8jnf-source/pkgs/development/haskell-modules/hackage-packages.nix:100781 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)
So I tried:
bash-5.1# export NIXPKGS_ALLOW_BROKEN=1
bash-5.1# git clone https://github.com/google-research/dex-lang
Cloning into 'dex-lang'...
remote: Enumerating objects: 29205, done.
remote: Counting objects: 100% (207/207), done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 29205 (delta 114), reused 140 (delta 70), pack-reused 28998
Receiving objects: 100% (29205/29205), 26.43 MiB | 3.72 MiB/s, done.
Resolving deltas: 100% (22212/22212), done.
bash-5.1# cd dex-lang/
bash-5.1# nix-build
copying path '/nix/store/bdnd8lfyps2glm5s6xiy4c3dk29hrmr4-glibc-locales-2.35-163' from 'https://cache.nixos.org'...
copying path '/nix/store/j9p3g8472iijd50vhdprx0nmk2fqn5gv-diffutils-3.8' from 'https://cache.nixos.org'...
copying path '/nix/store/ibd5x365dd6q5j32xh1cpw3wmxfpmm8p-distribution-nixpkgs-1.7.0.1-data' from 'https://cache.nixos.org'...
copying path '/nix/store/xwl6y60ffijfbhxb754dlxk3pkjgw0d2-ed-1.18' from 'https://cache.nixos.org'...
copying path '/nix/store/y6aj732zm9m87c82fpvf103a1xb22blp-file-5.43' from 'https://cache.nixos.org'...
copying path '/nix/store/hwcdqw4jrjnd37wxqgsd47hd0j8bnj09-gawk-5.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/ijz81p08bp812q2bvv77lz9qpfzncibd-gmp-with-cxx-6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/mblgz65m3zv9x548a3d5m96fj2pbwr09-gnumake-4.3' from 'https://cache.nixos.org'...
copying path '/nix/store/fzb7khbic8vpcr3m69v6y8qp6jqspdgw-openssl-1.1.1s' from 'https://cache.nixos.org'...
copying path '/nix/store/v7ljksji50mg3w61dykaa3n3y79n6nil-patch-2.7.6' from 'https://cache.nixos.org'...
copying path '/nix/store/561hymhm3zyraf19rfl4xbsjswkd394f-cabal2nix-2.19.1' from 'https://cache.nixos.org'...
copying path '/nix/store/pr5n59mb4jzmfx6kanwxly0l07p861fg-patchelf-0.15.0' from 'https://cache.nixos.org'...
copying path '/nix/store/83xy5k2gfx2v596gjwrpk9pwra91ck90-stdenv-linux' from 'https://cache.nixos.org'...
building '/nix/store/swhv7a24if8gsgf4a3x8iq6139vrndw3-cabal2nix-dex.drv'...
trace: warning: String 'configureFlags' is deprecated and will be removed in release 23.05. Please use a list of strings. Derivation name: dex-0.1.0.0, file: /nix/store/5w8hpdnnihj5hn4ksx724gdzg3ydjf53-cabal2nix-dex/default.nix
error: Package ‘floating-bits-0.3.0.0’ in /nix/store/sz97qg3wgd5kmlns36vzna4rb75b8jnf-source/pkgs/development/haskell-modules/hackage-packages.nix:100781 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)
After failing to install Dex on my computer I tried using nix using the official nix docker image. So I ran:
and then inside the container:
But got the following error:
So I tried:
I also tried:
But got he same issue.
Kernel version: