nixpkgs/pkgs/by-name/sl/slumber/package.nix
Jan van Esdonk 77b969d2f3
slumber: 1.1.0 -> 1.2.1 (#310994)
Co-authored-by: Jan van Esdonk <jan+dev@vanesdonk.de>
2024-05-12 21:57:02 +00:00

31 lines
716 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}:
rustPlatform.buildRustPackage rec {
pname = "slumber";
version = "1.2.1";
src = fetchFromGitHub {
owner = "LucasPickering";
repo = "slumber";
rev = "v${version}";
hash = "sha256-afceWAmVpY0x3eXXhQ5unXWNvatiEfqGUwf2lRHTYf8=";
};
cargoHash = "sha256-8wleYN0sAgwm0aFsmbwfFw6JEtSYgvKbwkv92LZR5rg=";
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 ];
};
}