From 788c8a630a3bb67da70e4a6b6cec3db212495727 Mon Sep 17 00:00:00 2001 From: rewine Date: Fri, 31 Mar 2023 17:22:25 +0800 Subject: [PATCH] deepin.util-dfm: init at 1.2.7 --- pkgs/desktops/deepin/default.nix | 1 + .../deepin/library/util-dfm/default.nix | 62 +++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 pkgs/desktops/deepin/library/util-dfm/default.nix diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index f9bbf7df5eb7..59d7716fe7c2 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -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 { }; diff --git a/pkgs/desktops/deepin/library/util-dfm/default.nix b/pkgs/desktops/deepin/library/util-dfm/default.nix new file mode 100644 index 000000000000..5d45977246c3 --- /dev/null +++ b/pkgs/desktops/deepin/library/util-dfm/default.nix @@ -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; + }; +}