Skip to content

Commit 0d7e457

Browse files
authored
iio-oscilloscope: init at 0.17 (#280521)
2 parents dccb1b6 + b2aa67f commit 0d7e457

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
cmake,
6+
pkg-config,
7+
wrapGAppsHook3,
8+
libiio,
9+
glib,
10+
gtk3,
11+
gtkdatabox,
12+
matio,
13+
fftw,
14+
libxml2,
15+
curl,
16+
jansson,
17+
enable9361 ? true,
18+
libad9361,
19+
# enable9166 ? true,
20+
# libad9166,
21+
}:
22+
23+
stdenv.mkDerivation (finalAttrs: {
24+
pname = "iio-oscilloscope";
25+
version = "0.17";
26+
27+
src = fetchFromGitHub {
28+
owner = "analogdevicesinc";
29+
repo = finalAttrs.pname;
30+
rev = "v${finalAttrs.version}-master";
31+
hash = "sha256-wCeOLAkrytrBaXzUbNu8z2Ayz44M+b+mbyaRoWHpZYU=";
32+
};
33+
34+
postPatch = ''
35+
# error: 'idx' may be used uninitialized
36+
substituteInPlace plugins/lidar.c --replace-fail "int i, j, idx;" "int i, j, idx = 0;"
37+
'';
38+
39+
nativeBuildInputs = [
40+
cmake
41+
pkg-config
42+
wrapGAppsHook3
43+
];
44+
45+
buildInputs = [
46+
libiio
47+
glib
48+
gtk3
49+
gtkdatabox
50+
matio
51+
fftw
52+
libxml2
53+
curl
54+
jansson
55+
] ++ lib.optional enable9361 libad9361;
56+
57+
cmakeFlags = [
58+
"-DCMAKE_POLKIT_PREFIX=${placeholder "out"}"
59+
];
60+
61+
meta = {
62+
description = "GTK+ based oscilloscope application for interfacing with various IIO devices";
63+
homepage = "https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope";
64+
mainProgram = "osc";
65+
license = lib.licenses.gpl2Only;
66+
changelog = "https://github.com/analogdevicesinc/iio-oscilloscope/releases/tag/v${finalAttrs.version}-master";
67+
maintainers = with lib.maintainers; [ chuangzhu ];
68+
platforms = lib.platforms.linux;
69+
};
70+
})

0 commit comments

Comments
 (0)