diff --git a/pkgs/development/tools/nasmfmt/default.nix b/pkgs/development/tools/nasmfmt/default.nix index 0b6aaea05f70..850f0303e825 100644 --- a/pkgs/development/tools/nasmfmt/default.nix +++ b/pkgs/development/tools/nasmfmt/default.nix @@ -1,6 +1,10 @@ -{ lib, buildGoModule, fetchFromGitHub }: +{ + lib, + buildGoModule, + fetchFromGitHub, +}: -buildGoModule rec { +buildGoModule { pname = "nasmfmt"; version = "unstable-2022-09-15"; @@ -14,10 +18,10 @@ buildGoModule rec { vendorHash = null; preBuild = '' - cp ${./go.mod} go.mod + go mod init github.com/yamnikov-oleg/nasmfmt ''; - ldflags = [ "-s" "-w" ]; + ldflags = [ "-s" ]; meta = with lib; { description = "Formatter for NASM source files"; diff --git a/pkgs/development/tools/nasmfmt/go.mod b/pkgs/development/tools/nasmfmt/go.mod deleted file mode 100644 index 0dfb1521c9e5..000000000000 --- a/pkgs/development/tools/nasmfmt/go.mod +++ /dev/null @@ -1,3 +0,0 @@ -module github.com/yamnikov-oleg/nasmfmt - -go 1.18