2018-10-30 23:17:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, go, go-lib, deepin }:
|
2018-09-08 17:33:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "go-dbus-generator";
|
|
|
|
version = "0.6.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "17rzicqizyyrhjjf4rild7py1cyd07b2zdcd9nabvwn4gvj6lhfb";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
go
|
|
|
|
go-lib
|
|
|
|
];
|
|
|
|
|
|
|
|
makeFlags = [
|
2019-04-01 12:20:52 +02:00
|
|
|
"PREFIX=${placeholder ''out''}"
|
2019-03-10 22:04:04 +01:00
|
|
|
"GOCACHE=$(TMPDIR)/go-cache"
|
2018-09-08 17:33:13 +02:00
|
|
|
];
|
|
|
|
|
2018-10-30 23:17:45 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-09-08 17:33:13 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Convert dbus interfaces to go-lang or qml wrapper code";
|
|
|
|
homepage = https://github.com/linuxdeepin/go-dbus-generator;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|