{"id":23020252,"url":"https://github.com/brainrake/extra-sources-test","last_synced_at":"2025-07-24T13:34:20.749Z","repository":{"id":139110944,"uuid":"476345195","full_name":"brainrake/extra-sources-test","owner":"brainrake","description":null,"archived":false,"fork":false,"pushed_at":"2022-03-31T15:24:12.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T18:51:49.416Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brainrake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-31T14:35:26.000Z","updated_at":"2022-03-31T14:35:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7c52d47-db17-43e1-8562-3eb1ccef3979","html_url":"https://github.com/brainrake/extra-sources-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brainrake/extra-sources-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fextra-sources-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fextra-sources-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fextra-sources-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fextra-sources-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brainrake","download_url":"https://codeload.github.com/brainrake/extra-sources-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brainrake%2Fextra-sources-test/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266851040,"owners_count":23995200,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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":"2024-12-15T12:13:35.446Z","updated_at":"2025-07-24T13:34:20.741Z","avatar_url":"https://github.com/brainrake.png","language":"Nix","readme":"Test repository for adding extra dependencies programatically via haskell.nix.\n\n\n### Goal\n\nTake a flake input and a list of subdirectories. Add the cabal packages defined there as dependencies to the main package (`mypackage`).\n\n### Approach\n\nGenerate package definitions for each dependency package with `cabal-to-nix`, add them to the package's `pkg-def-extras`. \n\n\nResult:\n\n````nix develop````\n```\n...\n[__1] unknown package: mydep (dependency of mypackage)\n...\n```\nCabal can't find the package.\n\nThis is because `cabalProject` first calls `callCabalProjectToNix` which doesn't use `pkg-def-extras`.\n\n\n### What now?\n\n`callCabalProjectToNix` has two ways to include extra packages:\n\n    - via `cabalProjectLocal` and friends\n    - via `configureArgs` `--package-db`\n\nLet's try to generate a package db with haskell.nix and use `--package-db`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainrake%2Fextra-sources-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrainrake%2Fextra-sources-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrainrake%2Fextra-sources-test/lists"}