blob: 4b5bef5c32a6d2714e13bf51ac6d18b76fd7cf2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
, autoconf, automake, libtool, xmlto, docbook_xml_dtd_412, docbook_xsl
}:
stdenv.mkDerivation rec {
pname = "libieee1284";
version = "0.2.11";
src = fetchFromGitHub {
owner = "twaugh";
repo = pname;
rev = "V${builtins.replaceStrings [ "." ] [ "_" ] version}";
sha256 = "0wfv1prmhhpyll9l4g1ij3im7hk9mm96ydw3l9fvhjp3993cdn2x";
};
patches = [
# Fix build on Musl.
(fetchpatch {
url = "https://raw.githubusercontent.com/void-linux/void-packages/861ac185a6b60134292ff93d40e40b5391d0aa8e/srcpkgs/libieee1284/patches/musl.patch";
sha256 = "03xivd6z7m51i5brlmzs60pjrlqyr4561qlnh182wa7rrm01x5y6";
})
];
nativeBuildInputs = [
autoconf
automake
libtool
xmlto
docbook_xml_dtd_412
docbook_xsl
];
configureFlags = [
"--without-python"
];
prePatch = ''
./bootstrap
'';
meta = with lib; {
description = "Parallel port communication library";
mainProgram = "libieee1284_test";
homepage = "http://cyberelk.net/tim/software/libieee1284/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}
|