tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
deepin.dde-device-formatter: unstable-2022-09-05 -> 0.0.1.15
rewine
2 years ago
6571dd99
2f9c0ffd
+7
-13
1 changed file
expand all
collapse all
unified
split
pkgs
desktops
deepin
tools
dde-device-formatter
default.nix
+7
-13
pkgs/desktops/deepin/tools/dde-device-formatter/default.nix
···
1
1
{ stdenv
2
2
, lib
3
3
, fetchFromGitHub
4
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
19
-
version = "unstable-2022-09-05";
18
18
+
version = "0.0.1.15";
20
19
21
20
src = fetchFromGitHub {
22
21
owner = "linuxdeepin";
23
22
repo = pname;
24
24
-
rev = "9b8489cb2bb7c85bd62557d16a5eabc94100512e";
25
25
-
sha256 = "sha256-Mi48dSDCoKhr8CGt9z64/9d7+r9QSrPPICv+R5VDuaU=";
23
23
+
rev = version;
24
24
+
hash = "sha256-M0XKvo/Qph09GIlqXTdYyPWilWyQhvFAF3c9Yf1Z9m0=";
26
25
};
27
26
28
28
-
patches = [
29
29
-
(fetchpatch {
30
30
-
name = "chore-do-not-use-hardcode-path.patch";
31
31
-
url = "https://github.com/linuxdeepin/dde-device-formatter/commit/b836a498b8e783e0dff3820302957f15ee8416eb.patch";
32
32
-
sha256 = "sha256-i/VqJ6EmCyhE6weHKUB66bW6b51gLyssIAzb5li4aJM=";
33
33
-
})
34
34
-
];
35
35
-
36
27
postPatch = ''
37
37
-
substituteInPlace dde-device-formatter.pro --replace "/usr" "$out"
28
28
+
substituteInPlace translate_desktop2ts.sh translate_ts2desktop.sh \
29
29
+
--replace "/usr/bin/deepin-desktop-ts-convert" "deepin-desktop-ts-convert"
30
30
+
substituteInPlace dde-device-formatter.pro dde-device-formatter.desktop \
31
31
+
--replace "/usr" "$out"
38
32
patchShebangs *.sh
39
33
'';
40
34