nixpkgs/pkgs/by-name/sl/slumber/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
844 B
Nix
Raw Normal View History

2024-05-07 18:25:08 +03:00
{
lib,
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
}:
2024-05-01 10:41:54 +03:00
rustPlatform.buildRustPackage rec {
pname = "slumber";
2024-05-05 17:47:41 +03:00
version = "1.1.0";
2024-05-01 10:41:54 +03:00
# This release tarball includes source code for the tree-sitter grammars,
# which is not ordinarily part of the repository.
src = fetchFromGitHub {
owner = "LucasPickering";
repo = "slumber";
rev = "v${version}";
2024-05-05 17:47:41 +03:00
hash = "sha256-398XqowI3zEgiU1XolLj3q1m4foC6aGGL+B3Q4plbTw=";
2024-05-01 10:41:54 +03:00
};
2024-05-05 17:47:41 +03:00
cargoHash = "sha256-AK/+1tCdvNucIbxwyqOt/TbOaJPVDOKFEx5NqW2Yd4U=";
2024-05-01 10:41:54 +03:00
2024-05-07 18:25:08 +03:00
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AppKit ];
2024-05-01 10:41:54 +03:00
meta = with lib; {
description = "Terminal-based HTTP/REST client";
homepage = "https://slumber.lucaspickering.me";
license = licenses.mit;
mainProgram = "slumber";
maintainers = with maintainers; [ javaes ];
};
}