krita: fixed missing python path

This commit is contained in:
derped 2019-05-18 04:22:02 +02:00
parent 489ca5c978
commit 7af3d2198f

View File

@ -1,4 +1,4 @@
{ mkDerivation, lib, stdenv, fetchurl, cmake, extra-cmake-modules
{ mkDerivation, lib, stdenv, makeWrapper, fetchurl, cmake, extra-cmake-modules
, karchive, kconfig, kwidgetsaddons, kcompletion, kcoreaddons
, kguiaddons, ki18n, kitemmodels, kitemviews, kwindowsystem
, kio, kcrash
@ -25,7 +25,7 @@ mkDerivation rec {
sha256 = "0h2rplc76r82b8smk61zci1ijj9xkjmf20pdqa8fc2lz4zicjxh4";
};
nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip ];
nativeBuildInputs = [ cmake extra-cmake-modules python3Packages.sip makeWrapper ];
buildInputs = [
karchive kconfig kwidgetsaddons kcompletion kcoreaddons kguiaddons
@ -44,6 +44,12 @@ mkDerivation rec {
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
];
postInstall = ''
for i in $out/bin/*; do
wrapProgram $i --prefix PYTHONPATH : "$PYTHONPATH"
done
'';
meta = with lib; {
description = "A free and open source painting application";
homepage = https://krita.org/;