Skip to content

Commit

Permalink
fix: ldflags
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Apr 2, 2023
1 parent 51e7707 commit 68b7ed8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
discord-applemusic-rich-presence =
pkgs.callPackage ./pkgs/discord-applemusic-rich-presence { };
fork-cleaner = pkgs.callPackage ./pkgs/fork-cleaner { };
jsonfmt = pkgs.callPackage ./pkgs/jsonfmt { };
svu = pkgs.callPackage ./pkgs/svu { };

# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
Expand Down
3 changes: 3 additions & 0 deletions pkgs/discord-applemusic-rich-presence/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ buildGoModule rec {

vendorSha256 = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo=";

ldflags =
[ "-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs" ];

meta = with lib; {
description = "Discord's Rich Presence from Apple Music";
homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence";
Expand Down
7 changes: 5 additions & 2 deletions pkgs/fork-cleaner/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ buildGoModule rec {
owner = "caarlos0";
repo = "fork-cleaner";
rev = "v${version}";
sha256 = "";
sha256 = "2vcxbKJsmLSW4GzXEOFE3w7sW4P9vyzr4yBr+eG+R2I=";
};

vendorSha256 = "";
vendorSha256 = "sha256-+2lBn+QTQmJUwIlWkxeY2PkyKsUEfWNUWhdDVjGJun0=";

ldflags =
[ "-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs" ];

meta = with lib; {
description = "Quickly clean up unused forks on your github account.";
Expand Down

0 comments on commit 68b7ed8

Please sign in to comment.