indent: fix static build

+5 -2
+5 -2
pkgs/development/tools/misc/indent/default.nix
··· 1 - { lib, stdenv, fetchurl, texinfo }: 1 + { lib, stdenv, fetchurl, texinfo, buildPackages, pkgsStatic }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "indent"; ··· 10 10 }; 11 11 12 12 patches = [ ./darwin.patch ]; 13 + makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ]; 13 14 14 - buildInputs = [ texinfo ]; 15 + nativeBuildInputs = [ texinfo ]; 16 + pkgsBuildBuild = [ buildPackages.stdenv.cc ]; 15 17 16 18 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang 17 19 "-Wno-implicit-function-declaration"; 18 20 19 21 hardeningDisable = [ "format" ]; 20 22 23 + passthru.tests.static = pkgsStatic.indent; 21 24 meta = { 22 25 homepage = "https://www.gnu.org/software/indent/"; 23 26 description = "A source code reformatter";