lol

deepin-draw: init at 5.11.4

authored by

rewine and committed by
rewine
3adf8bdf 8587ea53

+66
+65
pkgs/desktops/deepin/apps/deepin-draw/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , dtkwidget 6 + , qt5integration 7 + , qt5platform-plugins 8 + , cmake 9 + , qttools 10 + , pkg-config 11 + , wrapQtAppsHook 12 + , qtbase 13 + }: 14 + 15 + stdenv.mkDerivation rec { 16 + pname = "deepin-draw"; 17 + version = "5.11.4"; 18 + 19 + src = fetchFromGitHub { 20 + owner = "linuxdeepin"; 21 + repo = pname; 22 + rev = version; 23 + sha256 = "sha256-49RQQ52HR5aqzeVEjGm9vQpTOxhY7I0X724x/Bboo90="; 24 + }; 25 + 26 + patches = [ 27 + (fetchpatch { 28 + name = "chore: use GNUInstallDirs in CmakeLists"; 29 + url = "https://github.com/linuxdeepin/deepin-draw/commit/dac714fe603e1b77fc39952bfe6949852ee6c2d5.patch"; 30 + sha256 = "sha256-zajxmKkZJT1lcyvPv/PRPMxcstF69PB1tC50gYKDlWA="; 31 + }) 32 + ]; 33 + 34 + postPatch = '' 35 + substituteInPlace com.deepin.Draw.service \ 36 + --replace "/usr/bin/deepin-draw" "$out/bin/deepin-draw" 37 + ''; 38 + 39 + nativeBuildInputs = [ 40 + cmake 41 + qttools 42 + pkg-config 43 + wrapQtAppsHook 44 + ]; 45 + 46 + buildInputs = [ 47 + dtkwidget 48 + qt5platform-plugins 49 + ]; 50 + 51 + cmakeFlags = [ "-DVERSION=${version}" ]; 52 + 53 + # qt5integration must be placed before qtsvg in QT_PLUGIN_PATH 54 + qtWrapperArgs = [ 55 + "--prefix QT_PLUGIN_PATH : ${qt5integration}/${qtbase.qtPluginPrefix}" 56 + ]; 57 + 58 + meta = with lib; { 59 + description = "Lightweight drawing tool for users to freely draw and simply edit images"; 60 + homepage = "https://github.com/linuxdeepin/deepin-draw"; 61 + license = licenses.gpl3Plus; 62 + platforms = platforms.linux; 63 + maintainers = teams.deepin.members; 64 + }; 65 + }
+1
pkgs/desktops/deepin/default.nix
··· 23 23 #### Dtk Application 24 24 deepin-calculator = callPackage ./apps/deepin-calculator { }; 25 25 deepin-compressor = callPackage ./apps/deepin-compressor { }; 26 + deepin-draw = callPackage ./apps/deepin-draw { }; 26 27 deepin-editor = callPackage ./apps/deepin-editor { }; 27 28 deepin-terminal = callPackage ./apps/deepin-terminal { }; 28 29