depot/third_party/nixpkgs/pkgs/desktops/deepin/go-lib/default.nix
Default email 4fc29cb41f Project import generated by Copybara.
GitOrigin-RevId: 135073a87b7e2c631739f4ffa016e1859b1a425e
2020-05-29 08:06:01 +02:00

46 lines
995 B
Nix

{ stdenv
, fetchFromGitHub
, glib
, xorg
, gdk-pixbuf
, pulseaudio
, mobile-broadband-provider-info
, deepin
}:
stdenv.mkDerivation rec {
pname = "go-lib";
version = "5.4.5";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "021sq7nzvfwsa5ccsb3vdjk53m7cf693xm4wkdkrkf8pja6vz94q";
};
buildInputs = [
glib
xorg.libX11
gdk-pixbuf
pulseaudio
mobile-broadband-provider-info
];
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
'';
passthru.updateScript = deepin.updateScript { inherit pname version src; };
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 ];
};
}