Merge pull request #61653 from d3rped/fix/krita

krita: fixed missing python path
This commit is contained in:
worldofpeace 2019-05-28 15:12:57 -04:00 committed by GitHub
commit 958eef3533
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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/;