indent: fix static build

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