From f2dc03dfa1f15835a25e7d98b7ba4864834ef739 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 22 Mar 2022 19:58:31 +0800 Subject: [PATCH] windows: finalize nac3artiq packaging --- windows/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/windows/default.nix b/windows/default.nix index 4dc12b7f9..4ff49eae6 100644 --- a/windows/default.nix +++ b/windows/default.nix @@ -79,7 +79,7 @@ in rec { src = ../.; cargoLock = { lockFile = ../Cargo.lock; }; doCheck = false; - nativeBuildInputs = [ pkgs.wineWowPackages.stable ]; + nativeBuildInputs = [ pkgs.wineWowPackages.stable pkgs.zip ]; buildPhase = '' export HOME=`mktemp -d` @@ -89,5 +89,13 @@ in rec { export PYO3_CONFIG_FILE=Z:${pyo3-mingw-config} wine64 cargo build --release -p nac3artiq ''; + installPhase = + '' + mkdir -p $out $out/nix-support + ln -s target/release/nac3artiq.dll nac3artiq.pyd + zip $out/nac3artiq.zip nac3artiq.pyd + echo file binary-dist $out/nac3artiq.zip >> $out/nix-support/hydra-build-products + ''; + dontFixup = true; }; }