Open patrickaldis opened 1 year ago
currently have a file script.hs containing only the following:
script.hs
#!/usr/bin/env nix-shell #!nix-shell --pure -i runghc -p "haskellPackages.ghcWithPackages (pkgs: [ pkgs.matplotlib])" import Graphics.Matplotlib main = onscreen $ contourF (\a b -> sin (a*pi/180.0) + cos (b*pi/180.0)) (-100) 100 (-200) 200 10
However, the only output I get is:
env: 'python3': No such file or directory
Maybe my undestanding of setting up a nix environment is wrong? Appreciate any help
I can also add python3 with matplotlib, scipy manually - and this works!, by just adding another package to nix-shell. But I was under the impression this was what the nix-shell was for (#9)
python3
nix-shell
currently have a file
script.hs
containing only the following:However, the only output I get is:
Maybe my undestanding of setting up a nix environment is wrong? Appreciate any help