You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

conda-channel.nix 751B

123456789101112131415161718192021222324
  1. { pkgs }:
  2. { jobs }:
  3. let
  4. condaBuilderEnv = import <artiq-fast/conda-builder-env.nix> { inherit pkgs; };
  5. in
  6. pkgs.runCommand "conda-channel" { }
  7. ''
  8. mkdir -p $out/noarch
  9. for storepath in ${pkgs.lib.concatMapStringsSep " " builtins.toString (builtins.attrValues jobs)}; do
  10. hydra_build_products=$storepath/nix-support/hydra-build-products
  11. if [ -f $hydra_build_products ]; then
  12. while IFS= read -r line; do
  13. type=`echo $line | cut -f2 -d " "`
  14. if [ $type == "conda" ]; then
  15. path=`echo $line | cut -f3 -d " "`
  16. cp $path $out/noarch
  17. fi
  18. done < $hydra_build_products
  19. fi
  20. done
  21. cd $out
  22. ${condaBuilderEnv}/bin/conda-builder-env -c "conda index"
  23. ''