mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
Merge pull request #189755 from AndersonTorres/sioyek
sioyek: get rid of rec
This commit is contained in:
commit
7837fafa95
@ -15,21 +15,34 @@
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "sioyek";
|
||||
version = "unstable-2022-08-30";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ahrm";
|
||||
repo = pname;
|
||||
repo = "sioyek";
|
||||
rev = "8d0a63484334e2cb2b0571a07a3875e6ab6c8916";
|
||||
sha256 = "sha256-29Wxg/VVQPDDzzxKcvMa1+rtiP4bDkPAB/JJsj+F+WQ=";
|
||||
};
|
||||
|
||||
buildInputs = [ gumbo harfbuzz jbig2dec mupdf mujs openjpeg qt3d qtbase ]
|
||||
++ lib.optionals stdenv.isDarwin [ freetype ];
|
||||
buildInputs = [
|
||||
gumbo
|
||||
harfbuzz
|
||||
jbig2dec
|
||||
mujs
|
||||
mupdf
|
||||
openjpeg
|
||||
qt3d
|
||||
qtbase
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [ freetype ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles wrapQtAppsHook qmake ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
qmake
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
qmakeFlags = lib.optionals stdenv.isDarwin [ "CONFIG+=non_portable" ];
|
||||
|
||||
@ -51,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
mkdir -p $out/Applications
|
||||
cp -r sioyek.app $out/Applications
|
||||
'' else ''
|
||||
'' else ''
|
||||
install -Dm644 tutorial.pdf $out/share/tutorial.pdf
|
||||
cp -r pdf_viewer/shaders $out/share/
|
||||
install -Dm644 -t $out/etc/ pdf_viewer/{keys,prefs}.config
|
||||
@ -59,11 +72,12 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Sioyek is a PDF viewer designed for reading research papers and technical books.";
|
||||
homepage = "https://sioyek.info/";
|
||||
changelog = "https://github.com/ahrm/sioyek/releases";
|
||||
description = "A PDF viewer designed for research papers and technical books";
|
||||
changelog = "https://github.com/ahrm/sioyek/releases/tag/v1.5.0";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = [ maintainers.podocarp ];
|
||||
maintainers = with maintainers; [ podocarp ];
|
||||
platforms = platforms.unix;
|
||||
broken = stdenv.isDarwin && stdenv.isAarch64;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
@ -30769,7 +30769,9 @@ with pkgs;
|
||||
|
||||
simple-scan = gnome.simple-scan;
|
||||
|
||||
sioyek = libsForQt5.callPackage ../applications/misc/sioyek { };
|
||||
sioyek = callPackage ../applications/misc/sioyek {
|
||||
inherit (libsForQt5) qmake qt3d qtbase wrapQtAppsHook;
|
||||
};
|
||||
|
||||
siproxd = callPackage ../applications/networking/siproxd { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user