2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
2024-09-19 14:19:46 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "slumber";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.0.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LucasPickering";
|
|
|
|
repo = "slumber";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-TfJAVXJssnKj/RREetFBWgJcGNdpCTF7KUu3CrigF08=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-jLBid9MDQ2eMhG0knxU1gxbi+eRFlCPYRkzWnjCnyG0=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal-based HTTP/REST client";
|
|
|
|
homepage = "https://slumber.lucaspickering.me";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/LucasPickering/slumber/blob/v${version}/CHANGELOG.md";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "slumber";
|
|
|
|
maintainers = with maintainers; [ javaes ];
|
|
|
|
};
|
|
|
|
}
|