depot/pkgs/by-name/sl/slumber/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

32 lines
831 B
Nix

{
lib,
stdenv,
darwin,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "slumber";
version = "2.1.0";
src = fetchFromGitHub {
owner = "LucasPickering";
repo = "slumber";
rev = "refs/tags/v${version}";
hash = "sha256-W7KvIc6FqM4RUqUsMOzfwBD9kVIFdqPba8dz+Ysg4sY=";
};
cargoHash = "sha256-1PNf7EVr4UibxR1OM04tDr5jreEeFxvKfx6Qe3p6dJQ=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
meta = with lib; {
description = "Terminal-based HTTP/REST client";
homepage = "https://slumber.lucaspickering.me";
changelog = "https://github.com/LucasPickering/slumber/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
mainProgram = "slumber";
maintainers = with maintainers; [ javaes ];
};
}