mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 13:09:27 +03:00
Merge pull request #284221 from Cottand/monitorcontrol420
monitorcontrol: 4.1.0 -> 4.2.0
This commit is contained in:
commit
d323f74a98
@ -1,19 +1,28 @@
|
||||
{ lib, fetchurl, stdenv, undmg }:
|
||||
{ lib, fetchurl, stdenv, _7zz }:
|
||||
|
||||
# This cannot be built from source due to the problematic nature of XCode - so
|
||||
# this is what it's like when doves cry?
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "MonitorControl";
|
||||
version = "4.1.0";
|
||||
version = "4.2.0";
|
||||
|
||||
src = fetchurl {
|
||||
url =
|
||||
"https://github.com/MonitorControl/${pname}/releases/download/v${version}/MonitorControl.${version}.dmg";
|
||||
sha256 = "iaxM9j78Sq1EH5TCY240N+D5bG6quk2dZj8T7nt9ATo=";
|
||||
sha256 = "Q96uK6wVe1D2uLvWL+pFR6LcmrU7cgmr2Y5tPvvTDgI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ undmg ];
|
||||
# MonitorControl.${version}.dmg is APFS formatted, unpack with 7zz
|
||||
unpackCmd = ''
|
||||
runHook preUnpack
|
||||
|
||||
7zz x $src
|
||||
|
||||
runHook postUnpack
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ _7zz ];
|
||||
|
||||
sourceRoot = "MonitorControl.app";
|
||||
|
||||
@ -27,7 +36,7 @@ stdenv.mkDerivation rec {
|
||||
longDescription = "Controls your external display brightness and volume and shows native OSD. Use menulet sliders or the keyboard, including native Apple keys!";
|
||||
homepage = "https://github.com/MonitorControl/MonitorControl#readme";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ cbleslie ];
|
||||
maintainers = with maintainers; [ cbleslie cottand ];
|
||||
platforms = platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user