3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/deepin/go-gir-generator/default.nix

45 lines
985 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, pkgconfig, go, gobject-introspection,
libgudev, deepin }:
2018-09-08 16:30:30 +01:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "go-gir-generator";
version = "2.0.2";
2018-09-08 16:30:30 +01:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "1ydzll8zlk897iqcihvv6p046p0rzr4qqz2drmz2nx95njp8n03a";
2018-09-08 16:30:30 +01:00
};
nativeBuildInputs = [
pkgconfig
go
];
buildInputs = [
gobject-introspection
2018-09-08 16:30:30 +01:00
libgudev
];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
2018-09-08 16:30:30 +01:00
makeFlags = [
"PREFIX=${placeholder ''out''}"
"GOCACHE=$(TMPDIR)/go-cache"
2018-09-08 16:30:30 +01:00
];
2018-10-30 22:17:45 +00:00
passthru.updateScript = deepin.updateScript { inherit name; };
2018-09-08 16:30:30 +01:00
meta = with stdenv.lib; {
description = "Generate static golang bindings for GObject";
homepage = https://github.com/linuxdeepin/go-gir-generator;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ romildo ];
};
}