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 { stdenv 2 , lib 3 , fetchFromGitHub 4 - , fetchpatch 5 , dtkwidget 6 , deepin-gettext-tools 7 , qt5integration ··· 16 17 stdenv.mkDerivation rec { 18 pname = "dde-device-formatter"; 19 - version = "unstable-2022-09-05"; 20 21 src = fetchFromGitHub { 22 owner = "linuxdeepin"; 23 repo = pname; 24 - rev = "9b8489cb2bb7c85bd62557d16a5eabc94100512e"; 25 - sha256 = "sha256-Mi48dSDCoKhr8CGt9z64/9d7+r9QSrPPICv+R5VDuaU="; 26 }; 27 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 postPatch = '' 37 - substituteInPlace dde-device-formatter.pro --replace "/usr" "$out" 38 patchShebangs *.sh 39 ''; 40
··· 1 { stdenv 2 , lib 3 , fetchFromGitHub 4 , dtkwidget 5 , deepin-gettext-tools 6 , qt5integration ··· 15 16 stdenv.mkDerivation rec { 17 pname = "dde-device-formatter"; 18 + version = "0.0.1.15"; 19 20 src = fetchFromGitHub { 21 owner = "linuxdeepin"; 22 repo = pname; 23 + rev = version; 24 + hash = "sha256-M0XKvo/Qph09GIlqXTdYyPWilWyQhvFAF3c9Yf1Z9m0="; 25 }; 26 27 postPatch = '' 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" 32 patchShebangs *.sh 33 ''; 34