mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
49c63e498c
These empty inherits were accidentally introduced by https://github.com/NixOS/nixpkgs/pull/66585
44 lines
967 B
Nix
44 lines
967 B
Nix
{ stdenv, fetchFromGitHub, pkgconfig, go, gobject-introspection,
|
|
libgudev, deepin }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "go-gir-generator";
|
|
version = "2.0.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1ydzll8zlk897iqcihvv6p046p0rzr4qqz2drmz2nx95njp8n03a";
|
|
};
|
|
|
|
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 { name = "${pname}-${version}"; };
|
|
|
|
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 ];
|
|
};
|
|
}
|