deepin.util-dfm: init at 1.2.7

This commit is contained in:
rewine 2023-03-31 17:22:25 +08:00
parent b2d62bc725
commit 788c8a630a
No known key found for this signature in database
GPG key ID: B00A7D2932F72756
2 changed files with 63 additions and 0 deletions

View file

@ -28,6 +28,7 @@ let
gio-qt = callPackage ./library/gio-qt { };
image-editor = callPackage ./library/image-editor { };
udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
util-dfm = callPackage ./library/util-dfm { };
#### CORE
dde-calendar = callPackage ./core/dde-calendar { };

View file

@ -0,0 +1,62 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, qtbase
, libmediainfo
, libsecret
, libisoburn
, libuuid
, udisks
}:
stdenv.mkDerivation rec {
pname = "util-dfm";
version = "1.2.7";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-+qqirRkvVyKvt+Pu/ghQjMe+O6a7/7IoJL8AWL4QlvE=";
};
patches = [
(fetchpatch {
name = "fix: use pkgconfig to check mount";
url = "https://github.com/linuxdeepin/util-dfm/commit/fb8425a8c13f16e86db38ff84f43347fdc8ea468.diff";
sha256 = "sha256-PGSRfnQ1MGmq0V3NBCoMk4p/T2x19VA04u9C+WcBKow=";
})
];
nativeBuildInputs = [
cmake
pkg-config
];
dontWrapQtApps = true;
buildInputs = [
qtbase
libmediainfo
libsecret
libuuid
libisoburn
udisks
];
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DPROJECT_VERSION=${version}"
];
meta = with lib; {
description = "A Toolkits of libdfm-io,libdfm-mount and libdfm-burn";
homepage = "https://github.com/linuxdeepin/util-dfm";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}