2022-08-22 03:44:31 +03:00
|
|
|
{ rev ? "272fad732d39b24c4549c475176e0d8cbc8c897a"
|
2022-04-22 13:49:07 +03:00
|
|
|
, pkgs ?
|
|
|
|
if ((rev == "") || (rev == "default") || (rev == "local"))
|
|
|
|
then import <nixpkgs> {}
|
|
|
|
# Do not guard with hash, so the project is able to use current channels (rolling `rev`) of Nixpkgs
|
|
|
|
else import (builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/${rev}.tar.gz") {}
|
|
|
|
// {
|
|
|
|
# Try to build dependencies even if they are marked broken.
|
|
|
|
config.allowBroken = true;
|
|
|
|
}
|
|
|
|
}: let
|
2020-12-30 16:12:17 +03:00
|
|
|
overlay = import ./overlay.nix pkgs pkgs.haskell.lib;
|
2019-03-10 02:32:01 +03:00
|
|
|
overrideHaskellPackages = orig: {
|
|
|
|
buildHaskellPackages =
|
|
|
|
orig.buildHaskellPackages.override overrideHaskellPackages;
|
|
|
|
overrides = if orig ? overrides
|
|
|
|
then pkgs.lib.composeExtensions orig.overrides overlay
|
|
|
|
else overlay;
|
|
|
|
};
|
|
|
|
haskellPackages =
|
|
|
|
pkgs.haskellPackages.override overrideHaskellPackages;
|
2023-11-08 20:24:59 +03:00
|
|
|
in {
|
|
|
|
inherit (haskellPackages) hnix-store-core hnix-store-remote;
|
|
|
|
inherit haskellPackages;
|
2019-03-10 02:32:01 +03:00
|
|
|
inherit pkgs;
|
|
|
|
}
|