forked from mirrors/nixpkgs
bmon: unbreak on aarch64-darwin
This commit is contained in:
parent
00ae4c7fc4
commit
4f50411cfc
|
@ -1,4 +1,4 @@
|
|||
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, ncurses, libconfuse
|
||||
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, ncurses, libconfuse
|
||||
, libnl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -12,6 +12,16 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1ilba872c09mnlvylslv4hqv6c9cz36l76q74rr99jvis1dg69gf";
|
||||
};
|
||||
|
||||
# The source code defines `__unused__`, which is a reserved name
|
||||
# https://github.com/tgraf/bmon/issues/89
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/macports/macports-ports/raw/6d1dd5e9c8fae608bd22f3ede21e576f29c6358c/net/bmon/files/patch-fix__unused.diff";
|
||||
extraPrefix = "";
|
||||
sha256 = "sha256-UYIiJZzipsx9a0xabrKfyj8TWNW7IM77oXnVnSPkQkc=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
|
||||
buildInputs = [ ncurses libconfuse ] ++ lib.optional stdenv.isLinux libnl;
|
||||
|
@ -30,7 +40,5 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.bsd2;
|
||||
platforms = platforms.unix;
|
||||
maintainers = with maintainers; [ bjornfor pSub ];
|
||||
# never built on aarch64-darwin since first introduction in nixpkgs
|
||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue