{"id":14128248,"url":"https://github.com/Infinisil/all-hies","last_synced_at":"2025-08-03T22:32:43.059Z","repository":{"id":175134628,"uuid":"179627970","full_name":"infinisil/all-hies","owner":"infinisil","description":"Cached Haskell IDE Engine Nix builds for all GHC versions","archived":true,"fork":false,"pushed_at":"2021-02-13T00:46:20.000Z","size":3814,"stargazers_count":193,"open_issues_count":0,"forks_count":15,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-08-16T16:22:21.830Z","etag":null,"topics":["cache","ghc","haskell","haskell-ide-engine","nix","nixos"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infinisil.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-05T06:08:37.000Z","updated_at":"2024-07-01T07:35:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"abdc6181-6a75-4949-a709-c6e207ff3c53","html_url":"https://github.com/infinisil/all-hies","commit_stats":null,"previous_names":["infinisil/all-hies"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinisil%2Fall-hies","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinisil%2Fall-hies/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinisil%2Fall-hies/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infinisil%2Fall-hies/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infinisil","download_url":"https://codeload.github.com/infinisil/all-hies/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228571844,"owners_count":17938772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cache","ghc","haskell","haskell-ide-engine","nix","nixos"],"created_at":"2024-08-15T16:01:25.285Z","updated_at":"2024-12-07T06:31:00.839Z","avatar_url":"https://github.com/infinisil.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# Deprecated\n\n:warning: This project is deprecated. Refer to https://github.com/haskell/haskell-language-server instead, which is available from nixpkgs directly :warning:\n\n# Haskell IDE Engine for Nix\n\nThis project provides cached Nix builds for [Haskell IDE Engine](https://github.com/haskell/haskell-ide-engine) for GHC 8.6.5 and 8.8.3.\n\n## Installation\n\nInstallation is done with your projects nix-shell environment. Both [haskell.nix](https://input-output-hk.github.io/haskell.nix/) and the nixpkgs Haskell infrastructure are supported. If you don't have a nix-shell environment for your project yet, I recommend using haskell.nix.\n\nIf you just want to get started, see the [templates](./templates) for fully working example projects.\n\n### haskell.nix Projects\n\nIn short, to install HIE for your haskell.nix project, apply the all-hies nixpkgs overlay and add `{ hie = \"unstable\"; }` to the `tools` argument of [`shellFor`](https://input-output-hk.github.io/haskell.nix/reference/library/#shellfor). If you want to use the prebuilt binaries, use the `all-hies` cachix. Read the rest of this section for more details.\n\nApplying the overlay can be done as follows in a recent haskell.nix version\n```nix\nlet\n  # Pin all-hies\n  all-hies = fetchTarball {\n    # Insert the desired all-hies commit here\n    url = \"https://github.com/infinisil/all-hies/tarball/000000000000000000000000000000000000000\";\n    # Insert the correct hash after the first evaluation\n    sha256 = \"0000000000000000000000000000000000000000000000000000\";\n  };\n\n  # Assuming nixpkgs and haskellNix are defined here\n\n  # Import nixpkgs with both haskell.nix's overlays and the all-hies one\n  pkgs = import nixpkgs (haskellNix.nixpkgsArgs // {\n    overlays = haskellNix.nixpkgsArgs.overlays ++ [\n      (import all-hies {}).overlay\n    ];\n  });\n\n  /* ... */\nin /* ... */\n```\n\nAdding HIE to the environment is done like this in your `shellFor` call\n```nix\nshellFor {\n  packages = p: [ p.my-package ];\n  tools = {\n    hie = \"unstable\";\n  };\n}\n```\n\nConfiguring the `all-hies` cachix can be done with [these instructions](https://all-hies.cachix.org/), or if you have cachix installed already:\n```shell\n$ cachix use all-hies\n```\n\nNote that for haskell.nix in general, `cachix use iohk` saves a lot of building time if you use the same nixpkgs as IOHK's CI.\n\nSee the [haskell.nix stack template](./templates/haskell.nix-stack) or [haskell.nix cabal template](./templates/haskell.nix-cabal) for a fully working example including a working stack/cabal version and a hoogle database.\n\n### nixpkgs Haskell infrastructure\n\nIn short, to install HIE for your project using nixpkgs Haskell infrastructure, apply the all-hies overlay and add the `hie` Haskell package to the `nativeBuildInputs` argument of `shellFor`. If you want to use the prebuilt binaries, use the `all-hies` cachix. Read the rest of this section for more details.\n\nApplying the overlay can be done as follows\n```nix\nlet\n  # Pin all-hies\n  all-hies = fetchTarball {\n    # Insert the desired all-hies commit here\n    url = \"https://github.com/infinisil/all-hies/tarball/000000000000000000000000000000000000000\";\n    # Insert the correct hash after the first evaluation\n    sha256 = \"0000000000000000000000000000000000000000000000000000\";\n  };\n\n  # Assuming nixpkgs is defined here\n\n  # Import nixpkgs with the all-hies overlay\n  pkgs = import nixpkgs {\n    # Pass no config for purity\n    config = {};\n    overlays = [\n      (import all-hies {}).overlay\n    ];\n  };\n\n  /* ... */\nin /* ... */\n```\n\nAdding HIE to the environment is done like this in your `shellFor` call:\n```nix\nshellFor {\n  packages = p: [ p.my-package ];\n  nativeBuildInputs = [\n    haskellPackages.hie\n  ];\n}\n```\n\nIf you don't use `shellFor`, you can change your Haskell environment derivation like this instead:\n```nix\nenvWithHIE = env.overrideAttrs (old: {\n  nativeBuildInputs = old.nativeBuildInputs ++ [ haskellPackages.hie ];\n})\n```\n\nConfiguring the `all-hies` cachix can be done with [these instructions](https://all-hies.cachix.org/), or if you have cachix installed already:\n```shell\n$ cachix use all-hies\n```\n\nSee the [nixpkgs infra template](./templates/nixpkgs-cabal) for a fully working example including a working cabal version and a hoogle database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInfinisil%2Fall-hies","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FInfinisil%2Fall-hies","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FInfinisil%2Fall-hies/lists"}