forked from M-Labs/artiq
1
0
Fork 0

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 echo file msys2 $out/*.pkg.tar.zst >> $out/nix-support/hydra-build-products
''; '';
}; };
in { in rec {
sipyco-pkg = makeMsys2 { sipyco-pkg = makeMsys2 {
name = "sipyco"; name = "sipyco";
src = sipyco; src = sipyco;
@ -43,4 +43,18 @@ in {
src = artiq; src = artiq;
inherit (artiq.packages.x86_64-linux.artiq) version; 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
'';
};
} }