diff --git a/pkgs/applications/misc/sioyek/default.nix b/pkgs/applications/misc/sioyek/default.nix index 3ea7afcbdeb4..2dc82b55df7c 100644 --- a/pkgs/applications/misc/sioyek/default.nix +++ b/pkgs/applications/misc/sioyek/default.nix @@ -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; }; -} +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index af5d2e99705e..54975fd0bbfd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -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 { };