Unverified Commit ffc7ca96 authored by Matthias Beyer's avatar Matthias Beyer Committed by GitHub
Browse files

sigil: 2.5.2 -> 2.6.0 and wrap qt app (#426845)

parents f65fda8d 86dbfd8c
Loading
Loading
Loading
Loading
+20 −2
Original line number Diff line number Diff line
@@ -12,13 +12,13 @@

stdenv.mkDerivation rec {
  pname = "sigil";
  version = "2.5.2";
  version = "2.6.0";

  src = fetchFromGitHub {
    repo = "Sigil";
    owner = "Sigil-Ebook";
    tag = version;
    hash = "sha256-nMPBkAAah4qbatvtfkCJqdo6BVL0NuxFZEHhSiB4uXY=";
    hash = "sha256-orOuY+gCh7X24jfnGgCbqRWDbtQqrlopYx9sWN2VawA=";
  };

  pythonPath = with python3Packages; [ lxml ];
@@ -57,10 +57,28 @@ stdenv.mkDerivation rec {
    runHook postInstall
  '';

  dontWrapQtApps = true;

  preFixup = ''
    qtWrapperArgs+=(--prefix PYTHONPATH : "$PYTHONPATH")
  '';

  fixupPhase =
    let
      sigil =
        if stdenv.hostPlatform.isDarwin then
          "$out/Applications/Sigil.app/Contents/MacOS/Sigil"
        else
          "$out/bin/sigil";
    in
    ''
      runHook preFixup

      wrapQtApp "${sigil}"

      runHook postFixup
    '';

  meta = {
    description = "Free, open source, multi-platform ebook (ePub) editor";
    homepage = "https://github.com/Sigil-Ebook/Sigil/";