Loading pkgs/development/embedded/avrdude/default.nix +11 −9 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline # docSupport is a big dependency, disabled by default , docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null }: assert docSupport -> texLive != null && texinfo != null && texi2html != null; { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf , libftdi1, readline # documentation building is broken on darwin , docSupport ? (!stdenv.isDarwin), texlive, texinfo, texi2html, unixtools }: stdenv.mkDerivation rec { pname = "avrdude"; Loading @@ -16,10 +14,14 @@ stdenv.mkDerivation rec { 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 ] ++ lib.optionals docSupport [ texLive texinfo texi2html ]; buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]; cmakeFlags = lib.optionals docSupport [ "-DBUILD_DOC=ON" Loading Loading
pkgs/development/embedded/avrdude/default.nix +11 −9 Original line number Diff line number Diff line { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf, libftdi1, readline # docSupport is a big dependency, disabled by default , docSupport ? false, texLive ? null, texinfo ? null, texi2html ? null }: assert docSupport -> texLive != null && texinfo != null && texi2html != null; { lib, stdenv, fetchFromGitHub, cmake, bison, flex, libusb-compat-0_1, libelf , libftdi1, readline # documentation building is broken on darwin , docSupport ? (!stdenv.isDarwin), texlive, texinfo, texi2html, unixtools }: stdenv.mkDerivation rec { pname = "avrdude"; Loading @@ -16,10 +14,14 @@ stdenv.mkDerivation rec { 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 ] ++ lib.optionals docSupport [ texLive texinfo texi2html ]; buildInputs = [ libusb-compat-0_1 libelf libftdi1 readline ]; cmakeFlags = lib.optionals docSupport [ "-DBUILD_DOC=ON" Loading