forked from M-Labs/nix-scripts
create a conda channel
This commit is contained in:
parent
a50117095d
commit
fc0d2144ba
@ -134,4 +134,5 @@ in
|
|||||||
src = generatedNix;
|
src = generatedNix;
|
||||||
constituents = builtins.attrValues jobs;
|
constituents = builtins.attrValues jobs;
|
||||||
};
|
};
|
||||||
|
conda-channel = import ./artiq-full/conda-channel.nix { inherit pkgs; } { inherit jobs; };
|
||||||
}
|
}
|
||||||
|
24
artiq-full/conda-channel.nix
Normal file
24
artiq-full/conda-channel.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ pkgs }:
|
||||||
|
{ jobs }:
|
||||||
|
|
||||||
|
let
|
||||||
|
condaBuilderEnv = import <artiq-fast/conda-builder-env.nix> { inherit pkgs; };
|
||||||
|
in
|
||||||
|
pkgs.runCommand "blah" { }
|
||||||
|
''
|
||||||
|
mkdir -p $out/noarch
|
||||||
|
for storepath in ${pkgs.lib.concatMapStringsSep " " builtins.toString (builtins.attrValues jobs)}; do
|
||||||
|
hydra_build_products=$storepath/nix-support/hydra-build-products
|
||||||
|
if [ -f $hydra_build_products ]; then
|
||||||
|
while IFS= read -r line; do
|
||||||
|
type=`echo $line | cut -f2 -d " "`
|
||||||
|
if [ $type == "conda" ]; then
|
||||||
|
path=`echo $line | cut -f3 -d " "`
|
||||||
|
cp $path $out/noarch
|
||||||
|
fi
|
||||||
|
done < $hydra_build_products
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
cd $out
|
||||||
|
${condaBuilderEnv}/bin/conda-builder-env -c "conda index"
|
||||||
|
''
|
Loading…
Reference in New Issue
Block a user