2d6ea2cc30
Commit 0055c6a
introduced a new preConfigure hook that sets the right
qmake path. Unfortunately the mkDerivation attributes of qmltermwidget
override the whole configurePhase, so this hook isn't run at all.
This fixes the build of qmltermwidget and it now successfully compiles
on my machine.
Signed-off-by: aszlig <aszlig@redmoonstudios.org>
37 lines
937 B
Nix
37 lines
937 B
Nix
{ stdenv, fetchgit, qtbase, qtquick1 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "0.1.0";
|
|
name = "qmltermwidget-${version}";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/Swordfish90/qmltermwidget.git";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "19pz27jsdpa3pybj8sghmmd1zqgr73js1mp3875rhx158dav37nz";
|
|
};
|
|
|
|
buildInputs = [ qtbase qtquick1 ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace qmltermwidget.pro \
|
|
--replace '$$[QT_INSTALL_QML]' "/lib/qt5/qml/"
|
|
'';
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
qmake PREFIX=$out
|
|
runHook postConfigure
|
|
'';
|
|
|
|
installPhase=''make INSTALL_ROOT="$out" install'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "A QML port of qtermwidget";
|
|
homepage = "https://github.com/Swordfish90/qmltermwidget";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ skeidel ];
|
|
};
|
|
}
|