depot/third_party/nixpkgs/pkgs/desktops/deepin/go-dbus-generator/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

38 lines
803 B
Nix

{ stdenv
, fetchFromGitHub
, go
, go-lib
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-dbus-generator";
version = "5.0.0";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "17rzicqizyyrhjjf4rild7py1cyd07b2zdcd9nabvwn4gvj6lhfb";
};
nativeBuildInputs = [
go
go-lib
];
makeFlags = [
"PREFIX=${placeholder "out"}"
"GOCACHE=$(TMPDIR)/go-cache"
];
passthru.updateScript = deepin.updateScript { inherit pname version src; };
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 ];
};
}