nixpkgs/pkgs/desktops/deepin/go-gir-generator/default.nix
volth f3282c8d1e treewide: remove unused variables (#63177)
* treewide: remove unused variables

* making ofborg happy
2019-06-16 19:59:05 +00:00

44 lines
985 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, go, gobject-introspection,
libgudev, deepin }:
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "go-gir-generator";
version = "2.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "0jdhfnwrpp77893zxljr453w23kahqsdpd8a8i5jp6pyvkdm816j";
};
nativeBuildInputs = [
pkgconfig
go
];
buildInputs = [
gobject-introspection
libgudev
];
postPatch = ''
sed -i -e 's:/share/gocode:/share/go:' Makefile
'';
makeFlags = [
"PREFIX=${placeholder ''out''}"
"GOCACHE=$(TMPDIR)/go-cache"
];
passthru.updateScript = deepin.updateScript { inherit name; };
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 ];
};
}