summary refs log tree commit diff
path: root/pkgs/build-support/expand-response-params/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-08-23 16:39:15 -0400
committerJohn Ericson <Ericson2314@Yahoo.com>2017-08-25 15:10:02 -0400
commita470be5a16e54ebdda7d1e61ca1e74f82aed3199 (patch)
treea1b442629361e3c18f94743a33017d219a4b1d68 /pkgs/build-support/expand-response-params/default.nix
parent287fce6402100c40317233de6b4f749f2b79b0a5 (diff)
downloadnixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar.gz
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar.bz2
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar.lz
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar.xz
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.tar.zst
nixpkgs-a470be5a16e54ebdda7d1e61ca1e74f82aed3199.zip
expand-response-params: Build more normally
Diffstat (limited to 'pkgs/build-support/expand-response-params/default.nix')
-rw-r--r--pkgs/build-support/expand-response-params/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/pkgs/build-support/expand-response-params/default.nix b/pkgs/build-support/expand-response-params/default.nix
index 7afbb727fc3..2a4bee74197 100644
--- a/pkgs/build-support/expand-response-params/default.nix
+++ b/pkgs/build-support/expand-response-params/default.nix
@@ -3,11 +3,17 @@
 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"
+  # Work around "stdenv-darwin-boot-2 is not allowed to refer to path
+  # /nix/store/...-expand-response-params.c"
+  unpackPhase = ''
     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"}
+    src=$PWD
+  '';
+  buildPhase = ''
+    "$CC" -std=c99 -O3 -o "expand-response-params" expand-response-params.c
+  '';
+  installPhase = ''
+    mkdir -p $prefix/bin
+    mv expand-response-params $prefix/bin/
   '';
 }