Merge pull request #106742 from freezeboy/migrate-qt515

This commit is contained in:
Doron Behar 2021-01-05 19:05:55 +02:00 committed by GitHub
commit d9dba88d08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 72 additions and 49 deletions

View File

@ -1,15 +1,14 @@
{ stdenv, mkDerivation, fetchgit, cmake, file, qtbase, qttools, solid }: { stdenv, mkDerivation, fetchFromGitHub, cmake, file, qtbase, qttools, solid }:
let
version = "git-2016-01-10";
in
mkDerivation { mkDerivation {
pname = "dfilemanager"; pname = "dfilemanager";
inherit version; version = "git-2020-09-04";
src = fetchgit {
url = "git://git.code.sf.net/p/dfilemanager/code"; src = fetchFromGitHub {
rev = "2c5078b05e0ad74c037366be1ab3e6a03492bde4"; owner = "probonopd";
sha256 = "1qwhnlcc2j8sr1f3v63sxs3m7q7w1xy6c2jqsnznjgm23b5h3hxd"; repo = "dfilemanager";
rev = "c592d643d76942dc2c2ccb6e4bfdf53f5e805e48";
sha256 = "7hIgaWjjOck5i4QbeVeQK7yrjK4yDoAZ5qY9RhM5ABY=";
}; };
buildInputs = [ cmake qtbase qttools file solid ]; buildInputs = [ cmake qtbase qttools file solid ];

View File

@ -1,18 +1,25 @@
{ stdenv, fetchFromGitHub, makeWrapper, qmake, pkgconfig, boost, gdal, proj { mkDerivation, lib, fetchFromGitHub, qmake, pkgconfig, fetchpatch
, qtbase, qtsvg, qtwebview, qtwebkit }: , boost, gdal, proj, qtbase, qtsvg, qtwebview, qtwebkit }:
stdenv.mkDerivation rec { mkDerivation rec {
pname = "merkaartor"; pname = "merkaartor";
version = "unstable-2019-11-12"; version = "0.18.4";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "openstreetmap"; owner = "openstreetmap";
repo = "merkaartor"; repo = "merkaartor";
rev = "29b3388680a03f1daac0037a2b504ea710da879a"; rev = version;
sha256 = "0h3d3srzl06p2ajq911j05zr4vkl88qij18plydx45yqmvyvh0xz"; sha256 = "vwO4/a7YF9KbpxcFGTFCdG6SfwEyhISlEtcA+rMebUA=";
}; };
nativeBuildInputs = [ makeWrapper qmake pkgconfig ]; patches = [
(fetchpatch {
url = "https://github.com/openstreetmap/merkaartor/commit/e72553a7ea2c7ba0634cc3afcd27a9f7cfef089c.patch";
sha256 = "NAisplnS3xHSlRpX+fH15NpbaD+uM57OCsTYGKlIR7U=";
})
];
nativeBuildInputs = [ qmake pkgconfig ];
buildInputs = [ boost gdal proj qtbase qtsvg qtwebview qtwebkit ]; buildInputs = [ boost gdal proj qtbase qtsvg qtwebview qtwebkit ];
@ -20,12 +27,7 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"; NIX_CFLAGS_COMPILE = "-DACCEPT_USE_OF_DEPRECATED_PROJ_API_H";
postInstall = '' meta = with lib; {
wrapProgram $out/bin/merkaartor \
--set QT_QPA_PLATFORM_PLUGIN_PATH ${qtbase.bin}/lib/qt-*/plugins/platforms
'';
meta = with stdenv.lib; {
description = "OpenStreetMap editor"; description = "OpenStreetMap editor";
homepage = "http://merkaartor.be/"; homepage = "http://merkaartor.be/";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;

View File

@ -4,13 +4,13 @@
mkDerivation rec { mkDerivation rec {
pname = "seafile-client"; pname = "seafile-client";
version = "7.0.10"; version = "8.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "haiwen"; owner = "haiwen";
repo = "seafile-client"; repo = "seafile-client";
rev = "v${version}"; rev = "b4b944921c7efef13a93d693c45c997943899dec";
sha256 = "082v1qbysrqb7m0lk56fpx8n403fjxbvbj0svm4mkjl6mzs2cv22"; sha256 = "2vV+6ZXjVg81JVLfWeD0UK+RdmpBxBU2Ozx790WFSyw=";
}; };
nativeBuildInputs = [ pkgconfig cmake ]; nativeBuildInputs = [ pkgconfig cmake ];

View File

@ -1,7 +1,7 @@
{ lib, mkDerivation, fetchFromGitLab, cmake, luajit, { lib, mkDerivation, fetchFromGitLab, cmake, luajit
SDL2, SDL2_image, SDL2_ttf, physfs, , SDL2, SDL2_image, SDL2_ttf, physfs, fetchpatch
openal, libmodplug, libvorbis, solarus, , openal, libmodplug, libvorbis, solarus
qtbase, qttools, glm }: , qtbase, qttools, glm }:
mkDerivation rec { mkDerivation rec {
pname = "solarus-quest-editor"; pname = "solarus-quest-editor";
@ -14,6 +14,13 @@ mkDerivation rec {
sha256 = "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"; sha256 = "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn";
}; };
patches = [
(fetchpatch {
url = "https://gitlab.com/solarus-games/solarus-quest-editor/-/commit/81d5c7f1602cf355684d70a5e3449fefccfc44b8.patch";
sha256 = "tVUxkkDp2PcOHGy4dGvUcYj9gF7k4LN21VuxohCw9NE=";
})
];
buildInputs = [ cmake luajit SDL2 buildInputs = [ cmake luajit SDL2
SDL2_image SDL2_ttf physfs SDL2_image SDL2_ttf physfs
openal libmodplug libvorbis openal libmodplug libvorbis

View File

@ -1,22 +1,38 @@
{stdenv, fetchFromGitHub, which, autoreconfHook, pkgconfig, vala, python2, curl, libevent, glib, libsearpc, sqlite, intltool, fuse, libuuid }: { stdenv
, fetchFromGitHub
, autoreconfHook
, ccnet
, curl
, fuse
, glib
, intltool
, libevent
, libsearpc
, libuuid
, pkg-config
, python3
, sqlite
, vala
, which
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "seafile-shared"; pname = "seafile-shared";
version = "7.0.10"; version = "8.0.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "haiwen"; owner = "haiwen";
repo = "seafile"; repo = "seafile";
rev = "v${version}"; rev = "d34499a2aafa024623a4210fe7f663cef13fe9a6";
sha256 = "0b3297cbagi9x8dnw2gjifmb8dk6vyhg6vfrfsanm1wyx8pgw2jg"; sha256 = "VKoGr3CTDFg3Q0X+MTlwa4BbfLB+28FeTyTJRCq37RA=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
autoreconfHook autoreconfHook
vala vala
pkgconfig pkg-config
python2 python3
python2.pkgs.wrapPython python3.pkgs.wrapPython
]; ];
buildInputs = [ buildInputs = [
@ -30,10 +46,10 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--disable-server" "--disable-server"
"--disable-console" "--disable-console"
"--with-python3"
]; ];
pythonPath = with python2.pkgs; [ pythonPath = with python3.pkgs; [
future
libsearpc libsearpc
]; ];

View File

@ -13608,7 +13608,7 @@ in
hdt = callPackage ../misc/hdt {}; hdt = callPackage ../misc/hdt {};
herqq = libsForQt514.callPackage ../development/libraries/herqq { }; herqq = libsForQt5.callPackage ../development/libraries/herqq { };
hidapi = callPackage ../development/libraries/hidapi { hidapi = callPackage ../development/libraries/hidapi {
# TODO: remove once `udev` is `systemdMinimal` everywhere. # TODO: remove once `udev` is `systemdMinimal` everywhere.
@ -20732,7 +20732,7 @@ in
bevelbar = callPackage ../applications/window-managers/bevelbar { }; bevelbar = callPackage ../applications/window-managers/bevelbar { };
bibletime = libsForQt514.callPackage ../applications/misc/bibletime { }; bibletime = libsForQt5.callPackage ../applications/misc/bibletime { };
bino3d = libsForQt5.callPackage ../applications/video/bino3d { bino3d = libsForQt5.callPackage ../applications/video/bino3d {
glew = glew110; glew = glew110;
@ -21090,7 +21090,7 @@ in
dfasma = libsForQt5.callPackage ../applications/audio/dfasma { }; dfasma = libsForQt5.callPackage ../applications/audio/dfasma { };
dfilemanager = libsForQt514.callPackage ../applications/misc/dfilemanager { }; dfilemanager = libsForQt5.callPackage ../applications/misc/dfilemanager { };
dia = callPackage ../applications/graphics/dia { dia = callPackage ../applications/graphics/dia {
inherit (pkgs.gnome2) libart_lgpl libgnomeui; inherit (pkgs.gnome2) libart_lgpl libgnomeui;
@ -21922,7 +21922,7 @@ in
manul = callPackage ../development/tools/manul { }; manul = callPackage ../development/tools/manul { };
mindforger = libsForQt514.callPackage ../applications/editors/mindforger { }; mindforger = libsForQt5.callPackage ../applications/editors/mindforger { };
mi2ly = callPackage ../applications/audio/mi2ly {}; mi2ly = callPackage ../applications/audio/mi2ly {};
@ -22956,8 +22956,7 @@ in
mercurialFull = appendToName "full" (pkgs.mercurial.override { guiSupport = true; }); mercurialFull = appendToName "full" (pkgs.mercurial.override { guiSupport = true; });
# Needs qtwebkit which is broken on qt5.15 merkaartor = libsForQt5.callPackage ../applications/misc/merkaartor { };
merkaartor = libsForQt514.callPackage ../applications/misc/merkaartor { };
meshlab = libsForQt5.callPackage ../applications/graphics/meshlab { }; meshlab = libsForQt5.callPackage ../applications/graphics/meshlab { };
@ -24166,7 +24165,7 @@ in
scribusUnstable = libsForQt5.callPackage ../applications/office/scribus/unstable.nix { }; scribusUnstable = libsForQt5.callPackage ../applications/office/scribus/unstable.nix { };
seafile-client = libsForQt514.callPackage ../applications/networking/seafile-client { }; seafile-client = libsForQt5.callPackage ../applications/networking/seafile-client { };
sent = callPackage ../applications/misc/sent { }; sent = callPackage ../applications/misc/sent { };
@ -26447,8 +26446,8 @@ in
}; };
# solarus and solarus-quest-editor must use the same version of Qt. # solarus and solarus-quest-editor must use the same version of Qt.
solarus = libsForQt514.callPackage ../games/solarus { }; solarus = libsForQt5.callPackage ../games/solarus { };
solarus-quest-editor = libsForQt514.callPackage ../development/tools/solarus-quest-editor { }; solarus-quest-editor = libsForQt5.callPackage ../development/tools/solarus-quest-editor { };
# You still can override by passing more arguments. # You still can override by passing more arguments.
space-orbit = callPackage ../games/space-orbit { }; space-orbit = callPackage ../games/space-orbit { };