python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libieee1284 / package.nix
blobd40ebb5567c7fcd25675935efd8fc8e39ab9b078
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchurl,
6   autoconf,
7   automake,
8   libtool,
9   xmlto,
10   docbook_xml_dtd_412,
11   docbook_xsl,
14 stdenv.mkDerivation rec {
15   pname = "libieee1284";
16   version = "0.2.11";
18   src = fetchFromGitHub {
19     owner = "twaugh";
20     repo = pname;
21     rev = "V${builtins.replaceStrings [ "." ] [ "_" ] version}";
22     sha256 = "0wfv1prmhhpyll9l4g1ij3im7hk9mm96ydw3l9fvhjp3993cdn2x";
23   };
25   patches = [
26     (fetchurl {
27       name = "musl.patch";
28       url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-libs/libieee1284/files/libieee1284-0.2.11-don-t-blindly-assume-outb_p-to-be-available.patch?id=dec60bb6900d6ebdaaa6aa1dcb845b30b739f9b5";
29       hash = "sha256-sNu0OPBMa9GIwSu754noateF4FZC14f+8YRgYUl13KQ=";
30     })
31   ];
33   nativeBuildInputs = [
34     autoconf
35     automake
36     libtool
37     xmlto
38     docbook_xml_dtd_412
39     docbook_xsl
40   ];
42   configureFlags =
43     [
44       "--without-python"
45     ]
46     ++ lib.optionals (stdenv.hostPlatform.isMusl && !stdenv.hostPlatform.isx86) [
47       # musl always provides <sys/io.h>, even though the functionality
48       # is x86-specific.
49       # https://www.openwall.com/lists/musl/2024/10/25/2
50       "ac_cv_header_sys_io_h=no"
51     ];
53   prePatch = ''
54     ./bootstrap
55   '';
57   meta = with lib; {
58     description = "Parallel port communication library";
59     mainProgram = "libieee1284_test";
60     homepage = "http://cyberelk.net/tim/software/libieee1284/";
61     license = licenses.gpl2Plus;
62     platforms = platforms.linux;
63     maintainers = with maintainers; [ romildo ];
64   };