nixpkgs/pkgs/desktops/deepin/go-lib/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

40 lines
1001 B
Nix

{ stdenv, fetchFromGitHub, glib, xorg, gdk-pixbuf, pulseaudio,
mobile-broadband-provider-info, deepin }:
stdenv.mkDerivation rec {
pname = "go-lib";
version = "1.10.2";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "05z7ayl23cm8mbn4vkn3isy5kgwxljc26ifmzrhmnqm5yibd6lsf";
};
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 ;name = "${pname}-${version}"; };
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 ];
};
}