{
  lib,
  fetchFromGitHub,
  rustPlatform,
}:

rustPlatform.buildRustPackage {
  pname = "deploy-rs";
  version = "0-unstable-2024-06-12";

  src = fetchFromGitHub {
    owner = "serokell";
    repo = "deploy-rs";
    rev = "3867348fa92bc892eba5d9ddb2d7a97b9e127a8a";
    hash = "sha256-FaGrf7qwZ99ehPJCAwgvNY5sLCqQ3GDiE/6uLhxxwSY=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-e+Exc0lEamAieZ7QHJBYvmnmM/9YHdLRD3La4U5FRMo=";

  meta = {
    description = "Multi-profile Nix-flake deploy tool";
    homepage = "https://github.com/serokell/deploy-rs";
    license = lib.licenses.mpl20;
    maintainers = with lib.maintainers; [ teutat3s ];
    mainProgram = "deploy";
  };
}
