tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libuldaq: init at 1.2.0
Simon Kämpe
4 years ago
37e62ac9
81773dc0
+64
3 changed files
expand all
collapse all
unified
split
pkgs
development
libraries
libuldaq
0001-uldaq.patch
default.nix
top-level
all-packages.nix
+28
pkgs/development/libraries/libuldaq/0001-uldaq.patch
···
1
1
+
diff --git a/Makefile.am b/Makefile.am
2
2
+
index 0e69cd4..b4a1f1a 100644
3
3
+
--- a/Makefile.am
4
4
+
+++ b/Makefile.am
5
5
+
@@ -26,7 +26,7 @@ dist_pkgconfig_DATA=libuldaq.pc
6
6
+
# fpga/USB_DIO32HS.bin
7
7
+
8
8
+
if OS_LINUX
9
9
+
-rulesdatadir=/lib/udev/rules.d/
10
10
+
+rulesdatadir=$(libdir)/udev/rules.d/
11
11
+
dist_rulesdata_DATA=rules/50-uldaq.rules
12
12
+
endif
13
13
+
14
14
+
@@ -42,14 +42,6 @@ dist-up: dist
15
15
+
mkdir -p $(reldir)
16
16
+
cp $(distdir).tar.bz2 $(reldir)
17
17
+
18
18
+
-if OS_LINUX
19
19
+
-install-data-hook:
20
20
+
- udevadm control --reload-rules && \
21
21
+
- test -f "/etc/redhat-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \
22
22
+
- test -f "/etc/arch-release" && echo "/usr/local/lib" > /etc/ld.so.conf.d/uldaq.conf || echo "" && \
23
23
+
- ldconfig
24
24
+
-endif
25
25
+
-
26
26
+
if OS_LINUX
27
27
+
uninstall-hook:
28
28
+
test -f "/etc/ld.so.conf.d/uldaq.conf" && rm "/etc/ld.so.conf.d/uldaq.conf" || echo ""
+34
pkgs/development/libraries/libuldaq/default.nix
···
1
1
+
{ lib, stdenv, fetchFromGitHub, autoreconfHook, libusb1, ...}:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
pname = "libuldaq";
5
5
+
version = "1.2.0";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "mccdaq";
9
9
+
repo = "uldaq";
10
10
+
rev = "v${version}";
11
11
+
sha256 = "0l9ima8ac99yd9vvjvdrmacm95ghv687wiy39zxm00cmghcfv3vj";
12
12
+
};
13
13
+
14
14
+
patches = [
15
15
+
# Patch needed for `make install` to succeed
16
16
+
./0001-uldaq.patch
17
17
+
];
18
18
+
19
19
+
nativeBuildInputs = [ autoreconfHook ];
20
20
+
21
21
+
buildInputs = [ libusb1 ];
22
22
+
23
23
+
meta = with lib; {
24
24
+
description = "Library to talk to uldaq devices";
25
25
+
longDescription = ''
26
26
+
Library used to communicate with USB data acquisition (DAQ)
27
27
+
devices from Measurement Computing
28
28
+
'';
29
29
+
homepage = "https://github.com/mccdaq/uldaq";
30
30
+
license = licenses.mit;
31
31
+
platforms = platforms.linux;
32
32
+
maintainers = [ maintainers.simonkampe ];
33
33
+
};
34
34
+
}
+2
pkgs/top-level/all-packages.nix
···
17079
17079
17080
17080
libutempter = callPackage ../development/libraries/libutempter { };
17081
17081
17082
17082
+
libuldaq = callPackage ../development/libraries/libuldaq { };
17083
17083
+
17082
17084
libunwind =
17083
17085
if stdenv.isDarwin then darwin.libunwind
17084
17086
else if stdenv.hostPlatform.isRiscV then llvmPackages_latest.libunwind