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