forked from mirrors/gomod2nix
builder: Reformat with nixpkgs-fmt
After porting builder changes from nixpkgs the structure has changed somewhat.
This commit is contained in:
parent
2028c2f3ff
commit
5a8afd711e
1 changed files with 123 additions and 122 deletions
|
@ -225,7 +225,8 @@ let
|
||||||
package =
|
package =
|
||||||
lib.warnIf (buildFlags != "" || buildFlagsArray != "")
|
lib.warnIf (buildFlags != "" || buildFlagsArray != "")
|
||||||
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
|
"Use the `ldflags` and/or `tags` attributes instead of `buildFlags`/`buildFlagsArray`"
|
||||||
stdenv.mkDerivation (lib.optionalAttrs (defaultPackage != "")
|
stdenv.mkDerivation
|
||||||
|
(lib.optionalAttrs (defaultPackage != "")
|
||||||
{
|
{
|
||||||
pname = attrs.pname or baseNameOf defaultPackage;
|
pname = attrs.pname or baseNameOf defaultPackage;
|
||||||
version = stripVersion (modulesStruct.mod.${defaultPackage}).version;
|
version = stripVersion (modulesStruct.mod.${defaultPackage}).version;
|
||||||
|
|
Loading…
Reference in a new issue