nixpkgs/pkgs/desktops/deepin/dde-qt-dbus-factory/default.nix
2019-04-02 20:12:34 -03:00

40 lines
989 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, qmake, python3, deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "dde-qt-dbus-factory";
version = "1.1.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "1b2i5m6fzkga72hbl85v2rng3qq53di39p7jj2f119wmlfbyp2vg";
};
nativeBuildInputs = [
qmake
python3
deepin.setupHook
];
postPatch = ''
searchHardCodedPaths
fixPath $out /usr \
libdframeworkdbus/DFrameworkdbusConfig.in \
libdframeworkdbus/libdframeworkdbus.pro
'';
enableParallelBuilding = true;
passthru.updateScript = deepin.updateScript { inherit name; };
meta = with stdenv.lib; {
description = "Qt DBus interface library for Deepin software";
homepage = https://github.com/linuxdeepin/dde-qt-dbus-factory;
license = with licenses; [ gpl3Plus lgpl2Plus ];
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}