nix: set up hydra to provide conda package

This commit is contained in:
Sebastien Bourdeauducq 2019-02-08 23:14:32 +08:00
parent 1cfd26dc2e
commit 7994c294af
2 changed files with 13 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# nix-build -E "with import <nixpkgs> {}; callPackage ./disciplined-conda.nix {}" # nix-build -E "with import <nixpkgs> {}; callPackage ./conda-build.nix {}"
{ stdenv { stdenv
, fetchurl , fetchurl
@ -61,5 +61,8 @@ in stdenv.mkDerivation {
EOF EOF
mkdir $out mkdir $out
${condaBuilderEnv}/bin/conda-builder-env -c "PYTHON=python conda build --clobber-file clobber.yaml --no-anaconda-upload --no-test --output-folder $out $src/conda/artiq" ${condaBuilderEnv}/bin/conda-builder-env -c "PYTHON=python conda build --clobber-file clobber.yaml --no-anaconda-upload --no-test --output-folder $out $src/conda/artiq"
mkdir -p $out/nix-support
echo file conda $out/noarch/*.tar.bz2 >> $out/nix-support/hydra-build-products
''; '';
} }

9
nix/release.nix Normal file
View File

@ -0,0 +1,9 @@
{ pkgs ? import <nixpkgs> {}}:
with pkgs;
let
artiqPkgs = import ./default.nix {};
jobs = rec {
conda-artiq = callPackage ./conda-build.nix {};
} // artiqPkgs;
in
jobs