From 035d05ea35a67212d491d9741808e46b25a795ec Mon Sep 17 00:00:00 2001 From: Rafael Ieda Date: Mon, 22 Sep 2025 08:12:03 -0300 Subject: [PATCH] bbedit: init at 15.5.3 --- pkgs/by-name/bb/bbedit/package.nix | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pkgs/by-name/bb/bbedit/package.nix diff --git a/pkgs/by-name/bb/bbedit/package.nix b/pkgs/by-name/bb/bbedit/package.nix new file mode 100644 index 000000000000..7537b198f9f9 --- /dev/null +++ b/pkgs/by-name/bb/bbedit/package.nix @@ -0,0 +1,38 @@ +{ + lib, + stdenvNoCC, + fetchurl, + _7zz, +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "bbedit"; + version = "15.5.3"; + + src = fetchurl { + url = "https://s3.amazonaws.com/BBSW-download/BBEdit_${finalAttrs.version}.dmg"; + hash = "sha256-8TSn0+mbvv+55Jh1VCvTfl+rNSzG9TjlQq5vA71wVmw="; + }; + + sourceRoot = "."; + + nativeBuildInputs = [ _7zz ]; + + installPhase = '' + runHook preInstall + + mkdir -p "$out/Applications" + cp -r *.app "$out/Applications" + + runHook postInstall + ''; + + meta = { + description = "Powerful and full-featured professional HTML and text editor for macOS"; + homepage = "https://www.barebones.com/products/bbedit/"; + license = lib.licenses.unfree; + maintainers = with lib.maintainers; [ iedame ]; + platforms = lib.platforms.darwin; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})