3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #80982 from worldofpeace/qt-derivation-fixes

various: use qt5's mkDerivation
This commit is contained in:
worldofpeace 2020-02-25 20:11:06 -05:00 committed by GitHub
commit 705afab44d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 14 deletions

View file

@ -1,18 +1,27 @@
{stdenv, fetchFromGitHub, qmake}:
stdenv.mkDerivation rec {
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase }:
mkDerivation rec {
pname = "qview";
version = "3.0";
src = fetchFromGitHub {
owner = "jurplel";
repo = "qView";
rev = version;
sha256 = "15a91bs3wcqhgf76wzigbn10hayg628j84pq4j2vaxar94ak0vk7";
};
nativeBuildInputs = [ qmake ];
buildInputs = [
qtbase
];
patchPhase = ''
sed "s|/usr/|$out/|g" -i qView.pro
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Practical and minimal image viewer";
homepage = "https://interversehq.com/qview/";
license = licenses.gpl3;

View file

@ -1,8 +1,8 @@
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
, seafile-shared, ccnet, jansson, libsearpc
, withShibboleth ? true, qtwebengine }:
stdenv.mkDerivation rec {
mkDerivation rec {
pname = "seafile-client";
version = "7.0.5";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";
qtWrapperArgs = [
"--suffix PATH : ${stdenv.lib.makeBinPath [ ccnet seafile-shared ]}"
"--suffix PATH : ${lib.makeBinPath [ ccnet seafile-shared ]}"
];
meta = with lib; {

View file

@ -1,17 +1,17 @@
{ stdenv
{ lib
, mkDerivation
, fetchFromGitHub
, makeWrapper
, qmake
, qtbase
, qtmultimedia
, qttranslations
}:
stdenv.mkDerivation {
mkDerivation {
pname = "qgo";
version = "unstable-2017-12-18";
meta = with stdenv.lib; {
meta = with lib; {
description = "A Go client based on Qt5";
longDescription = ''
qGo is a Go Client based on Qt 5. It supports playing online at
@ -41,7 +41,7 @@ stdenv.mkDerivation {
postPatch = ''
sed -i 's|@out@|'"''${out}"'|g' src/src.pro src/defines.h
'';
nativeBuildInputs = [ makeWrapper qmake ];
nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase qtmultimedia qttranslations ];
enableParallelBuilding = true;

View file

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, qmake, qttools, qtbase, libsForQt5, flex, bison }:
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qtbase, poppler, flex, bison }:
stdenv.mkDerivation {
mkDerivation {
pname = "tikzit";
version = "2.1.4";
@ -12,7 +12,7 @@ stdenv.mkDerivation {
};
nativeBuildInputs = [ qmake qttools flex bison ];
buildInputs = [ qtbase libsForQt5.poppler ];
buildInputs = [ qtbase poppler ];
# src/data/tikzlexer.l:29:10: fatal error: tikzparser.parser.hpp: No such file or directory
enableParallelBuilding = false;