msys2: set VERSIONEER_OVERRIDE for artiq
Co-authored-by: wlph17 <wl@m-labs.hk> Co-committed-by: wlph17 <wl@m-labs.hk>
This commit is contained in:
parent
876de24ed2
commit
c58f028ef7
@ -428,6 +428,11 @@
|
||||
name = "artiq";
|
||||
src = artiq;
|
||||
inherit (artiq.packages.x86_64-linux.artiq) version;
|
||||
prepare =
|
||||
''
|
||||
export VERSIONEER_OVERRIDE=${artiq.packages.x86_64-linux.artiq.version}
|
||||
export VERSIONEER_REV=${artiq.sourceInfo.rev}
|
||||
'';
|
||||
depends = [
|
||||
"mingw-w64-x86_64-python"
|
||||
"mingw-w64-x86_64-python-h5py"
|
||||
|
@ -25,7 +25,7 @@ let
|
||||
exec ${pkgs.wineWowPackages.stable}/bin/wine64 $@
|
||||
'';
|
||||
in {
|
||||
makeMsys2Package = { name, version, src, depends }: pkgs.stdenvNoCC.mkDerivation {
|
||||
makeMsys2Package = { name, version, src, prepare, depends }: pkgs.stdenvNoCC.mkDerivation {
|
||||
pname = "${name}-msys2-pkg";
|
||||
inherit version;
|
||||
nativeBuildInputs = [
|
||||
@ -37,6 +37,7 @@ in {
|
||||
buildPhase =
|
||||
''
|
||||
export DRV_VERSION=${version}
|
||||
${prepare}
|
||||
cat > PKGBUILD << HEREDOC
|
||||
pkgbase="mingw-w64-${name}"
|
||||
pkgname="mingw-w64-x86_64-${name}"
|
||||
|
Loading…
Reference in New Issue
Block a user