2020-05-03 21:52:19 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, jq
|
|
|
|
, libxml2
|
|
|
|
, go-dbus-generator
|
|
|
|
, deepin
|
|
|
|
}:
|
2018-09-08 17:36:43 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dbus-factory";
|
|
|
|
version = "3.1.17";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1llq8wzgikgpzj7z36fyzk8kjych2h9nzi3x6zv53z0xc1xn4256";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
jq
|
|
|
|
libxml2
|
|
|
|
go-dbus-generator
|
|
|
|
];
|
|
|
|
|
2020-05-03 21:52:19 +02:00
|
|
|
makeFlags = [
|
|
|
|
"GOPATH=${placeholder "out"}/share/go"
|
|
|
|
];
|
2018-10-21 23:42:39 +02:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's:/share/gocode:/share/go:' Makefile
|
|
|
|
'';
|
2018-09-08 17:36:43 +02:00
|
|
|
|
2020-05-03 22:03:55 +02:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit pname version src; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
2018-09-08 17:36:43 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Generates static DBus bindings for Golang and QML at build-time";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/linuxdeepin/dbus-factory";
|
2018-09-08 17:36:43 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|