Merge pull request #238903 from wineee/dde-device-formatter-0.0.1.7

dde-device-formatter: unstable-2022-09-05 -> 0.0.1.15

authored by Nick Cao and committed by GitHub 026b1d70 d5d9df66

+7 -13
+7 -13
pkgs/desktops/deepin/tools/dde-device-formatter/default.nix
··· 1 1 { stdenv 2 2 , lib 3 3 , fetchFromGitHub 4 - , fetchpatch 5 4 , dtkwidget 6 5 , deepin-gettext-tools 7 6 , qt5integration ··· 16 15 17 16 stdenv.mkDerivation rec { 18 17 pname = "dde-device-formatter"; 19 - version = "unstable-2022-09-05"; 18 + version = "0.0.1.15"; 20 19 21 20 src = fetchFromGitHub { 22 21 owner = "linuxdeepin"; 23 22 repo = pname; 24 - rev = "9b8489cb2bb7c85bd62557d16a5eabc94100512e"; 25 - sha256 = "sha256-Mi48dSDCoKhr8CGt9z64/9d7+r9QSrPPICv+R5VDuaU="; 23 + rev = version; 24 + hash = "sha256-M0XKvo/Qph09GIlqXTdYyPWilWyQhvFAF3c9Yf1Z9m0="; 26 25 }; 27 26 28 - patches = [ 29 - (fetchpatch { 30 - name = "chore-do-not-use-hardcode-path.patch"; 31 - url = "https://github.com/linuxdeepin/dde-device-formatter/commit/b836a498b8e783e0dff3820302957f15ee8416eb.patch"; 32 - sha256 = "sha256-i/VqJ6EmCyhE6weHKUB66bW6b51gLyssIAzb5li4aJM="; 33 - }) 34 - ]; 35 - 36 27 postPatch = '' 37 - substituteInPlace dde-device-formatter.pro --replace "/usr" "$out" 28 + substituteInPlace translate_desktop2ts.sh translate_ts2desktop.sh \ 29 + --replace "/usr/bin/deepin-desktop-ts-convert" "deepin-desktop-ts-convert" 30 + substituteInPlace dde-device-formatter.pro dde-device-formatter.desktop \ 31 + --replace "/usr" "$out" 38 32 patchShebangs *.sh 39 33 ''; 40 34