nixpkgs/pkgs/desktops/deepin/go-dbus-generator/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

33 lines
811 B
Nix

{ stdenv, fetchFromGitHub, go, go-lib, deepin }:
stdenv.mkDerivation rec {
pname = "go-dbus-generator";
version = "0.6.6";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "17rzicqizyyrhjjf4rild7py1cyd07b2zdcd9nabvwn4gvj6lhfb";
};
nativeBuildInputs = [
go
go-lib
];
makeFlags = [
"PREFIX=${placeholder ''out''}"
"GOCACHE=$(TMPDIR)/go-cache"
];
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
meta = with stdenv.lib; {
description = "Convert dbus interfaces to go-lang or qml wrapper code";
homepage = https://github.com/linuxdeepin/go-dbus-generator;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}