nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenvNoCC,
4 fetchurl,
5 _7zz,
6}:
7
8stdenvNoCC.mkDerivation (finalAttrs: {
9 pname = "bbedit";
10 version = "15.5.3";
11
12 src = fetchurl {
13 url = "https://s3.amazonaws.com/BBSW-download/BBEdit_${finalAttrs.version}.dmg";
14 hash = "sha256-8TSn0+mbvv+55Jh1VCvTfl+rNSzG9TjlQq5vA71wVmw=";
15 };
16
17 sourceRoot = ".";
18
19 nativeBuildInputs = [ _7zz ];
20
21 installPhase = ''
22 runHook preInstall
23
24 mkdir -p "$out/Applications"
25 cp -r *.app "$out/Applications"
26
27 runHook postInstall
28 '';
29
30 # app bundle may be messed up by standard fixup
31 dontFixup = true;
32
33 meta = {
34 description = "Powerful and full-featured professional HTML and text editor for macOS";
35 homepage = "https://www.barebones.com/products/bbedit/";
36 license = lib.licenses.unfree;
37 maintainers = with lib.maintainers; [ iedame ];
38 platforms = lib.platforms.darwin;
39 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
40 };
41})