1
0
Fork 0

artiq-full: disable flake8-artiq manual

This commit is contained in:
Sebastien Bourdeauducq 2020-12-10 11:35:50 +08:00
parent 6721a8ea17
commit 56382d6301
1 changed files with 11 additions and 9 deletions

View File

@ -3,14 +3,21 @@ let
condaBuild = import ./fast/conda/build.nix { inherit pkgs; }; condaBuild = import ./fast/conda/build.nix { inherit pkgs; };
condaFakeSource = import ./fast/conda/fake-source.nix { inherit pkgs; }; condaFakeSource = import ./fast/conda/fake-source.nix { inherit pkgs; };
dualPackage = ( dualPackage = (
{ name, version, src, pythonOptions ? {}, condaOptions ? {}}: { name, version, src, pythonOptions ? {}, condaOptions ? {}, withManual ? true}:
{ {
"${name}" = pkgs.python3Packages.buildPythonPackage ({ "${name}" = pkgs.python3Packages.buildPythonPackage ({
inherit version; inherit version;
name = "${name}-${version}"; name = "${name}-${version}";
inherit src; inherit src;
} // pythonOptions); } // pythonOptions);
"${name}-manual-html" = pkgs.stdenv.mkDerivation { "conda-${name}" = condaBuild {
name = "conda-${name}";
src = condaFakeSource ({
inherit name version src;
} // condaOptions);
};
} // (pkgs.lib.optionalAttrs withManual {
${name}-manual-html" = pkgs.stdenv.mkDerivation {
name = "${name}-manual-html-${version}"; name = "${name}-manual-html-${version}";
inherit version src; inherit version src;
buildInputs = (with pkgs.python3Packages; [ sphinx sphinx_rtd_theme sphinx-argparse ]) ++ [ artiq ]; buildInputs = (with pkgs.python3Packages; [ sphinx sphinx_rtd_theme sphinx-argparse ]) ++ [ artiq ];
@ -31,13 +38,7 @@ let
echo doc manual ${dest}/html index.html >> $out/nix-support/hydra-build-products echo doc manual ${dest}/html index.html >> $out/nix-support/hydra-build-products
''; '';
}; };
"conda-${name}" = condaBuild { })
name = "conda-${name}";
src = condaFakeSource ({
inherit name version src;
} // condaOptions);
};
}
); );
# https://github.com/m-labs/artiq/issues/23 # https://github.com/m-labs/artiq/issues/23
hidapi = pkgs.hidapi.overrideAttrs (oa: { hidapi = pkgs.hidapi.overrideAttrs (oa: {
@ -224,6 +225,7 @@ in
} // (dualPackage { } // (dualPackage {
name = "flake8-artiq"; name = "flake8-artiq";
version = "0.1"; version = "0.1";
withManual = false;
src = pkgs.fetchgit { src = pkgs.fetchgit {
url = "https://gitlab.com/duke-artiq/flake8-artiq.git"; url = "https://gitlab.com/duke-artiq/flake8-artiq.git";
rev = "f16bda40526dc0821c6b86b07f2764098df5f905"; rev = "f16bda40526dc0821c6b86b07f2764098df5f905";