Skip to content

Commit

Permalink
Merge pull request #60 from Banh-Canh/fix-ldflags-nixbuild
Browse files Browse the repository at this point in the history
fix 🐛(nixbuild): fix ldflags
  • Loading branch information
muandane authored Jul 15, 2024
2 parents 6a79fcb + 9b1e9f6 commit 4fed271
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
lib,
pkgs,
}:
{ lib, pkgs, }:
pkgs.buildGoModule rec {
pname = "goji";
version = "0.1.2";
Expand All @@ -16,18 +13,16 @@ pkgs.buildGoModule rec {

vendorHash = "sha256-YKnIAviOlLVHaD3lQKhrDlLW1f0cEjY0Az4RyuNWmzg=";

subPackages = ["."];
subPackages = [ "." ];

ldflags = [
"-s"
"-w"
"-X goji/cmd.version=${version}"
];
ldflags = [ "-s" "-w" "-X github.com/muandane/goji/cmd.version=${version}" ];

meta = with lib; {
homepage = "https://github.com/muandane/goji";
description = " Commitizen-like Emoji Commit Tool written in Go (think cz-emoji and other commitizen adapters but in go) 🚀 ";
changelog = "https://github.com/muandane/goji/blob/v${version}/CHANGELOG.md";
description =
" Commitizen-like Emoji Commit Tool written in Go (think cz-emoji and other commitizen adapters but in go) 🚀 ";
changelog =
"https://github.com/muandane/goji/blob/v${version}/CHANGELOG.md";
license = "Apache 2.0 license Zine El Abidine Moualhi";
mainProgram = "goji";
};
Expand Down

0 comments on commit 4fed271

Please sign in to comment.