From 8f6f6b4eac40e7d248f575399ab93e1a0211b4dc Mon Sep 17 00:00:00 2001 From: Moritz Sanft <58110325+msanft@users.noreply.github.com> Date: Tue, 9 Jan 2024 12:03:37 +0100 Subject: [PATCH] c-for-go: init at `a1822f0` --- pkgs/by-name/c-/c-for-go/package.nix | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pkgs/by-name/c-/c-for-go/package.nix diff --git a/pkgs/by-name/c-/c-for-go/package.nix b/pkgs/by-name/c-/c-for-go/package.nix new file mode 100644 index 000000000000..96fc36804df2 --- /dev/null +++ b/pkgs/by-name/c-/c-for-go/package.nix @@ -0,0 +1,24 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule { + pname = "c-for-go"; + version = "unstable-2023-09-06"; + + src = fetchFromGitHub { + owner = "xlab"; + repo = "c-for-go"; + # c-for-go is not versioned upstream, so we pin it to a commit hash. + rev = "a1822f0a09c1c6c89fc12aeb691a27b3221c73f3"; + hash = "sha256-P7lrAVyZ6fV63gVvLvsKt14pi32Pr2eVLT2mTdHHdrQ="; + }; + + vendorHash = "sha256-u/GWniw5UQBOtnj3ErdxL80j2Cv6cbMwvP1im3dZ2cM="; + + meta = with lib; { + homepage = "https://github.com/xlab/c-for-go"; + description = "Automatic C-Go Bindings Generator for the Go Programming Language"; + license = licenses.mit; + maintainers = with maintainers; [ msanft ]; + mainProgram = "c-for-go"; + }; +}