{"id":20269201,"url":"https://github.com/ink-splatters/cpp-shell","last_synced_at":"2025-12-01T07:05:26.071Z","repository":{"id":218430513,"uuid":"746373365","full_name":"ink-splatters/cpp-shell","owner":"ink-splatters","description":"nix flake - based  cpp dev shell","archived":false,"fork":false,"pushed_at":"2024-04-22T12:00:51.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-22T13:06:57.367Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ink-splatters.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2024-01-21T21:17:06.000Z","updated_at":"2024-04-25T07:24:27.199Z","dependencies_parsed_at":"2024-01-21T22:57:30.295Z","dependency_job_id":"d16fa55b-43c1-4b11-b708-ce54f37b1f5d","html_url":"https://github.com/ink-splatters/cpp-shell","commit_stats":null,"previous_names":["ink-splatters/cpp-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ink-splatters/cpp-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ink-splatters%2Fcpp-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ink-splatters%2Fcpp-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ink-splatters%2Fcpp-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ink-splatters%2Fcpp-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ink-splatters","download_url":"https://codeload.github.com/ink-splatters/cpp-shell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ink-splatters%2Fcpp-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27424849,"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-12-01T02:00:06.371Z","response_time":60,"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-11-14T12:23:51.058Z","updated_at":"2025-12-01T07:05:26.056Z","avatar_url":"https://github.com/ink-splatters.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"## dev-shells / cpp\n\nbarebone cpp development shell based on `nix flakes`\n\n### Requirements\n\n`nix` with `flake` support\n\nto enable it, given nix is installed:\n\n```shell\nmkdir -p $HOME/.config/nix\ncat \u003c\u003c'EOF' \u003e\u003e $HOME/.config/nix.conf\n\nexperimental-features = flakes nix-command\n\nEOF\n```\n\nalternatively, add the following alias to your shell:\n\n```shell\nalias nix='nix --arg experimental-features='nix-command flakes'\n```\n\n### Shells\n\ndefault shell can be entered using:\n\n```shell\nnix develop github:ink-splatters/cpp-shell\n\n```\n\nthere are 3 more shell types:\n\n- `#O3` ( adds `-O3` to `CFLAGS` and `CXXFLAGS` )\n- `#unhardened` ( disables hardening using [hardeningDisable](https://nixos.wiki/wiki/C)\n- `#O3-unhardened` ( self explanatory )\n\nall the shells feature:\n\n- `-mcpu=apple-m1` if applicable\n- LDFLAGS=`-fused-ld=lld`\n\n### Examples\n\n#### Enter O3 shell\n\n```shell\nnix develop github:ink-splatters/cpp-shell#O3\n```\n\n#### Enter O3-unhardened shell locally\n\n```shell\ngit clone https://github.com/ink-splatters/cpp-shell.git\ncd cpp-shell\nnix develop .#O3-unhardened\n```\n\n### nix profile installation\n\noptionally, the following  tools can be installed `nix profile` - wise:\n\n- `lldb`\n- `clang-format`, `clangd` and more tools included in nix `clang-tools` package\n\nto install it:\n\n```shell\nnix profile install github:ink-splatters/cpp-shell#cpp-tools\n```\n\n### Alternatives\n\nMore advanced `nix`-based alternatives which support wider range of tools and options:\n\n[devshell](https://github.com/numtide/devshell)\n[devenv](http://devenv.sh)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fink-splatters%2Fcpp-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fink-splatters%2Fcpp-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fink-splatters%2Fcpp-shell/lists"}