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
-
{ lib, stdenv, fetchurl, texinfo }:
2
3
stdenv.mkDerivation rec {
4
pname = "indent";
···
10
};
11
12
patches = [ ./darwin.patch ];
0
13
14
-
buildInputs = [ texinfo ];
0
15
16
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
17
"-Wno-implicit-function-declaration";
18
19
hardeningDisable = [ "format" ];
20
0
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";