pulseview: enable on darwin

This commit is contained in:
Nikolay Korotkiy 2023-04-30 14:18:12 +04:00
parent 5b9065da7e
commit 11b65fea77
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
, pcre, python3, qtsvg, qttools, wrapQtAppsHook
, pcre, python3, qtsvg, qttools, wrapQtAppsHook, desktopToDarwinBundle
}:
stdenv.mkDerivation rec {
@ -12,13 +12,14 @@ stdenv.mkDerivation rec {
hash = "sha256-8EL3ej4bNb8wZmMw427Dj6uNJIw2k8N7fjXUAcO/q8s=";
};
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ];
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ]
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
buildInputs = [
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
glib boost libsigrok libsigrokdecode libserialport libzip libusb1 libftdi1 glibmm
pcre python3
qtsvg
];
] ++ lib.optional stdenv.isLinux udev;
patches = [
# Allow building with glib 2.68
@ -39,6 +40,6 @@ stdenv.mkDerivation rec {
homepage = "https://sigrok.org/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}