1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

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";