builder: Reformat with nixpkgs-fmt

After porting builder changes from nixpkgs the structure has changed somewhat.
This commit is contained in:
adisbladis 2022-06-14 19:13:11 +08:00
parent 2028c2f3ff
commit 5a8afd711e

View file

@ -225,7 +225,8 @@ let
package =
lib.warnIf (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;
version = stripVersion (modulesStruct.mod.${defaultPackage}).version;