From 0ae2aae645e9ee05fc67b0e82a8fe870cc6d6428 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 2 Dec 2021 22:47:31 +0800 Subject: [PATCH] flake: publish zipfile with Windows Python module on Hydra --- flake.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 865acad5..c72bb8ad 100644 --- a/flake.nix +++ b/flake.nix @@ -74,6 +74,7 @@ name = "nac3artiq"; src = self; inherit cargoSha256; + nativeBuildInputs = [ pkgs.zip ]; buildInputs = [ pkgs-mingw.libffi pkgs-mingw.zlib ]; configurePhase = '' @@ -95,8 +96,10 @@ doCheck = false; installPhase = '' - mkdir -p $out - cp target/x86_64-pc-windows-gnu/release/nac3artiq.dll $out/nac3artiq.pyd + mkdir -p $out $out/nix-support + ln -s target/x86_64-pc-windows-gnu/release/nac3artiq.dll nac3artiq.pyd + zip $out/nac3artiq.zip nac3artiq.pyd + echo file binary-dist $out/nac3artiq.zip >> $out/nix-support/hydra-build-products ''; meta.platforms = ["x86_64-windows"]; }