forked from M-Labs/nac3
1
0
Fork 0

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
1 changed files with 5 additions and 2 deletions

View File

@ -74,6 +74,7 @@
name = "nac3artiq"; name = "nac3artiq";
src = self; src = self;
inherit cargoSha256; inherit cargoSha256;
nativeBuildInputs = [ pkgs.zip ];
buildInputs = [ pkgs-mingw.libffi pkgs-mingw.zlib ]; buildInputs = [ pkgs-mingw.libffi pkgs-mingw.zlib ];
configurePhase = configurePhase =
'' ''
@ -95,8 +96,10 @@
doCheck = false; doCheck = false;
installPhase = installPhase =
'' ''
mkdir -p $out mkdir -p $out $out/nix-support
cp target/x86_64-pc-windows-gnu/release/nac3artiq.dll $out/nac3artiq.pyd 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"]; meta.platforms = ["x86_64-windows"];
} }