From 66d9d27479d0931ffed9322b3adb37274d4eec4f Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Mon, 19 Sep 2022 13:36:42 -0600 Subject: [PATCH] pkgs/gotosocial: set the gts version strings --- pkgs/gotosocial.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/gotosocial.nix b/pkgs/gotosocial.nix index 0ba12ca..1b59b3f 100644 --- a/pkgs/gotosocial.nix +++ b/pkgs/gotosocial.nix @@ -18,16 +18,18 @@ buildGoModule rec { hash = "sha256-HSpelOS5UMMmxVU6NOAz6iYqtboAY0yTmK7/73RtpME="; }; - #doCheck = false; + ldflags = [ + "-s" + "-w" + "-extldflags '-static'" + "-X 'main.Commit=${version}'" + "-X 'main.Version=${version}'" + ]; - #ldflags = [ "-X github.com/gomods/athens/pkg/build.version=${version}" ]; - - #nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper go ]; + propagatedBuildInputs = [ ffmpeg ]; proxyVendor = false; - #subPackages = [ "cmd/proxy" ]; - vendorSha256 = null; postInstall = ''