mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
Merge pull request #253841 from wineee/deepin-reader
deepin.deepin-reader: 5.10.29 -> 6.0.2
This commit is contained in:
commit
682985913d
@ -17,24 +17,26 @@
|
|||||||
, openjpeg
|
, openjpeg
|
||||||
, djvulibre
|
, djvulibre
|
||||||
, qtbase
|
, qtbase
|
||||||
|
, gtest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "deepin-reader";
|
pname = "deepin-reader";
|
||||||
version = "5.10.29";
|
version = "6.0.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "linuxdeepin";
|
owner = "linuxdeepin";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-IpgmTmnrPWc9EFZVM+S2nFxdpPjbgXqEWUnK/O9FmUg=";
|
hash = "sha256-69NCxa20wp/tyyGGH/FbHhZ83LECbJWAzaLRo7iYreA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./use-pkg-config.diff ];
|
# don't use vendored htmltopdf
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace reader/{reader.pro,document/Model.cpp} htmltopdf/htmltopdf.pro 3rdparty/deepin-pdfium/src/src.pro \
|
substituteInPlace deepin_reader.pro \
|
||||||
--replace "/usr" "$out"
|
--replace "SUBDIRS += htmltopdf" " "
|
||||||
|
substituteInPlace reader/document/Model.cpp \
|
||||||
|
--replace "/usr/lib/deepin-reader/htmltopdf" "htmltopdf"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -56,6 +58,7 @@ stdenv.mkDerivation rec {
|
|||||||
libspectre
|
libspectre
|
||||||
djvulibre
|
djvulibre
|
||||||
openjpeg
|
openjpeg
|
||||||
|
gtest
|
||||||
];
|
];
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = [
|
||||||
|
Loading…
Reference in New Issue
Block a user