meson: 0.35.0 -> 0.40.0

In configured builds other tools tries to call meson by directly
passing meson tools directly to python. Since they were shell scripts
due wrapping this failed
This commit is contained in:
Jörg Thalheim 2017-04-26 16:35:11 +02:00
parent 9d3c118320
commit 0ee8160aa4
No known key found for this signature in database
GPG key ID: CA4106B8D7CC79FA

View file

@ -1,13 +1,23 @@
{ lib, python3Packages, fetchurl }:
python3Packages.buildPythonPackage rec {
version = "0.35.0";
name = "meson-${version}";
{ lib, python3Packages }:
python3Packages.buildPythonApplication rec {
version = "0.40.0";
pname = "meson";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://pypi/m/meson/${name}.tar.gz";
sha256 = "0w4vian55cwcv2m5qzn73aznf9a0y24cszqb7dkpahrb9yrg25l3";
src = python3Packages.fetchPypi {
inherit pname version;
sha256 = "1hb6y5phzd5738rlpz78w8hfzk7sbxj81551mb7bbkkqz8ql1gjw";
};
postFixup = ''
pushd $out/bin
# undo shell wrapper as meson tools are called with python
for i in *; do
mv ".$i-wrapped" "$i"
done
popd
'';
meta = with lib; {
homepage = http://mesonbuild.com;
description = "SCons-like build system that use python as a front-end language and Ninja as a building backend";