mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 13:16:40 +03:00
tty-share: switch to buildGoModule
Also pass the version to the go linker.
This commit is contained in:
parent
bb04f169d0
commit
7f76ac5d6a
@ -1,7 +1,6 @@
|
|||||||
{ lib, buildGoPackage, fetchFromGitHub }:
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
# Upstream has a `./vendor` directory with all deps which we rely upon.
|
buildGoModule rec {
|
||||||
buildGoPackage rec {
|
|
||||||
pname = "tty-share";
|
pname = "tty-share";
|
||||||
version = "2.2.1";
|
version = "2.2.1";
|
||||||
|
|
||||||
@ -12,7 +11,10 @@ buildGoPackage rec {
|
|||||||
sha256 = "sha256-aAqKfi0ZX0UB07yGY6x0HcMspvq4rcJXKHSONxAwMlc=";
|
sha256 = "sha256-aAqKfi0ZX0UB07yGY6x0HcMspvq4rcJXKHSONxAwMlc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
goPackagePath = "github.com/elisescu/tty-share";
|
# Upstream has a `./vendor` directory with all deps which we rely upon.
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://tty-share.com";
|
homepage = "https://tty-share.com";
|
||||||
|
Loading…
Reference in New Issue
Block a user