{"id":13837876,"url":"https://github.com/tek/hix","last_synced_at":"2025-04-09T21:42:44.773Z","repository":{"id":45501657,"uuid":"358374583","full_name":"tek/hix","owner":"tek","description":"Haskell/Nix development build tools","archived":false,"fork":false,"pushed_at":"2024-11-09T15:59:18.000Z","size":1551,"stargazers_count":33,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-09T16:38:42.038Z","etag":null,"topics":["haskell","nix"],"latest_commit_sha":null,"homepage":"https://tryp.io/hix/index.html","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tek.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","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":"2021-04-15T19:45:41.000Z","updated_at":"2024-11-09T15:59:23.000Z","dependencies_parsed_at":"2023-12-17T01:27:36.478Z","dependency_job_id":"9bb5688e-1912-4644-9060-9c3985e56db2","html_url":"https://github.com/tek/hix","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fhix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fhix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fhix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tek%2Fhix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tek","download_url":"https://codeload.github.com/tek/hix/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225653891,"owners_count":17502939,"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":["haskell","nix"],"created_at":"2024-08-04T15:01:28.962Z","updated_at":"2025-04-09T21:42:44.762Z","avatar_url":"https://github.com/tek.png","language":"Haskell","funding_links":[],"categories":["Nix"],"sub_categories":[],"readme":"# About\n\nHix is a toolkit for Haskell development that uses [Nix](https://nixos.org/learn.html) to provide a unified,\ndeclarative interface for a range of build related tasks:\n\n- Reproducible environments and dependency overrides\n- Cabal file generation\n- Hackage upload\n- Rapid-recompilation testing with `ghcid`\n- Haskell Language Server\n- CTags generation\n- Virtual Machines for testing\n- Compatibility checks for multiple GHC versions\n\nTo learn more, please visit the [documentation page](https://tryp.io/hix/index.html).\n\n# tldr\n\nYou can convert an existing project with Cabal files by executing this command in the project root, using\n[FlakeHub](https://flakehub.com/docs) or GitHub:\n\n```\nnix run 'https://flakehub.com/f/tek/hix/~0.8.tar.gz#bootstrap'\nnix run 'github:tek/hix?ref=0.8.0#bootstrap'\n```\n\nYou can create a new project in the current directory:\n\n```\nnix run 'https://flakehub.com/f/tek/hix/~0.8.tar.gz#new' -- --name 'project-name' --author 'Your Name'\n```\n\nThe manual process consists of first adding Hix to your Haskell project flake by specifying the input:\n\n```nix\n{\n  inputs.hix.url = \"https://flakehub.com/f/tek/hix/~0.8.tar.gz\";\n}\n```\n\nThen configure your project with NixOS module options:\n\n```nix\n{\n  description = \"Example\";\n  inputs.hix.url = \"https://flakehub.com/f/tek/hix/~0.8.tar.gz\";\n  outputs = {hix, ...}: hix {\n    packages.parser = {\n      src = ./.;\n      library = {\n        enable = true;\n        dependencies = [\"aeson ^\u003e= 2.0\" \"bytestring\"];\n      };\n      executable.enable = true;\n      test.enable = true;\n    };\n  };\n}\n```\n\nNow generate Cabal files with:\n\n```\nnix run .#gen-cabal\n```\n\nBuild the package with `nix build`, or run the tests in `test/Main.hs` in GHCid:\n\n```\nnix run .#ghcid -- -p parser\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fhix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftek%2Fhix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftek%2Fhix/lists"}