nasmfmt: remove vendored go.mod
We can use go mod init instead, as the project has no dependencies. Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
module github.com/yamnikov-oleg/nasmfmt
|
||||
|
||||
go 1.18
|
||||
Reference in New Issue
Block a user