mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
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:
parent
7a4b2649f0
commit
ca419fa755
|
@ -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
|
Loading…
Reference in a new issue