{"id":21956143,"url":"https://github.com/bfontaine/clomebrew","last_synced_at":"2026-05-01T00:31:20.846Z","repository":{"id":62431622,"uuid":"96710445","full_name":"bfontaine/clomebrew","owner":"bfontaine","description":"Experimental Clojure bindings for Homebrew","archived":false,"fork":false,"pushed_at":"2017-07-29T14:38:00.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-06T19:41:54.847Z","etag":null,"topics":["clojure","homebrew","jruby"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bfontaine.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}},"created_at":"2017-07-09T20:46:21.000Z","updated_at":"2017-07-29T16:34:44.000Z","dependencies_parsed_at":"2022-11-01T21:00:39.832Z","dependency_job_id":null,"html_url":"https://github.com/bfontaine/clomebrew","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bfontaine/clomebrew","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fclomebrew","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fclomebrew/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fclomebrew/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fclomebrew/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bfontaine","download_url":"https://codeload.github.com/bfontaine/clomebrew/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bfontaine%2Fclomebrew/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32481553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["clojure","homebrew","jruby"],"created_at":"2024-11-29T08:19:51.616Z","updated_at":"2026-05-01T00:31:20.828Z","avatar_url":"https://github.com/bfontaine.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clomebrew\n\n**Clomebrew** brings [Homebrew](https://brew.sh/) to Clojure.\n\n**Warning:** This is highly experimental, don’t depend on it for serious stuff. Also, the API is not yet stabilised.\n\n## Usage\n\nYou need to already have a working Homebrew installation.\n\nAdd the following dependency to your `project.clj`:\n\n```clojure\n[clomebrew  \"0.0.2\"]\n```\n\nThen import `clomebrew.core` and create your `brew` instance. It’ll\nautomatically find your Homebrew installation from your `PATH`.\n\n```clojure\n(ns your-ns\n  (:require [clomebrew [core :as hb] ;; core API\n                       [formula :as hf] ;; formulae\n                       [tap :as ht] ;; taps\n                    ]))\n\n(def brew (hb/new-brew))\n```\n\n### How To\n\n#### Get a Formula\n\n```clojure\n(def git (hf/by-name brew \"git\"))\n\n;; you can also omit brew; it'll create an instance by itself\n(def git (hf/by-name \"git\"))\n\n\n;; convert the formula to a map:\n(hf/-\u003emap git)\n;; returned map:\n{:name \"git\"\n :full_name \"git\"\n :desc \"Distributed revision control system\"\n :homepage \"https://git-scm.com\"\n\n :versions {:stable \"2.13.2\"\n            :head \"HEAD\"\n            :devel nil\n            :bottle false}\n :revision 0\n\n :dependencies (\"xz\" \"pcre\" \"gettext\" \"openssl\" \"curl\")\n :build_dependencies (\"xz\")\n :optional_dependencies (\"pcre\" \"gettext\" \"openssl\" \"curl\")\n :recommended_dependencies ()\n\n :requirements ({:name \"perl\"\n                 :default_formula \"perl\"})\n\n :conflicts_with ()\n\n :bottle {:stable {:cellar \"/usr/local/Cellar\"\n                   :files {:el_capitan {:sha256 \"11d...\"\n                                        :url \"https://.../git-2.13.2.el_capitan.bottle.tar.gz\"}\n                           :sierra {:sha256 \"ce6...\"\n                                    :url \"https://.../git-2.13.2.sierra.bottle.tar.gz\"}\n                           :yosemite {:sha256 \"2c4...\"\n                                      :url \"https://.../git-2.13.2.yosemite.bottle.tar.gz\"}}\n                   :prefix \"/usr/local\"\n                   :rebuild 0\n                   :root_url \"https://homebrew.bintray.com/bottles\"}}\n\n :options ({:option \"--with-blk-sha1\"\n            :description \"Compile with the block-optimized SHA1 implementation\"}\n           ;; ...\n           {:option \"--with-perl\"\n            :description \"Build against a custom Perl rather than system default\"})\n\n :keg_only false\n :outdated false\n :pinned false\n :installed ()\n\n :caveats nil}\n```\n\nThis is equivalent to calling `Formula[\"git\"].to_hash` in Ruby.\n\n#### Get a formula’s content\n\n```clojure\n(slurp (hf/path git))\n```\n\n#### Get Homebrew’s prefix/repo/cellar/cache paths\n\n```clojure\n(hb/prefix brew) ;; e.g. \"/usr/local\"\n(hb/repository brew) ;; e.g. \"/usr/local/Homebrew\"\n(hb/cellar brew) ;; e.g. \"/usr/local/Cellar\"\n(hb/cache brew) ;; e.g. \"/Users/you/Library/Caches/Homebrew\"\n```\n\n#### Get installed taps\n\n```clojure\n(hb/tap-names brew) ;; =\u003e e.g. (\"homebrew/core\" \"homebrew/php\" ...)\n```\n\n#### Get a tap\n\n```clojure\n(def core-tap (ht/by-name \"homebrew/core\"))\n\n;; Convert the tap to a map\n(ht/-\u003emap core-tap)\n;; returned map:\n{:command_files ()\n :custom_remote -1\n ;; be aware it includes *ALL* the formula files.\n ;; That's a 4200+ -long list for homebrew/core\n :formula_files (\"/usr/local/Homebrew/.../homebrew-core/Formula/a2ps.rb\"\n                 \"/usr/local/Homebrew/.../homebrew-core/Formula/a52dec.rb\"\n                 \"/usr/local/Homebrew/.../homebrew-core/Formula/aacgain.rb\"\n                 \"/usr/local/Homebrew/.../homebrew-core/Formula/aalib.rb\"\n                 ...)\n :formula_names (\"a2ps\"\n                 \"a52dec\"\n                 \"aacgain\"\n                 ...)\n :installed true\n :name \"homebrew/core\"\n :official true\n :path \"/usr/local/Homebrew/.../homebrew-core\"\n :pinned false\n :private true\n :remote \"git@github.com:Homebrew/homebrew-core.git\"\n :repo \"core\"\n :user \"Homebrew\"}\n```\n\n#### Run `brew doctor`\n\n```clojure\n(hb/doctor brew)\n```\n\n## License\n\nCopyright © 2017 Baptiste Fontaine\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fclomebrew","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbfontaine%2Fclomebrew","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbfontaine%2Fclomebrew/lists"}