diff --git a/pkgs/applications/science/electronics/pulseview/default.nix b/pkgs/applications/science/electronics/pulseview/default.nix index 8906076ec103..7472fa30e7ff 100644 --- a/pkgs/applications/science/electronics/pulseview/default.nix +++ b/pkgs/applications/science/electronics/pulseview/default.nix @@ -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; }; }