summaryrefslogtreecommitdiffstats
path: root/pkgs/tools/X11/xkbvalidate
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2019-08-14 23:57:20 +0200
committeraszlig <aszlig@nix.build>2019-08-14 23:57:20 +0200
commit77e8a12755632d62ef25541e3622f478edaa28c6 (patch)
tree8ea81610c5a65fce57f3902011d33cb3ea61e791 /pkgs/tools/X11/xkbvalidate
parent3e78331d96a91681c93f8ffe81975ed9339dbe81 (diff)
xkbvalidate: Use $CC instead of hardcoded gcc
I initially didn't use $CC because I thought this would be GCC specific, but it turns out that Clang actually accepts -std=gnu11. So using $CC here might not work on compilers other than Clang or GCC, but at the moment those are the compilers we typically use in nixpkgs, so even if we'd use some other compiler it *might* even work there. I've tested this by compiling against clangStdenv with both $CC and clang hardcoded and it works. This was reported by @dkudriavtsev on IRC. Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/tools/X11/xkbvalidate')
-rw-r--r--pkgs/tools/X11/xkbvalidate/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/X11/xkbvalidate/default.nix b/pkgs/tools/X11/xkbvalidate/default.nix
index f5a264108359..c4aec30e7241 100644
--- a/pkgs/tools/X11/xkbvalidate/default.nix
+++ b/pkgs/tools/X11/xkbvalidate/default.nix
@@ -10,6 +10,6 @@ runCommandCC "xkbvalidate" {
};
} ''
mkdir -p "$out/bin"
- gcc -std=gnu11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
+ $CC -std=gnu11 -Wall -pedantic -lxkbcommon ${./xkbvalidate.c} \
-o "$out/bin/validate"
''