{"id":14967991,"url":"https://github.com/milahu/deb2nix","last_synced_at":"2026-01-23T22:02:48.503Z","repository":{"id":252346101,"uuid":"738542517","full_name":"milahu/deb2nix","owner":"milahu","description":"translate package names between debian and nixpkgs","archived":false,"fork":false,"pushed_at":"2024-08-09T05:41:07.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-23T21:18:50.128Z","etag":null,"topics":["apt","apt-file","debian","debian2nixos","lang2nix","nix","nix-index","nix-locate","nixos","nixpkgs"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/milahu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2024-01-03T13:20:34.000Z","updated_at":"2024-08-09T05:41:10.000Z","dependencies_parsed_at":"2024-08-09T06:44:55.012Z","dependency_job_id":"9be4e3bc-bb05-4e2c-8b7f-00200be31e31","html_url":"https://github.com/milahu/deb2nix","commit_stats":null,"previous_names":["milahu/deb2nix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/milahu/deb2nix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milahu%2Fdeb2nix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milahu%2Fdeb2nix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milahu%2Fdeb2nix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milahu%2Fdeb2nix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milahu","download_url":"https://codeload.github.com/milahu/deb2nix/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milahu%2Fdeb2nix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28700849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T17:25:48.045Z","status":"ssl_error","status_checked_at":"2026-01-23T17:25:47.153Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["apt","apt-file","debian","debian2nixos","lang2nix","nix","nix-index","nix-locate","nixos","nixpkgs"],"created_at":"2024-09-24T13:39:04.540Z","updated_at":"2026-01-23T22:02:48.464Z","avatar_url":"https://github.com/milahu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deb2nix\n\ntranslate package names between debian and nixpkgs\n\n\n\n## status\n\nearly draft, proof of concept\n\ncurrently this is extremely slow\nbecause `nix-locate` is called once for every file\n\nexample:\n\n```console\n$ APT_CONFIG=\"$HOME/.config/apt/apt.conf\" apt-file list bzip2 | grep /bin/\nbzip2: /bin/bunzip2\nbzip2: /bin/bzcat\nbzip2: /bin/bzcmp\nbzip2: /bin/bzdiff\nbzip2: /bin/bzegrep\nbzip2: /bin/bzexe\nbzip2: /bin/bzfgrep\nbzip2: /bin/bzgrep\nbzip2: /bin/bzip2\nbzip2: /bin/bzip2recover\nbzip2: /bin/bzless\nbzip2: /bin/bzmore\n```\n\nthis will call\n\n```sh\nnix-locate --top-level --whole-name --at-root /bin/bunzip2\nnix-locate --top-level --whole-name --at-root /bin/bzcat\nnix-locate --top-level --whole-name --at-root /bin/bzcmp\n# ...\n```\n\nthis will be faster:\n\n```sh\nnix-locate --top-level --regex '^(/bin/bunzip2|/bin/bzcat|/bin/bzcmp|/bin/bzdiff|/bin/bzegrep|/bin/bzexe|/bin/bzfgrep|/bin/bzgrep|/bin/bzip2|/bin/bzip2recover|/bin/bzless|/bin/bzmore)$'\n```\n\n\n\n## related\n\n- https://github.com/ngi-nix/debnix - Mapping library names from debian to nix - mapping is done by package names, see [matcher.rs](https://github.com/ngi-nix/debnix/blob/main/src/matcher.rs)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilahu%2Fdeb2nix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilahu%2Fdeb2nix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilahu%2Fdeb2nix/lists"}