1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/tools/misc/starship/default.nix

32 lines
981 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform, libiconv, darwin }:
2019-08-16 18:12:52 +01:00
rustPlatform.buildRustPackage rec {
pname = "starship";
2019-12-13 23:00:11 +00:00
version = "0.30.1";
2019-08-16 18:12:52 +01:00
src = fetchFromGitHub {
owner = "starship";
2019-12-03 17:10:30 +00:00
repo = pname;
2019-08-16 18:12:52 +01:00
rev = "v${version}";
2019-12-13 23:00:11 +00:00
sha256 = "19h6ahbqfrq5jfdjqxd7phzh1lanqqvkb1phr4fx6qnn5icj9hlm";
2019-08-16 18:12:52 +01:00
};
2019-09-20 21:20:46 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv darwin.apple_sdk.frameworks.Security ];
2019-08-16 18:12:52 +01:00
postPatch = ''
substituteInPlace src/utils.rs \
--replace "/bin/echo" "echo"
'';
2019-12-13 23:00:11 +00:00
cargoSha256 = "0391l44rqshjz62658mfl58c2npv7k11l4lb4kk9gb3ywdhbjv26";
2019-08-19 17:17:24 +01:00
checkPhase = "cargo test -- --skip directory::home_directory --skip directory::directory_in_root";
2019-08-16 18:12:52 +01:00
meta = with stdenv.lib; {
description = "A minimal, blazing fast, and extremely customizable prompt for any shell";
homepage = "https://starship.rs";
license = licenses.isc;
2019-12-03 17:10:55 +00:00
maintainers = with maintainers; [ bbigras davidtwco filalex77 ];
2019-08-16 18:12:52 +01:00
platforms = platforms.all;
};
}