starship: patch absolute paths in tests

This commit is contained in:
Oleksii Filonenko 2019-12-03 19:37:29 +02:00
parent 595f97d8f4
commit 069058683f
No known key found for this signature in database
GPG Key ID: F3510FE5691629A1

View File

@ -13,6 +13,11 @@ rustPlatform.buildRustPackage rec {
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
postPatch = ''
substituteInPlace src/utils.rs \
--replace "/bin/echo" "echo"
'';
cargoSha256 = "110ajwgdshakcqxfnqi30yy0miikp2qx86flwfkd78jawfll2krp";
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";