forked from M-Labs/artiq-extrapkg
Add artiq version to the installer
Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
7a5f1084d8
commit
196f0b163a
|
@ -515,7 +515,7 @@
|
||||||
|
|
||||||
msys2-offline-installer = pkgs.stdenv.mkDerivation {
|
msys2-offline-installer = pkgs.stdenv.mkDerivation {
|
||||||
name = "msys2-offline-installer";
|
name = "msys2-offline-installer";
|
||||||
buildInputs = with pkgs; [ p7zip wine64 ];
|
buildInputs = with pkgs; [ p7zip ];
|
||||||
src = ./.;
|
src = ./.;
|
||||||
msys2_qt_ifw = pkgs.stdenvNoCC.mkDerivation rec {
|
msys2_qt_ifw = pkgs.stdenvNoCC.mkDerivation rec {
|
||||||
name = "msys2_qt_ifw";
|
name = "msys2_qt_ifw";
|
||||||
|
@ -564,7 +564,7 @@
|
||||||
# needed for sed and 7z
|
# needed for sed and 7z
|
||||||
chmod -R 700 qt-ifw
|
chmod -R 700 qt-ifw
|
||||||
sed -i "s|@DATE@|$(date +'%Y-%m-%d')|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
|
sed -i "s|@DATE@|$(date +'%Y-%m-%d')|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
|
||||||
sed -i "s|@VERSION@|$(date +'%Y%m%d')|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
|
sed -i "s|@VERSION@|${artiqpkgs.packages.x86_64-linux.artiq.version}|g" qt-ifw/config/config.xml qt-ifw/packages/com.msys2.root/meta/package.xml ;
|
||||||
|
|
||||||
7z a -mx9 -md128m "qt-ifw/packages/com.msys2.root/data/msys64.7z" "$msys2_artiq_root/"*
|
7z a -mx9 -md128m "qt-ifw/packages/com.msys2.root/data/msys64.7z" "$msys2_artiq_root/"*
|
||||||
${pkgs.wineWowPackages.stable}/bin/wine64 $msys2_qt_ifw/mingw64/bin/binarycreator.exe \
|
${pkgs.wineWowPackages.stable}/bin/wine64 $msys2_qt_ifw/mingw64/bin/binarycreator.exe \
|
||||||
|
|
Loading…
Reference in New Issue