Use haskellSrc2nix over explicit cabal2nix

Use the (undocumented!) helper function haskellSrc2nix over having to
explicitly run cabal2nix all the time when rebuilding
This commit is contained in:
Griffin Smith 2019-08-31 13:15:17 -04:00
parent d3f3890dc5
commit 6eba471e24
5 changed files with 21 additions and 34 deletions

View file

@ -1,8 +1,8 @@
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc865" }:
{ nixpkgs ? import ./nixpkgs.nix {}, compiler ? "ghc865" }:
let
inherit (nixpkgs) pkgs;
all-hies = import (fetchTarball "https://github.com/infinisil/all-hies/tarball/master") {};
hie = all-hies.selection { selector = p: { inherit (p) ghc865; }; };
xanthous = pkgs.haskellPackages.callPackage ./xanthous.nix {};
xanthous = pkgs.haskellPackages.callPackage (import ./pkg.nix { inherit nixpkgs; }) {};
in
xanthous // { inherit hie; }