windows: create msys2 repos

This commit is contained in:
Sebastien Bourdeauducq 2022-04-05 10:40:52 +08:00
parent 546c0ed2c5
commit 73edc01fc6
1 changed files with 15 additions and 1 deletions

View File

@ -27,7 +27,7 @@ let
echo file msys2 $out/*.pkg.tar.zst >> $out/nix-support/hydra-build-products
'';
};
in {
in rec {
sipyco-pkg = makeMsys2 {
name = "sipyco";
src = sipyco;
@ -43,4 +43,18 @@ in {
src = artiq;
inherit (artiq.packages.x86_64-linux.artiq) version;
};
msys2-repos = pkgs.stdenvNoCC.mkDerivation {
name = "msys2-repos";
nativeBuildInputs = [ pkgs.pacman ];
phases = [ "buildPhase" ];
buildPhase =
''
mkdir $out
cd $out
ln -s ${sipyco-pkg}/*.pkg.tar.zst .
ln -s ${artiq-comtools-pkg}/*.pkg.tar.zst .
ln -s ${artiq-pkg}/*.pkg.tar.zst .
repo-add artiq.db.tar.gz *.pkg.tar.zst
'';
};
}