mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-26 11:07:48 +03:00
31 lines
731 B
Nix
31 lines
731 B
Nix
{
|
|
haskell-nix,
|
|
lib,
|
|
}: let
|
|
cleanSource = src:
|
|
lib.cleanSourceWith {
|
|
inherit src;
|
|
filter = path: type: let
|
|
bn = baseNameOf path;
|
|
isHiddenFile = lib.hasPrefix "." bn;
|
|
isFlakeLock = bn == "flake.lock";
|
|
isNix = lib.hasSuffix ".nix" bn;
|
|
in
|
|
!isHiddenFile && !isFlakeLock && !isNix;
|
|
};
|
|
in
|
|
haskell-nix.project' {
|
|
src = cleanSource ./..;
|
|
projectFileName = "stack.yaml";
|
|
modules = [
|
|
# enable profiling
|
|
{
|
|
enableLibraryProfiling = true;
|
|
profilingDetail = "none";
|
|
}
|
|
];
|
|
branchMap = {
|
|
"https://github.com/unisonweb/shellmet.git"."2fd348592c8f51bb4c0ca6ba4bc8e38668913746" = "topic/avoid-callCommand";
|
|
};
|
|
}
|