From 91cd6660108d3ee1d2c98b70726b2531166d39de Mon Sep 17 00:00:00 2001 From: Vincent Haupert Date: Mon, 15 Nov 2021 13:49:54 +0100 Subject: [PATCH] sgx-sdk: nits --- pkgs/os-specific/linux/sgx-sdk/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/sgx-sdk/default.nix b/pkgs/os-specific/linux/sgx-sdk/default.nix index 28af8a32a646..bb60af622bc4 100644 --- a/pkgs/os-specific/linux/sgx-sdk/default.nix +++ b/pkgs/os-specific/linux/sgx-sdk/default.nix @@ -135,10 +135,9 @@ stdenv.mkDerivation rec { header "Move files created by installer" - mkdir $out + mkdir -p $out/bin pushd $out - mkdir $out/bin mv $installDir/bin/sgx-gdb $out/bin mkdir $out/bin/x64 for file in $installDir/bin/x64/*; do @@ -192,8 +191,7 @@ stdenv.mkDerivation rec { preFixup = '' header "Strip sgxsdk prefix" - for path in "$out/share/bin/environment" "$out/bin/sgx-gdb" - do + for path in "$out/share/bin/environment" "$out/bin/sgx-gdb"; do substituteInPlace $path --replace "$TMPDIR/sgxsdk" "$out" done