Automate Haskell development with nixpkgs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stack.nix 456B

12345678910111213141516171819
  1. { pkgs ? (import <nixpkgs> {}).pkgs
  2. , ghc ? pkgs.ghc
  3. , file
  4. }:
  5. let
  6. # Load the local package:
  7. package = import file { pkgs = pkgs; };
  8. # Pull build inputs from the local package: (not sure why, but there
  9. # are some nulls in the buildInputs that we need to remove).
  10. buildInputs = builtins.filter (p: p != null)
  11. package.buildInputs;
  12. in pkgs.haskell.lib.buildStackProject {
  13. name = package.name;
  14. buildInputs = buildInputs;
  15. inherit ghc;
  16. }