Advertisement
Guest User

Untitled

a guest
Jan 20th, 2021
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. [nix@nixos:~/myproj]$ cat nix/stack-shell.nix
  2. {ghc}:
  3.  
  4. let
  5. nixpkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/50a5d4c77307e7da226294f924098d98d5c38990.tar.gz") {};
  6. in
  7. nixpkgs.haskell.lib.buildStackProject {
  8. inherit ghc;
  9. name = "myEnv";
  10. buildInputs = with nixpkgs.pkgs; [ lzma glpk pcre postgresql zlib git ];
  11. }
  12.  
  13. [nix@nixos:~/myproj]$ stack build --nix
  14. error: attribute 'ghc8103' missing, at (string):1:29
  15. (use '--show-trace' to show detailed location information)
  16.  
  17. [nix@nixos:~/myproj]$ nix-instantiate -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/50a5d4c77307e7da226294f924098d98d5c38990.tar.gz --eval -E "with (import <nixpkgs> {}); lib.attrNames haskell.compiler"
  18. [ "ghc8101" "ghc8102" "ghc8102Binary" "ghc8102BinaryMinimal" "ghc8103" "ghc822Binary" "ghc865" "ghc865Binary" "ghc882" "ghc883" "ghc884" "ghc901" "ghcHEAD" "ghcjs" "ghcjs86" "integer-simple" "native-bignum" ]
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement