anchor.diff:  , rustPlatform
   , installShellFiles
   , libiconv
  -, libgit2
   , cmake
   , fetchpatch
  -, pkg-config
   , nixosTests
   , Security
   , Foundation
  
positive.code:       --zsh <($out/bin/starship completions zsh)
    '';
  
    cargoPatches = [
      # Bump chrono dependency to fix panic when no timezone
      (fetchpatch {
        url = "https://github.com/starship/starship/commit/e652e8643310c3b41ce19ad05b8168abc29bb683.patch";
        sha256 = "sha256-iGYLJuptPMc45E7o+GXjIx7y2PxuO1mGM7xSopDBve0=";
      })
    ];
  
    cargoSha256 = "sha256-w7UCExSkgEY52D98SSe2EkuiwtjM6t0/uTiafrtEBaU=";
  
    preCheck = ''
      HOME=$TMPDIR
  
negative.code: 
  rustPlatform.buildRustPackage rec {
    pname = "starship";
    version = "1.10.1";
  
    src = fetchFromGitHub {
      owner = "starship";
      repo = pname;
      rev = "v${version}";
      sha256 = "sha256-ujv2lqhzsug9Qpco+4doMGH+0yG5cZZzLmSLr0MBmZk=";
    };
  
    nativeBuildInputs = [ installShellFiles cmake ];
  
    buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security Foundation Cocoa ];
  
    buildNoDefaultFeatures = true;
    # the "notify" feature is currently broken on darwin
  