2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, go
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gox";
|
2020-05-03 17:38:23 +00:00
|
|
|
version = "1.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mitchellh";
|
|
|
|
repo = "gox";
|
2020-05-03 17:38:23 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0mkh81hd7kn45dz7b6yhzqsg2mvg1g6pwx89jjigxrnqhyg9vrl7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = null;
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
# This is required for wrapProgram.
|
|
|
|
allowGoReference = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/gox --prefix PATH : ${lib.makeBinPath [ go ]}
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/mitchellh/gox";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Dead simple, no frills Go cross compile tool";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gox";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mpl20;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ azahi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|