tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
buildGo{Module,Package}: warn if buildFlags is used
zowoq
4 years ago
cb7d80dc
a6e2f2fc
+10
2 changed files
expand all
collapse all
unified
split
pkgs
development
go-modules
generic
default.nix
go-packages
generic
default.nix
+5
pkgs/development/go-modules/generic/default.nix
···
46
46
# Not needed with buildGoModule
47
47
, goPackagePath ? ""
48
48
49
49
+
# needed for buildFlags warning
50
50
+
, buildFlags ? ""
51
51
+
49
52
, ... }@args':
50
53
51
54
with builtins;
···
268
271
};
269
272
});
270
273
in
274
274
+
lib.warnIf (buildFlags != "")
275
275
+
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`"
271
276
package
+5
pkgs/development/go-packages/generic/default.nix
···
43
43
44
44
, CGO_ENABLED ? go.CGO_ENABLED
45
45
46
46
+
# needed for buildFlags warning
47
47
+
, buildFlags ? ""
48
48
+
46
49
, meta ? {}, ... } @ args:
47
50
48
51
···
257
260
} // meta;
258
261
});
259
262
in
263
263
+
lib.warnIf (buildFlags != "")
264
264
+
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`"
260
265
package