{"id":17080018,"url":"https://github.com/hasufell/stack2cabal","last_synced_at":"2025-04-12T21:10:17.812Z","repository":{"id":41337261,"uuid":"298574677","full_name":"hasufell/stack2cabal","owner":"hasufell","description":"Convert stack projects to cabal.project + cabal.project.freeze","archived":false,"fork":false,"pushed_at":"2024-03-18T01:55:14.000Z","size":429,"stargazers_count":25,"open_issues_count":9,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T15:21:12.470Z","etag":null,"topics":["cabal","haskell","stack"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/hasufell.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}},"created_at":"2020-09-25T13:04:17.000Z","updated_at":"2025-02-06T22:25:33.000Z","dependencies_parsed_at":"2023-01-18T10:45:56.607Z","dependency_job_id":null,"html_url":"https://github.com/hasufell/stack2cabal","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasufell%2Fstack2cabal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasufell%2Fstack2cabal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasufell%2Fstack2cabal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hasufell%2Fstack2cabal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hasufell","download_url":"https://codeload.github.com/hasufell/stack2cabal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631676,"owners_count":21136562,"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":["cabal","haskell","stack"],"created_at":"2024-10-14T12:28:00.227Z","updated_at":"2025-04-12T21:10:17.794Z","avatar_url":"https://github.com/hasufell.png","language":"Haskell","readme":"[![Gitter](https://badges.gitter.im/hasufell/stack2cabal.svg)](https://gitter.im/hasufell/stack2cabal?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Haskell CI](https://github.com/hasufell/stack2cabal/workflows/Haskell%20CI/badge.svg)](https://github.com/hasufell/stack2cabal/actions)\n[![Docker build](https://github.com/hasufell/stack2cabal/workflows/Docker%20build/badge.svg)](https://github.com/hasufell/stack2cabal/actions)\n[![Hackage version](https://img.shields.io/hackage/v/stack2cabal.svg?label=Hackage)](https://hackage.haskell.org/package/stack2cabal)\n[![license](https://img.shields.io/github/license/hasufell/stack2cabal.svg)](LICENSE)\n\n# stack2cabal\n\nThis is forked of [tseenshe/stack2cabal](https://gitlab.com/tseenshe/stack2cabal) and\nthe current [hackage package](https://hackage.haskell.org/package/stack2cabal).\n\n## Installation\n\nClone the repo and build with either cabal or stack or see the [release page](https://github.com/hasufell/stack2cabal/releases)\nfor binaries.\n\n### Docker\n\n[![Docker pulls](https://img.shields.io/docker/pulls/hasufell/stack2cabal.svg)](https://hub.docker.com/repository/docker/hasufell/stack2cabal)\n[![Docker stars](https://img.shields.io/docker/stars/hasufell/stack2cabal.svg)](https://hub.docker.com/repository/docker/hasufell/stack2cabal)\n[![Docker image size](https://img.shields.io/docker/image-size/hasufell/stack2cabal/latest.svg)](https://hub.docker.com/repository/docker/hasufell/stack2cabal)\n\n```sh\ndocker pull hasufell/stack2cabal:latest\n```\n\n## Usage\n\nTo convert a `stack.yaml` to `cabal.project` simply cd to the project directory and run:\n\n```sh\nstack2cabal\n```\n\nThis will also create a `cabal.project.freeze` based on the stack resolver.\n\nAlso see `stack2cabal --help` for further options.\n\n### Docker\n\n```sh\ndocker run --rm \\\n  -v /etc/passwd:/etc/passwd:ro \\\n  -u `id -u`:`id -g` \\\n  -v `pwd`:`pwd` \\\n  -w `pwd` \\\n  --tmpfs \"$HOME/.cache\" \\\n  hasufell/stack2cabal:latest\n```\n\n## Notes\n\n- Hackage packages that are specified as git repositories in e.g. `extra-deps` might\nhave a different version than the stack resolver. Therefore `stack2cabal` will download\nall repos and ignore their package names when generating `cabal.project.freeze`.\nThis can take some time depending on your project. Pass `--no-inspect-remotes` to skip this.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasufell%2Fstack2cabal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasufell%2Fstack2cabal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasufell%2Fstack2cabal/lists"}