From 05a9efb7d733ee49db224790e4458f5490cc4792 Mon Sep 17 00:00:00 2001 From: Jan van Esdonk Date: Wed, 1 May 2024 14:41:54 +0700 Subject: [PATCH] slumber: init at 1.0.1 --- pkgs/by-name/sl/slumber/package.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/by-name/sl/slumber/package.nix diff --git a/pkgs/by-name/sl/slumber/package.nix b/pkgs/by-name/sl/slumber/package.nix new file mode 100644 index 000000000000..4a7979e29d58 --- /dev/null +++ b/pkgs/by-name/sl/slumber/package.nix @@ -0,0 +1,25 @@ +{ lib, stdenv, fetchFromGitHub, rustPlatform }: +rustPlatform.buildRustPackage rec { + pname = "slumber"; + version = "1.0.1"; + + # 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}"; + hash = "sha256-FXw3hVVY/f49leo9t+z52+Ti9XGk6UJDtd0VpQDQb/o="; + }; + + cargoHash = "sha256-odLFfq3qjCQUNDauFtlOaKrsYVspAIxAc/pRSEZyIwo="; + + meta = with lib; { + description = "Terminal-based HTTP/REST client"; + homepage = "https://slumber.lucaspickering.me"; + license = licenses.mit; + mainProgram = "slumber"; + maintainers = with maintainers; [ javaes ]; + broken = stdenv.isDarwin || stdenv.isAarch64; + }; +}