mirror of
https://github.com/simplex-chat/haskell.nix.git
synced 2026-06-03 09:17:32 +00:00
20 lines
501 B
Nix
20 lines
501 B
Nix
# default.nix
|
|
{ pkgs ? import <nixpkgs> {}}:
|
|
let
|
|
# Import the Haskell.nix library,
|
|
haskell = import (builtins.fetchTarball "https://github.com/input-output-hk/haskell.nix/archive/master.tar.gz") {
|
|
inherit pkgs;
|
|
};
|
|
|
|
# Instantiate a package set using the generated file.
|
|
pkgSet = haskell.mkCabalProjectPkgSet {
|
|
plan-pkgs = import ./pkgs.nix;
|
|
pkg-def-extras = [];
|
|
modules = [
|
|
{
|
|
# You will need to put build fixes here.
|
|
}
|
|
];
|
|
};
|
|
in
|
|
pkgSet.config.hsPkgs |