2018-09-08 17:32:00 +02:00
|
|
|
{ stdenv, fetchFromGitHub, glib, xorg, gdk_pixbuf, pulseaudio,
|
2018-10-30 23:17:45 +01:00
|
|
|
mobile-broadband-provider-info, deepin }:
|
2018-09-08 17:32:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "go-lib";
|
2019-05-04 13:42:00 +02:00
|
|
|
version = "1.10.2";
|
2018-09-08 17:32:00 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-05-04 13:42:00 +02:00
|
|
|
sha256 = "05z7ayl23cm8mbn4vkn3isy5kgwxljc26ifmzrhmnqm5yibd6lsf";
|
2018-09-08 17:32:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
xorg.libX11
|
|
|
|
gdk_pixbuf
|
|
|
|
pulseaudio
|
|
|
|
mobile-broadband-provider-info
|
|
|
|
];
|
|
|
|
|
2018-11-27 18:23:56 +01: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 17:32:00 +02:00
|
|
|
|
2018-10-30 23:17:45 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-09-08 17:32:00 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Go bindings for Deepin Desktop Environment development";
|
|
|
|
homepage = https://github.com/linuxdeepin/go-lib;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|