2020-05-03 22:52:19 +03:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, glib
|
|
|
|
, xorg
|
|
|
|
, gdk-pixbuf
|
|
|
|
, pulseaudio
|
|
|
|
, mobile-broadband-provider-info
|
|
|
|
, deepin
|
|
|
|
}:
|
2018-09-08 18:32:00 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "go-lib";
|
2019-11-12 04:08:40 +03:00
|
|
|
version = "5.0.0";
|
2018-09-08 18:32:00 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-11-12 04:08:40 +03:00
|
|
|
sha256 = "0j1ik5hfrysqgync8cyv815cwyjn67k8n69x6llxdp39jli1k8q0";
|
2018-09-08 18:32:00 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
xorg.libX11
|
2019-05-22 14:03:39 +03:00
|
|
|
gdk-pixbuf
|
2018-09-08 18:32:00 +03:00
|
|
|
pulseaudio
|
|
|
|
mobile-broadband-provider-info
|
|
|
|
];
|
|
|
|
|
2018-11-27 20:23:56 +03:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/go/src/pkg.deepin.io/lib
|
|
|
|
cp -a * $out/share/go/src/pkg.deepin.io/lib
|
|
|
|
|
|
|
|
rm -r $out/share/go/src/pkg.deepin.io/lib/debian
|
|
|
|
'';
|
2018-09-08 18:32:00 +03:00
|
|
|
|
2019-12-04 12:20:00 +03:00
|
|
|
passthru.updateScript = deepin.updateScript { name = "${pname}-${version}"; };
|
2018-10-31 01:17:45 +03:00
|
|
|
|
2018-09-08 18:32:00 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Go bindings for Deepin Desktop Environment development";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/linuxdeepin/go-lib";
|
2018-09-08 18:32:00 +03:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|