{"id":16344286,"url":"https://github.com/cidem/ghc_nix_problem","last_synced_at":"2025-06-10T09:03:29.535Z","repository":{"id":118785101,"uuid":"583292869","full_name":"cideM/ghc_nix_problem","owner":"cideM","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-29T12:23:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-18T08:37:20.501Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cideM.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":"2022-12-29T10:45:25.000Z","updated_at":"2022-12-29T10:45:38.000Z","dependencies_parsed_at":"2023-11-10T11:57:52.791Z","dependency_job_id":null,"html_url":"https://github.com/cideM/ghc_nix_problem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fghc_nix_problem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fghc_nix_problem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fghc_nix_problem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cideM%2Fghc_nix_problem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cideM","download_url":"https://codeload.github.com/cideM/ghc_nix_problem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":256410912,"owners_count":22383481,"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":[],"created_at":"2024-10-11T00:27:43.948Z","updated_at":"2025-06-10T09:03:29.507Z","avatar_url":"https://github.com/cideM.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mismatch Between Cabal and Nix Version Resolution\n\nThis project has a very simple `Main.hs` file that imports `modern-uri`. The\npackage should be resolved to version 0.3.4.4, since only that works with the\n`base` version that comes with GHC 8.10.7, which is used in this project. Cabal\ngets that right, but Nix doesn't.\n\nThe issue is likely that the package set that comes with GHC 8.10.7 in Nix\nhappens to have `modern-uri` 0.3.6.0.\n\nThese commands will demonstrate the difference:\n```shell\n$ cabal run\nUp to date\nURI {uriScheme = Just \"https\", uriAuthority = Right (Authority {authUserInfo = Nothing, authHost = \"markkarpov.com\", authPort = Nothing}), uriPath = Nothing, uriQuery = [], uriFragment = Nothing}\n$ nix run\nwarning: Git tree '/Users/fbs/private/ghc_nix_problem' is dirty\nerror: builder for '/nix/store/bx4r1zbif27w4s12ffcnm4nxyvc9w7ff-modern-uri-0.3.6.0.drv' failed with exit code 1;\n       last 10 log lines:\n       \u003e   $, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:1024:20 in Cabal-3.2.1.0:Distribution.Simple.Configure\n       \u003e   configureFinalizedPackage, called at libraries/Cabal/Cabal/Distribution/Simple/Configure.hs:477:12 in Cabal-3.2.1.0:Distribution.Simple.Configure\n       \u003e   configure, called at libraries/Cabal/Cabal/Distribution/Simple.hs:625:20 in Cabal-3.2.1.0:Distribution.Simple\n       \u003e   confHook, called at libraries/Cabal/Cabal/Distribution/Simple/UserHooks.hs:65:5 in Cabal-3.2.1.0:Distribution.Simple.UserHooks\n       \u003e   configureAction, called at libraries/Cabal/Cabal/Distribution/Simple.hs:180:19 in Cabal-3.2.1.0:Distribution.Simple\n       \u003e   defaultMainHelper, called at libraries/Cabal/Cabal/Distribution/Simple.hs:116:27 in Cabal-3.2.1.0:Distribution.Simple\n       \u003e   defaultMain, called at Setup.hs:6:8 in main:Main\n       \u003e Setup: Encountered missing or private dependencies:\n       \u003e base \u003e=4.15 \u0026\u0026 \u003c5.0\n       \u003e\n       For full logs, run 'nix log /nix/store/bx4r1zbif27w4s12ffcnm4nxyvc9w7ff-modern-uri-0.3.6.0.drv'.\nerror: 1 dependencies of derivation '/nix/store/zsvz79qsaldv7ff7acvzn91l2j4fizql-ghc-nix-problem-0.1.0.0.drv' failed to build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Fghc_nix_problem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcidem%2Fghc_nix_problem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcidem%2Fghc_nix_problem/lists"}