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
7
pkg.nix
Normal file
7
pkg.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ nixpkgs ? import ./nixpkgs.nix {} }:
|
||||
let inherit (nixpkgs) pkgs; in
|
||||
import (pkgs.haskellPackages.haskellSrc2nix {
|
||||
name = "xanthous";
|
||||
src = ./.;
|
||||
extraCabal2nixOptions = "--hpack";
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue