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:
parent
d3f3890dc5
commit
6eba471e24
5 changed files with 21 additions and 34 deletions
|
|
@ -1,8 +1,8 @@
|
|||
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc865", withHoogle ? true }:
|
||||
{ nixpkgs ? import ./nixpkgs.nix {}, compiler ? "ghc865", withHoogle ? true }:
|
||||
let
|
||||
inherit (nixpkgs) pkgs;
|
||||
|
||||
xan = import ./xanthous.nix;
|
||||
pkg = import ./pkg.nix { inherit nixpkgs; };
|
||||
|
||||
packageSet = (
|
||||
if compiler == "default"
|
||||
|
|
@ -21,7 +21,7 @@ let
|
|||
else packageSet
|
||||
);
|
||||
|
||||
drv = haskellPackages.callPackage xan {};
|
||||
drv = haskellPackages.callPackage pkg {};
|
||||
|
||||
inherit (pkgs.haskell.lib) addBuildTools;
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue