diff options
author | aszlig <aszlig@nix.build> | 2018-06-25 21:00:12 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-06-28 03:41:58 +0200 |
commit | 0ffe48d746323c411361eb9124d957771ed8e545 (patch) | |
tree | 585833d549678493878f3a201ed752e1c7f29211 /pkgs/list-gamecontrollers | |
parent | a3991437568789694d3e890f0d78b4daf4d77334 (diff) |
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 <aszlig@nix.build>
Diffstat (limited to 'pkgs/list-gamecontrollers')
-rw-r--r-- | pkgs/list-gamecontrollers/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
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" '' |