Skip to content

Commit 4f9ad9a

Browse files
authored
betterdisplay: init at 3.2.1 (#369172)
2 parents ae6f5e0 + 1c93585 commit 4f9ad9a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
lib,
3+
stdenvNoCC,
4+
fetchurl,
5+
undmg,
6+
nix-update-script,
7+
}:
8+
9+
stdenvNoCC.mkDerivation (finalAttrs: {
10+
pname = "betterdisplay";
11+
version = "3.2.1";
12+
13+
src = fetchurl {
14+
url = "https://github.com/waydabber/BetterDisplay/releases/download/v${finalAttrs.version}/BetterDisplay-v${finalAttrs.version}.dmg";
15+
hash = "sha256-UQLVRCeUznTqT6qDR6sZRZ5xMVgs0Th2iRRpnF0pqVI=";
16+
};
17+
18+
dontPatch = true;
19+
dontConfigure = true;
20+
dontBuild = true;
21+
dontFixup = true;
22+
23+
buildInputs = [ undmg ];
24+
25+
sourceRoot = ".";
26+
installPhase = ''
27+
runHook preInstall
28+
29+
mkdir -p $out/Applications
30+
mv BetterDisplay.app $out/Applications
31+
32+
runHook postInstall
33+
'';
34+
35+
passthru.updateScript = nix-update-script { };
36+
37+
meta = {
38+
description = "Unlock your displays on your Mac! Flexible HiDPI scaling, XDR/HDR extra brightness, virtual screens, DDC control, extra dimming, PIP/streaming, EDID override and lots more";
39+
homepage = "https://betterdisplay.pro/";
40+
changelog = "https://github.com/waydabber/BetterDisplay/releases/tag/v${finalAttrs.version}";
41+
license = [ lib.licenses.unfree ];
42+
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
43+
maintainers = with lib.maintainers; [ DimitarNestorov ];
44+
platforms = lib.platforms.darwin;
45+
};
46+
})

0 commit comments

Comments
 (0)