summary refs log tree commit diff
path: root/pkgs/desktops/deepin/dbus-factory/default.nix
blob: 66d28cbcaf3eccc1863c82f1d09a8cba2f5f82b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, jq, libxml2, go-dbus-generator }:

stdenv.mkDerivation rec {
  name = "${pname}-${version}";
  pname = "dbus-factory";
  version = "3.1.17";

  src = fetchFromGitHub {
    owner = "linuxdeepin";
    repo = pname;
    rev = version;
    sha256 = "1llq8wzgikgpzj7z36fyzk8kjych2h9nzi3x6zv53z0xc1xn4256";
  };

  nativeBuildInputs = [
    jq
    libxml2
    go-dbus-generator
  ];

  makeFlags = [ "GOPATH=$(out)/share/gocode" ];

  meta = with stdenv.lib; {
    description = "Generates static DBus bindings for Golang and QML at build-time";
    homepage = https://github.com/linuxdeepin/dbus-factory;
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ romildo ];
  };
}