From 0243f4455bb6b6911ccdf663681ca95430bf235e Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Thu, 28 Nov 2019 13:56:44 +0100 Subject: [PATCH] libmypaint: use Python 3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Results in binary-indentical library 🎉 --- pkgs/development/libraries/libmypaint/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libmypaint/default.nix b/pkgs/development/libraries/libmypaint/default.nix index 91e0b5ef072..c36633edfff 100644 --- a/pkgs/development/libraries/libmypaint/default.nix +++ b/pkgs/development/libraries/libmypaint/default.nix @@ -7,7 +7,7 @@ , json_c , libtool , pkgconfig -, python2 +, python3 }: stdenv.mkDerivation rec { @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { intltool libtool pkgconfig - python2 + python3 ]; buildInputs = [ @@ -43,6 +43,10 @@ stdenv.mkDerivation rec { doCheck = true; + postPatch = '' + sed 's|python2|python|' -i autogen.sh + ''; + preConfigure = "./autogen.sh"; meta = with stdenv.lib; {