You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
521 B
20 lines
521 B
7 years ago
|
{ stdenv }:
|
||
|
|
||
|
stdenv.mkDerivation {
|
||
|
name = "expand-response-params";
|
||
|
src = ./expand-response-params.c;
|
||
7 years ago
|
# Work around "stdenv-darwin-boot-2 is not allowed to refer to path
|
||
|
# /nix/store/...-expand-response-params.c"
|
||
|
unpackPhase = ''
|
||
7 years ago
|
cp "$src" expand-response-params.c
|
||
7 years ago
|
src=$PWD
|
||
|
'';
|
||
|
buildPhase = ''
|
||
3 years ago
|
NIX_CC_USE_RESPONSE_FILE=0 "$CC" -std=c99 -O3 -o "expand-response-params" expand-response-params.c
|
||
7 years ago
|
'';
|
||
|
installPhase = ''
|
||
|
mkdir -p $prefix/bin
|
||
|
mv expand-response-params $prefix/bin/
|
||
7 years ago
|
'';
|
||
|
}
|