From 73edc01fc6673b24c3a4ea44bfb9f5745dc50d5c Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 5 Apr 2022 10:40:52 +0800 Subject: [PATCH] windows: create msys2 repos --- windows/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/windows/default.nix b/windows/default.nix index 7d56e5c99..c4447526b 100644 --- a/windows/default.nix +++ b/windows/default.nix @@ -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 + ''; + }; }