Merge pull request #106533 from helsinki-systems/refactor/waf-hook

[staging] wafHook: Don't wrap Python 2
This commit is contained in:
Frederik Rietdijk 2020-12-19 19:28:05 +01:00 committed by GitHub
commit f081225a83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 20 additions and 11 deletions

View File

@ -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>

View File

@ -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; {

View File

@ -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; {

View File

@ -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

View File

@ -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 = [

View File

@ -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)

View File

@ -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.

View File

@ -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

View File

@ -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 {};