3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/go-modules
Silvan Mosberger 155ae682a5 buildGoModule/buildGoPackage: Introduce ldflags argument
Previously it was not possible to define multiple ldflags, since only
the last definition applies, and there's some quoting issues with
`buildFlagsArray`. With the new `ldflags` argument it's possible to do
this, e.g.

    ldflags = drv.ldflags or [] ++ [
      "-X main.Version=1.0"
    ]

can now properly append a flag without clearing all previous ldflags.
2021-06-05 09:54:36 +10:00
..
generic buildGoModule/buildGoPackage: Introduce ldflags argument 2021-06-05 09:54:36 +10:00
tools