forked from M-Labs/nac3
flake: cleanup tarball unpacking
This commit is contained in:
parent
22a509e7ce
commit
26e60fca6e
16
flake.nix
16
flake.nix
@ -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";
|
||||||
mkdir $out
|
src = msys2-python-tar;
|
||||||
tar xvf ${msys2-python-tar} -C $out
|
buildInputs = [ pkgs.gnutar pkgs.zstd ];
|
||||||
'';
|
phases = [ "installPhase" ];
|
||||||
|
installPhase =
|
||||||
|
''
|
||||||
|
mkdir $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 =
|
||||||
|
Loading…
Reference in New Issue
Block a user