mirror of
https://github.com/haskell/ghcide.git
synced 2024-09-11 05:36:09 +03:00
[nix] use gitignore.nix (#920)
This commit is contained in:
parent
02899170c6
commit
c4418abdc1
@ -16,6 +16,7 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
inherit (import sources.gitignore { inherit (pkgs) lib; }) gitignoreSource;
|
||||
ourHaskell = pkgs.haskell // {
|
||||
packages = pkgs.haskell.packages // {
|
||||
# relax upper bounds on ghc 8.10.x versions (and skip running tests)
|
||||
|
@ -1,4 +1,16 @@
|
||||
{
|
||||
"gitignore": {
|
||||
"branch": "master",
|
||||
"description": "Nix function for filtering local git sources",
|
||||
"homepage": "",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "gitignore",
|
||||
"rev": "c4662e662462e7bf3c2a968483478a665d00e717",
|
||||
"sha256": "1npnx0h6bd0d7ql93ka7azhj40zgjp815fw2r6smg8ch9p7mzdlx",
|
||||
"type": "tarball",
|
||||
"url": "https://github.com/hercules-ci/gitignore/archive/c4662e662462e7bf3c2a968483478a665d00e717.tar.gz",
|
||||
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
|
||||
},
|
||||
"niv": {
|
||||
"branch": "master",
|
||||
"description": "Easy dependency management for Nix projects",
|
||||
|
@ -18,7 +18,7 @@ let defaultCompiler = "ghc" + lib.replaceStrings ["."] [""] haskellPackages.ghc.
|
||||
then ourHaskell.packages.${defaultCompiler}
|
||||
else ourHaskell.packages.${compiler};
|
||||
ghcide = p: haskell.lib.doCheck
|
||||
(p.callCabal2nixWithOptions "ghcide" ./. "--benchmark" {});
|
||||
(p.callCabal2nixWithOptions "ghcide" (nixpkgs.gitignoreSource ./.) "--benchmark" {});
|
||||
isSupported = compiler == "default" || compiler == defaultCompiler;
|
||||
in
|
||||
haskellPackagesForProject.shellFor {
|
||||
|
Loading…
Reference in New Issue
Block a user