diff --git a/pkgs/desktops/deepin/default.nix b/pkgs/desktops/deepin/default.nix index 019571498ea8..b0d334ff3b49 100644 --- a/pkgs/desktops/deepin/default.nix +++ b/pkgs/desktops/deepin/default.nix @@ -49,6 +49,7 @@ let qcef = callPackage ./qcef { }; qt5dxcb-plugin = callPackage ./qt5dxcb-plugin { }; qt5integration = callPackage ./qt5integration { }; + udisks2-qt5 = callPackage ./udisks2-qt5 { }; }; diff --git a/pkgs/desktops/deepin/udisks2-qt5/default.nix b/pkgs/desktops/deepin/udisks2-qt5/default.nix new file mode 100644 index 000000000000..f4dae7790618 --- /dev/null +++ b/pkgs/desktops/deepin/udisks2-qt5/default.nix @@ -0,0 +1,41 @@ +{ stdenv, fetchFromGitHub, qmake, qtbase, pkgconfig, deepin }: + +stdenv.mkDerivation rec { + name = "${pname}-${version}"; + pname = "udisks2-qt5"; + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "linuxdeepin"; + repo = pname; + rev = version; + sha256 = "1gk4jmq7mrzk181r6man2rz1iyzkfasz7053a30h4nn24mq8ikig"; + }; + + nativeBuildInputs = [ + deepin.setupHook + qmake + ]; + + buildInputs = [ + qtbase + ]; + + postPatch = '' + searchHardCodedPaths + ''; + + postFixup = '' + searchHardCodedPaths $out + ''; + + passthru.updateScript = deepin.updateScript { inherit name; }; + + meta = with stdenv.lib; { + description = "UDisks2 D-Bus interfaces binding for Qt5"; + homepage = https://github.com/linuxdeepin/udisks2-qt5; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ romildo ]; + }; +}