From 0ffe48d746323c411361eb9124d957771ed8e545 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 25 Jun 2018 21:00:12 +0200 Subject: pkgs/list-gamecontrollers: Fix build This package has been broken for a long time, because in the meantime (actually quite a while ago, maybe a year even) runCommand no longer includes a C compiler. So let's switch to runCommandCC instead and use "cc" instead of "gcc" to be Clang-compatible. Signed-off-by: aszlig --- pkgs/list-gamecontrollers/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs') diff --git a/pkgs/list-gamecontrollers/default.nix b/pkgs/list-gamecontrollers/default.nix index c207d2eb..15a9e03c 100644 --- a/pkgs/list-gamecontrollers/default.nix +++ b/pkgs/list-gamecontrollers/default.nix @@ -1,10 +1,10 @@ -{ runCommand, pkgconfig, SDL2 }: +{ runCommandCC, pkgconfig, SDL2 }: -runCommand "list-gamecontrollers" { +runCommandCC "list-gamecontrollers" { buildInputs = [ pkgconfig SDL2 ]; } '' mkdir -p "$out/bin" - gcc -Werror "${./list-gc.c}" \ + cc -Werror "${./list-gc.c}" \ $(pkg-config --libs --cflags sdl2) \ -o "$out/bin/list-gamecontrollers" '' -- cgit 1.4.1