Merge pull request #106533 from helsinki-systems/refactor/waf-hook
[staging] wafHook: Don't wrap Python 2
This commit is contained in:
commit
f081225a83
@ -287,6 +287,12 @@
|
|||||||
This avoids that the password gets exposed in the nix store.
|
This avoids that the password gets exposed in the nix store.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
The <literal>wafHook</literal> hook does not wrap Python anymore.
|
||||||
|
Packages depending on <literal>wafHook</literal> need to include any Python into their <literal>nativeBuildInputs</literal>.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig
|
{ stdenv, fetchFromGitHub, cairo, fftw, gtkmm2, lv2, lvtk, pkgconfig
|
||||||
, wafHook }:
|
, wafHook, python3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ams-lv2";
|
pname = "ams-lv2";
|
||||||
@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1lz2mvk4gqsyf92yxd3aaldx0d0qi28h4rnnvsaz4ls0ccqm80nk";
|
sha256 = "1lz2mvk4gqsyf92yxd3aaldx0d0qi28h4rnnvsaz4ls0ccqm80nk";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig wafHook ];
|
nativeBuildInputs = [ pkgconfig wafHook python3 ];
|
||||||
buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];
|
buildInputs = [ cairo fftw gtkmm2 lv2 lvtk ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fftwSinglePrec, lv2, pkgconfig, wafHook }:
|
{ stdenv, fetchurl, fftwSinglePrec, lv2, pkgconfig, wafHook, python3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mda-lv2";
|
pname = "mda-lv2";
|
||||||
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1a3cv6w5xby9yn11j695rbh3c4ih7rxfxmkca9s1324ljphh06m8";
|
sha256 = "1a3cv6w5xby9yn11j695rbh3c4ih7rxfxmkca9s1324ljphh06m8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig wafHook ];
|
nativeBuildInputs = [ pkgconfig wafHook python3 ];
|
||||||
buildInputs = [ fftwSinglePrec lv2 ];
|
buildInputs = [ fftwSinglePrec lv2 ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
, swig
|
, swig
|
||||||
, eigen
|
, eigen
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
|
, python2
|
||||||
, wafHook
|
, wafHook
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, qt4
|
, qt4
|
||||||
@ -38,9 +39,10 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
wafHook
|
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
python2 # For wafHook
|
||||||
swig
|
swig
|
||||||
|
wafHook
|
||||||
]
|
]
|
||||||
# The gaiafusion binary inside $out/bin needs a shebangs patch, and
|
# The gaiafusion binary inside $out/bin needs a shebangs patch, and
|
||||||
# wrapping with the appropriate $PYTHONPATH
|
# wrapping with the appropriate $PYTHONPATH
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl
|
, fetchurl
|
||||||
|
, python2
|
||||||
, python3
|
, python3
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, readline
|
, readline
|
||||||
@ -26,6 +27,7 @@ stdenv.mkDerivation rec {
|
|||||||
docbook-xsl-nons
|
docbook-xsl-nons
|
||||||
docbook_xml_dtd_42
|
docbook_xml_dtd_42
|
||||||
wafHook
|
wafHook
|
||||||
|
python2 # For wafHook
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{ lib, stdenv, pkgs, python, makeSetupHook, waf }:
|
{ lib, stdenv, pkgs, makeSetupHook, waf }:
|
||||||
|
|
||||||
makeSetupHook {
|
makeSetupHook {
|
||||||
deps = [ python ];
|
|
||||||
substitutions = {
|
substitutions = {
|
||||||
inherit waf;
|
inherit waf;
|
||||||
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
|
crossFlags = lib.optionalString (stdenv.hostPlatform.system != stdenv.targetPlatform.system)
|
||||||
|
@ -52,7 +52,7 @@ let
|
|||||||
"pak128.german" = {
|
"pak128.german" = {
|
||||||
url = "mirror://sourceforge/simutrans/PAK128.german/"
|
url = "mirror://sourceforge/simutrans/PAK128.german/"
|
||||||
+ "pak128.german_1.2_for_ST_121.0/PAK128.german_1.2_for_ST_121-0.zip";
|
+ "pak128.german_1.2_for_ST_121.0/PAK128.german_1.2_for_ST_121-0.zip";
|
||||||
sha256 = "1jxjckz4b02yv1mv1zc3pmajpq740dfnlvhr0x762lbrybymvagi";
|
sha256 = "1cv1rzl1a3i5dvk476zq094wawk9hhdh2f0y4xrdny5gn17mb2xi";
|
||||||
};
|
};
|
||||||
|
|
||||||
/* This release contains accented filenames that prevent unzipping.
|
/* This release contains accented filenames that prevent unzipping.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, wafHook
|
, wafHook
|
||||||
|
, python3
|
||||||
, asciidoc
|
, asciidoc
|
||||||
, docbook_xml_dtd_45
|
, docbook_xml_dtd_45
|
||||||
, docbook_xsl
|
, docbook_xsl
|
||||||
@ -25,6 +26,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
wafHook
|
wafHook
|
||||||
|
python3
|
||||||
asciidoc
|
asciidoc
|
||||||
docbook_xml_dtd_45
|
docbook_xml_dtd_45
|
||||||
docbook_xsl
|
docbook_xsl
|
||||||
|
@ -16209,9 +16209,7 @@ in
|
|||||||
|
|
||||||
taglib-sharp = callPackage ../development/libraries/taglib-sharp { };
|
taglib-sharp = callPackage ../development/libraries/taglib-sharp { };
|
||||||
|
|
||||||
talloc = callPackage ../development/libraries/talloc {
|
talloc = callPackage ../development/libraries/talloc { };
|
||||||
wafHook = wafHook.override { python = python3; };
|
|
||||||
};
|
|
||||||
|
|
||||||
tclap = callPackage ../development/libraries/tclap {};
|
tclap = callPackage ../development/libraries/tclap {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user