1
0
forked from M-Labs/nac3

flake: publish zipfile with Windows Python module on Hydra

This commit is contained in:
Sebastien Bourdeauducq 2021-12-02 22:47:31 +08:00
parent b0eb7815da
commit 0ae2aae645

View File

@ -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"];
}