{"id":15457264,"url":"https://github.com/expede/nix-command-utils","last_synced_at":"2026-01-07T12:06:24.150Z","repository":{"id":226126002,"uuid":"767828718","full_name":"expede/nix-command-utils","owner":"expede","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-06T05:19:34.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T10:43:45.926Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/expede.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,"publiccode":null,"codemeta":null}},"created_at":"2024-03-06T00:56:36.000Z","updated_at":"2024-11-29T16:09:12.000Z","dependencies_parsed_at":"2024-03-09T01:30:45.408Z","dependency_job_id":null,"html_url":"https://github.com/expede/nix-command-utils","commit_stats":{"total_commits":3,"total_committers":2,"mean_commits":1.5,"dds":"0.33333333333333337","last_synced_commit":"8f7179876383495b1f98311e53ebb41649ca270a"},"previous_names":["expede/nix-command-utils"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Fnix-command-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Fnix-command-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Fnix-command-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/expede%2Fnix-command-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/expede","download_url":"https://codeload.github.com/expede/nix-command-utils/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246009091,"owners_count":20708908,"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-01T22:43:03.404Z","updated_at":"2026-01-07T12:06:24.127Z","avatar_url":"https://github.com/expede.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e Permanently moved to https://codeberg.org/expede/nix-command-utils\n\n# Nix Command Utils\n\nHelpers for defining commands for Nix shells under Flakes.\n\n## Quickstart\n\n``` nix\n{\n  inputs = {\n    command-utils.url = \"github:expede/nix-command-utils\";\n    flake-utils.url = \"github:numtide/flake-utils\";\n    # ...\n  };\n\n  outputs = {self, flake-utils, command-utils}:\n    flake-utils.lib.eachDefaultSystem (system: \n      let\n        # Cargo just for example\n        cargo = \"${pkgs.cargo}/bin/cargo\";\n      \n        cmd = command-utils.cmd.${system};\n        command_menu = command-utils.commands.${system} {\n          hello = cmd \"Print a hello world message\" \"echo 'Hello, world!'\";\n\n          bench = cmd \"Run benchmarks, including test utils\"\n            \"${cargo} bench --features test_utils\";\n\n          \"bench:host\" = cmd \"Run host Criterion benchmarks\"\n            \"${cargo} criterion\";\n        };\n        #...\n      in\n        devShells.default = pkgs.mkShell {\n          nativeBuildInputs = with pkgs;\n            [\n              command_menu\n              # ...\n            ];\n            \n            #...\n        };\n      }\n    );\n}\n```\n\n``` console\n$ menu\n  ____                                          _\n / ___|___  _ __ ___  _ __ ___   __ _ _ __   __| |___\n| |   / _ \\| '_ ` _ \\| '_ ` _ \\ / _` | '_ \\ / _` / __|\n| |__| (_) | | | | | | | | | | | (_| | | | | (_| \\__ \\\n \\____\\___/|_| |_| |_|_| |_| |_|\\__,_|_| |_|\\__,_|___/\n\n\nbench      | Run benchmarks, including test utils\nbench:host | Run host Criterion benchmarks\nhello      | Print a hello world message\n\n$ hello\nHello, world!\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpede%2Fnix-command-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexpede%2Fnix-command-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexpede%2Fnix-command-utils/lists"}