tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pulseview: enable on darwin
Nikolay Korotkiy
2 years ago
11b65fea
5b9065da
+6
-5
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
electronics
pulseview
default.nix
+6
-5
pkgs/applications/science/electronics/pulseview/default.nix
···
1
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
2
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
3
-
, pcre, python3, qtsvg, qttools, wrapQtAppsHook
4
}:
5
6
stdenv.mkDerivation rec {
···
12
hash = "sha256-8EL3ej4bNb8wZmMw427Dj6uNJIw2k8N7fjXUAcO/q8s=";
13
};
14
15
-
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ];
0
16
17
buildInputs = [
18
-
glib boost libsigrok libsigrokdecode libserialport libzip udev libusb1 libftdi1 glibmm
19
pcre python3
20
qtsvg
21
-
];
22
23
patches = [
24
# Allow building with glib 2.68
···
39
homepage = "https://sigrok.org/";
40
license = licenses.gpl3Plus;
41
maintainers = with maintainers; [ bjornfor ];
42
-
platforms = platforms.linux;
43
};
44
}
···
1
{ lib, stdenv, fetchurl, fetchpatch, pkg-config, cmake, glib, boost, libsigrok
2
, libsigrokdecode, libserialport, libzip, udev, libusb1, libftdi1, glibmm
3
+
, pcre, python3, qtsvg, qttools, wrapQtAppsHook, desktopToDarwinBundle
4
}:
5
6
stdenv.mkDerivation rec {
···
12
hash = "sha256-8EL3ej4bNb8wZmMw427Dj6uNJIw2k8N7fjXUAcO/q8s=";
13
};
14
15
+
nativeBuildInputs = [ cmake pkg-config qttools wrapQtAppsHook ]
16
+
++ lib.optional stdenv.isDarwin desktopToDarwinBundle;
17
18
buildInputs = [
19
+
glib boost libsigrok libsigrokdecode libserialport libzip libusb1 libftdi1 glibmm
20
pcre python3
21
qtsvg
22
+
] ++ lib.optional stdenv.isLinux udev;
23
24
patches = [
25
# Allow building with glib 2.68
···
40
homepage = "https://sigrok.org/";
41
license = licenses.gpl3Plus;
42
maintainers = with maintainers; [ bjornfor ];
43
+
platforms = platforms.unix;
44
};
45
}