nixpkgs/pkgs/desktops/deepin/apps/deepin-clone/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.5 KiB
Nix
Raw Normal View History

2023-03-21 16:04:44 +00:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, qttools
, pkg-config
, qtbase
, wrapQtAppsHook
, dtkwidget
, qt5integration
, qt5platform-plugins
, libuuid
, parted
, partclone
}:
stdenv.mkDerivation rec {
pname = "deepin-clone";
2023-08-02 02:12:41 +00:00
version = "5.0.15";
2023-03-21 16:04:44 +00:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2023-08-02 02:12:41 +00:00
hash = "sha256-yxYmRSiw/pjgHftu75S9yx0ZXrWRz0VbU8jPjl4baqQ=";
2023-03-21 16:04:44 +00:00
};
postPatch = ''
2023-08-02 02:12:41 +00:00
substituteInPlace app/{deepin-clone-ionice,deepin-clone-pkexec,com.deepin.pkexec.deepin-clone.policy.tmp} \
2023-03-21 16:04:44 +00:00
--replace "/usr" "$out"
substituteInPlace app/src/corelib/ddevicediskinfo.cpp \
--replace "/sbin/blkid" "${libuuid}/bin/blkid"
substituteInPlace app/src/corelib/helper.cpp \
--replace "/bin/lsblk" "${libuuid}/bin/lsblk" \
--replace "/sbin/sfdisk" "${libuuid}/bin/sfdisk" \
--replace "/sbin/partprobe" "${parted}/bin/partprobe" \
--replace "/usr/sbin" "${partclone}/bin"
'';
nativeBuildInputs = [
cmake
qttools
pkg-config
wrapQtAppsHook
];
buildInputs = [
qtbase
dtkwidget
qt5integration
2023-03-21 16:04:44 +00:00
qt5platform-plugins
libuuid
parted
partclone
];
cmakeFlags = [
"-DDISABLE_DFM_PLUGIN=YES"
];
strictDeps = true;
meta = with lib; {
description = "Disk and partition backup/restore tool";
homepage = "https://github.com/linuxdeepin/deepin-clone";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
2023-10-27 02:10:59 +00:00
broken = true;
2023-03-21 16:04:44 +00:00
};
}