mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
monitorcontrol: 4.2.0 → 4.3.3 (#375061)
This commit is contained in:
parent
8b724caafe
commit
8915260a4d
1 changed files with 10 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
lib,
|
||||
fetchurl,
|
||||
stdenv,
|
||||
_7zz,
|
||||
undmg,
|
||||
}:
|
||||
|
||||
# This cannot be built from source due to the problematic nature of XCode - so
|
||||
|
@ -10,18 +10,23 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "MonitorControl";
|
||||
version = "4.2.0";
|
||||
version = "4.3.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/MonitorControl/${pname}/releases/download/v${version}/MonitorControl.${version}.dmg";
|
||||
sha256 = "Q96uK6wVe1D2uLvWL+pFR6LcmrU7cgmr2Y5tPvvTDgI=";
|
||||
hash = "sha256-myx3adoU3FYYrs6LFRSiXtwSsoaujjQ/PYgAF/Xuk2g=";
|
||||
};
|
||||
|
||||
# MonitorControl.${version}.dmg is APFS formatted, unpack with 7zz
|
||||
nativeBuildInputs = [ _7zz ];
|
||||
nativeBuildInputs = [ undmg ];
|
||||
|
||||
sourceRoot = "MonitorControl.app";
|
||||
|
||||
unpackCmd = ''
|
||||
runHook preUnpack
|
||||
undmg $src
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/Applications/MonitorControl.app"
|
||||
cp -R . "$out/Applications/MonitorControl.app"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue