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

31 lines
777 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 {
name = "${pname}-${version}";
pname = "go-dbus-factory";
version = "0.0.7.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0gj2xxv45gh7wr5ry3mcsi46kdsyq9nbd7znssn34kapiv40ixcx";
};
makeFlags = [ "PREFIX=$(out)" ];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
2018-09-08 17:35:45 +02:00
2018-10-30 23:17:45 +01:00
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}