From 0ee8160aa457507c89b1f42a763d3c16c9373970 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 26 Apr 2017 16:35:11 +0200 Subject: [PATCH 1/2] 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 --- .../tools/build-managers/meson/default.nix | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix index 558b8acf70f..d4dbc6b46d2 100644 --- a/pkgs/development/tools/build-managers/meson/default.nix +++ b/pkgs/development/tools/build-managers/meson/default.nix @@ -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"; From 785d008511e7812ddc133ae1a7191f9402f9de33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 27 Apr 2017 13:16:18 +0200 Subject: [PATCH 2/2] libhttpseverywhere: 0.2.10 -> 0.4.2 --- pkgs/development/libraries/libhttpseverywhere/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libhttpseverywhere/default.nix b/pkgs/development/libraries/libhttpseverywhere/default.nix index 1e60a63fe06..961b8a77670 100644 --- a/pkgs/development/libraries/libhttpseverywhere/default.nix +++ b/pkgs/development/libraries/libhttpseverywhere/default.nix @@ -1,15 +1,15 @@ {stdenv, fetchurl, gnome3, glib, json_glib, libxml2, libarchive, libsoup, gobjectIntrospection, meson, ninja, pkgconfig, valadoc}: stdenv.mkDerivation rec { - major = "0.2"; - minor = "10"; + major = "0.4"; + minor = "2"; version = "${major}.${minor}"; name = "libhttpseverywhere-${version}"; src = fetchurl { url = "mirror://gnome/sources/libhttpseverywhere/${major}/libhttpseverywhere-${version}.tar.xz"; - sha256 = "235f5b7f96188d800470871774e31696fbde085b63f65bd71434af8e9e6ac8aa"; + sha256 = "0n850a4adsla6di8dylnadg07wblkdl28abrjvk6fzy8a1kjlx02"; }; nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ]; @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { configurePhase = '' mkdir build cd build - meson.py --prefix "$out" .. + meson --prefix "$out" .. ''; buildPhase = ''