forked from M-Labs/nac3
1
0
Fork 0

flake: cleanup tarball unpacking

This commit is contained in:
Sebastien Bourdeauducq 2021-12-02 22:37:32 +08:00
parent 22a509e7ce
commit 26e60fca6e
1 changed files with 11 additions and 5 deletions

View File

@ -19,11 +19,17 @@
url = "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-3.9.7-4-any.pkg.tar.zst"; url = "https://mirror.msys2.org/mingw/mingw64/mingw-w64-x86_64-python-3.9.7-4-any.pkg.tar.zst";
sha256 = "0iwlgbk4b457yn9djwqswid55xhyyi35qymz1lfh42xwdpxdm47c"; sha256 = "0iwlgbk4b457yn9djwqswid55xhyyi35qymz1lfh42xwdpxdm47c";
}; };
msys2-python = pkgs.runCommand "msys2-python" { buildInputs = [ pkgs.gnutar pkgs.zstd ]; } msys2-python = pkgs.stdenvNoCC.mkDerivation {
name = "msys2-python";
src = msys2-python-tar;
buildInputs = [ pkgs.gnutar pkgs.zstd ];
phases = [ "installPhase" ];
installPhase =
'' ''
mkdir $out mkdir $out
tar xvf ${msys2-python-tar} -C $out tar xf $src -C $out
''; '';
};
pyo3-mingw-config = pkgs.writeTextFile { pyo3-mingw-config = pkgs.writeTextFile {
name = "pyo3-mingw-config"; name = "pyo3-mingw-config";
text = text =