sigil: use qt5's mkDerivation
Slightly different implementation because out of the box: - $out/bin/sigil is a shell script wrapper - $out/lib/sigil/sigil is the ELF executable See #65399
This commit is contained in:
parent
5ce8864c54
commit
e373ce139f
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
{ stdenv, mkDerivation, fetchFromGitHub, cmake, pkgconfig, makeWrapper
|
||||||
, boost, xercesc
|
, boost, xercesc
|
||||||
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
, qtbase, qttools, qtwebkit, qtxmlpatterns
|
||||||
, python3, python3Packages
|
, python3, python3Packages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
name = "sigil-${version}";
|
name = "sigil-${version}";
|
||||||
version = "0.9.14";
|
version = "0.9.14";
|
||||||
|
|
||||||
@ -17,17 +17,18 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
pythonPath = with python3Packages; [ lxml ];
|
pythonPath = with python3Packages; [ lxml ];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ lxml ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
boost xercesc qtbase qttools qtwebkit qtxmlpatterns
|
||||||
python3 python3Packages.lxml ];
|
python3Packages.lxml ];
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
wrapProgram "$out/bin/sigil" \
|
wrapProgram "$out/bin/sigil" \
|
||||||
--prefix PYTHONPATH : $PYTHONPATH:$(toPythonPath ${python3Packages.lxml})
|
--prefix PYTHONPATH : $PYTHONPATH \
|
||||||
|
''${qtWrapperArgs[@]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user