2024-06-05 15:53:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
|
|
,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "slumber";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.3.2";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LucasPickering";
|
|
|
|
repo = "slumber";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-aYNsTAqMcoOSRXWclrVR5DWQCTSDHXSQsSJn37yYPY8=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-uSKE8jFLYCEac2PR97VSPBnqllTsXkYZUO0b+xHR/CA=";
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Terminal-based HTTP/REST client";
|
|
|
|
homepage = "https://slumber.lucaspickering.me";
|
|
|
|
license = licenses.mit;
|
|
|
|
mainProgram = "slumber";
|
|
|
|
maintainers = with maintainers; [ javaes ];
|
|
|
|
};
|
|
|
|
}
|