2024-09-19 14:19:46 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl
|
2021-12-06 16:07:01 +00:00
|
|
|
, autoconf, automake, libtool, xmlto, docbook_xml_dtd_412, docbook_xsl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libieee1284";
|
|
|
|
version = "0.2.11";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "twaugh";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V${builtins.replaceStrings [ "." ] [ "_" ] version}";
|
|
|
|
sha256 = "0wfv1prmhhpyll9l4g1ij3im7hk9mm96ydw3l9fvhjp3993cdn2x";
|
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
patches = [
|
2024-09-19 14:19:46 +00:00
|
|
|
(fetchurl {
|
|
|
|
name = "musl.patch";
|
|
|
|
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";
|
|
|
|
hash = "sha256-sNu0OPBMa9GIwSu754noateF4FZC14f+8YRgYUl13KQ=";
|
2021-12-06 16:07:01 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf
|
|
|
|
automake
|
|
|
|
libtool
|
|
|
|
xmlto
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
docbook_xsl
|
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--without-python"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
prePatch = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
./bootstrap
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Parallel port communication library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "libieee1284_test";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://cyberelk.net/tim/software/libieee1284/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|