Unverified Commit 32fe299b authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

Merge pull request #228249 from wineee/deepin-draw-upd

deepin.deepin-draw: 5.11.7 -> 6.0.5
parents fb54110d 9d5baf6d
Loading
Loading
Loading
Loading
+2 −11
Original line number Diff line number Diff line
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, qttools
, pkg-config
@@ -15,23 +14,15 @@

stdenv.mkDerivation rec {
  pname = "deepin-draw";
  version = "5.11.7";
  version = "6.0.5";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "sha256-oryh1b7/78Hp3JclN9vKvfcKRg58nsfGZQvBx6VyJBs";
    sha256 = "sha256-WeubXsshN4tUlIwEHTxHXv1L2dvJ2DZ6qtSPyiVtc98=";
  };

  patches = [
    (fetchpatch {
      name = "chore-use-GNUInstallDirs-in-CmakeLists.patch";
      url = "https://github.com/linuxdeepin/deepin-draw/commit/dac714fe603e1b77fc39952bfe6949852ee6c2d5.patch";
      sha256 = "sha256-zajxmKkZJT1lcyvPv/PRPMxcstF69PB1tC50gYKDlWA=";
    })
  ];

  postPatch = ''
    substituteInPlace com.deepin.Draw.service \
      --replace "/usr/bin/deepin-draw" "$out/bin/deepin-draw"