nix-shell slow execution of program

493 views Asked by At

I am working with clash (haskell -> verilog) compilation the demo project at https://github.com/mheinzel/clash-yosys-demo provides both a nix branch and one using stack.

running

time clash -v --verilog src/Top.hs -outputdir build

takes

  • ~ 1m if I run it inside a nix shell, compared to
  • ~ 2s if I use the version I installed with stack install --resolver lts-12.12 clash-ghc

I am very much a Nix beginner and using Nixpkgs, so can anyone give me pointers where to look at why my Nix environment version is so much slower? It seems the linking of used libraries is taking ages (this is what I got from using -v, the verbose flag).

0

There are 0 answers