mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-02 17:09:09 +03:00
287fce6402
No hashes were changed
14 lines
454 B
Nix
14 lines
454 B
Nix
{ stdenv }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "expand-response-params";
|
|
src = ./expand-response-params.c;
|
|
buildCommand = ''
|
|
# Work around "stdenv-darwin-boot-2 is not allowed to refer to path /nix/store/...-expand-response-params.c"
|
|
cp "$src" expand-response-params.c
|
|
"$CC" -std=c99 -O3 -o "$out" expand-response-params.c
|
|
strip -S $out
|
|
${stdenv.lib.optionalString stdenv.hostPlatform.isLinux "patchelf --shrink-rpath $out"}
|
|
'';
|
|
}
|