{"id":27917330,"url":"https://github.com/juspay/haskell-incremental-build-template","last_synced_at":"2026-06-23T08:31:22.048Z","repository":{"id":291489417,"uuid":"964383356","full_name":"juspay/haskell-incremental-build-template","owner":"juspay","description":"A template for incremental Haskell builds using Nix","archived":false,"fork":false,"pushed_at":"2025-05-13T08:34:02.000Z","size":12,"stargazers_count":1,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-10-25T05:45:01.439Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juspay.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-11T06:08:15.000Z","updated_at":"2025-05-13T08:34:06.000Z","dependencies_parsed_at":"2025-05-05T00:50:06.103Z","dependency_job_id":"019b42d9-8e2f-47b0-adeb-76d7f21bb16d","html_url":"https://github.com/juspay/haskell-incremental-build-template","commit_stats":null,"previous_names":["juspay/haskell-incremental-build-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/juspay/haskell-incremental-build-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fhaskell-incremental-build-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fhaskell-incremental-build-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fhaskell-incremental-build-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fhaskell-incremental-build-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juspay","download_url":"https://codeload.github.com/juspay/haskell-incremental-build-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fhaskell-incremental-build-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34682622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-05-06T17:02:14.761Z","updated_at":"2026-06-23T08:31:22.030Z","avatar_url":"https://github.com/juspay.png","language":"Nix","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# haskell-incremental-build-template\n\n\u003e [!IMPORTANT]\n\u003e This minimal template focuses solely on incremental Haskell build configuration with Nix.\n\u003e For a more batteries-included Haskell Nix template, combine it with \u003chttps://github.com/srid/haskell-template\u003e\n\n\u003e [!IMPORTANT]\n\u003e Requires GHC \u003e= 9.4\n\nA template for incremental Haskell builds using Nix, leveraging [nixpkgs’s Haskell incremental build system](https://github.com/NixOS/nixpkgs/blob/30a7bc1176cd9cd066cd75b9339872fa985a6379/doc/languages-frameworks/haskell.section.md?plain=1#L469-L515) and [haskell-flake]\n\n## Getting Started\n\nFor an existing Haskell project already using [haskell-flake], integrate this template by:\n- Add the `prev` flake input (see [flake.nix](./flake.nix)).\n\nhttps://github.com/juspay/haskell-incremental-build-template/blob/7432331400f27924d827fbf81de5140c1fa0052c/flake.nix#L10-L14\n\n- Include settings from [haskell.nix](./nix/modules/flake/haskell.nix):\n\nhttps://github.com/juspay/haskell-incremental-build-template/blob/7432331400f27924d827fbf81de5140c1fa0052c/nix/modules/flake/haskell.nix#L20-L32\n\n- Use [Find Latest Cached Commit](./.github/actions/find-latest-cached-commit) action to find the commit hash with cached build artifacts.\n\nhttps://github.com/juspay/haskell-incremental-build-template/blob/efd179a97b078634db3f124e862260d3acc35499/.github/workflows/ci.yaml#L30-L48\n\n[haskell-flake]: https://github.com/srid/haskell-flake\n\n## Quick Trial\n\n- Clone the repository: `git clone https://github.com/juspay/haskell-incremental-build-template \u0026\u0026 cd haskell-incremental-build-template`\n- Perform a full build: `nix build .#default -L`\n  - This builds both `Example.hs` and `Main.hs` modules.\n- Add a newline to `Main.hs` to simulate a change: `echo \u003e\u003e src/Main.hs`\n- Perform an incremental build: `nix build .#default --override-input prev github:juspay/haskell-incremental-build-template -L`\n  - Only `Main.hs` is rebuilt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fhaskell-incremental-build-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuspay%2Fhaskell-incremental-build-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fhaskell-incremental-build-template/lists"}