tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
indent: fix static build
Dmitry Bogatov
4 years ago
e762e6ab
dc7c6564
+5
-2
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
misc
indent
default.nix
+5
-2
pkgs/development/tools/misc/indent/default.nix
···
1
1
-
{ lib, stdenv, fetchurl, texinfo }:
1
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
13
+
makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ];
13
14
14
14
-
buildInputs = [ texinfo ];
15
15
+
nativeBuildInputs = [ texinfo ];
16
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
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";