Merge pull request #233836 from nagy/avrdude
avrdude: always build documentation on Linux
This commit is contained in:
commit
f2d704d130
1 changed files with 11 additions and 9 deletions
|
@ -1,9 +1,7 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline
|
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf
|
||||||
# docSupport is a big dependency, disabled by default
|
, libftdi1, readline
|
||||||
, docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null
|
# documentation building is broken on darwin
|
||||||
}:
|
, docSupport ? (!stdenv.isDarwin), texlive, texinfo, texi2html, unixtools }:
|
||||||
|
|
||||||
assert docSupport -> texLive != null && texinfo != null && texi2html != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "avrdude";
|
pname = "avrdude";
|
||||||
|
@ -16,10 +14,14 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-pGjOefWnf11kG/zFGwYGet1OjAhKsULNGgh6vqvIQ7c=";
|
sha256 = "sha256-pGjOefWnf11kG/zFGwYGet1OjAhKsULNGgh6vqvIQ7c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake bison flex ];
|
nativeBuildInputs = [ cmake bison flex ] ++ lib.optionals docSupport [
|
||||||
|
unixtools.more
|
||||||
|
texlive.combined.scheme-medium
|
||||||
|
texinfo
|
||||||
|
texi2html
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]
|
buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ];
|
||||||
++ lib.optionals docSupport [ texLive texinfo texi2html ];
|
|
||||||
|
|
||||||
cmakeFlags = lib.optionals docSupport [
|
cmakeFlags = lib.optionals docSupport [
|
||||||
"-DBUILD_DOC=ON"
|
"-DBUILD_DOC=ON"
|
||||||
|
|
Loading…
Reference in a new issue