nixpkgs-suyu/pkgs/desktops/deepin/go-dbus-factory/default.nix

30 lines
784 B
Nix
Raw Normal View History

2018-10-30 23:17:45 +01:00
{ stdenv, fetchFromGitHub, deepin }:
2018-09-08 17:35:45 +02:00
stdenv.mkDerivation rec {
pname = "go-dbus-factory";
2019-06-22 14:26:34 +02:00
version = "0.9.0";
2018-09-08 17:35:45 +02:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-06-22 14:26:34 +02:00
sha256 = "06fqyad9f50gcjsjkh7929yyaprahdjhnd0dr4gl2797a7wysl3f";
2018-09-08 17:35:45 +02:00
};
makeFlags = [ "PREFIX=${placeholder ''out''}" ];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
2018-09-08 17:35:45 +02:00
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
2018-10-30 23:17:45 +01:00
2018-09-08 17:35:45 +02:00
meta = with stdenv.lib; {
description = "GoLang DBus factory for the Deepin Desktop Environment";
homepage = https://github.com/linuxdeepin/go-dbus-factory;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}