13 stdenv.mkDerivation rec {
17 src = fetchFromGitHub {
21 sha256 = "1Gxh4IMtytQCuPS+BWOc5AgjEBxa43ebYfDsxLSPeY0=";
24 nativeBuildInputs = [ makeWrapper ];
26 buildInputs = [ babashka cacert git jdk ];
32 substituteInPlace deps.edn --replace ':paths' ':mvn/local-repo "./.m2" :paths'
33 substituteInPlace bb.edn --replace ':paths' ':mvn/local-repo "./.m2" :paths'
42 export DEPS_CLJ_TOOLS_DIR=${clojure}
43 export DEPS_CLJ_TOOLS_VERSION=${clojure.version}
46 export GITLIBS=.gitlibs
47 export CLJ_CACHE=.cpcache
58 ln -s /usr/bin/osascript $out/bin/osascript
60 install -Dm755 "out/bin/obb" "$out/bin/obb"
61 wrapProgram $out/bin/obb --prefix PATH : $out/bin
67 simple = runCommand "${pname}-test" {} ''
68 [ $(${obb}/bin/obb -e '(+ 1 2)') = '3' ]
74 description = "Ad-hoc ClojureScript scripting of Mac applications via Apple's Open Scripting Architecture";
75 homepage = "https://github.com/babashka/obb";
76 license = licenses.epl10;
77 maintainers = with maintainers; [
80 platforms = platforms.darwin;
82 # https://hydra.nixos.org/job/nixpkgs/trunk/obb.aarch64-darwin/all