Merge pull request #314539 from Nebucatnetzer/stu

stu: init at 0.4.2
This commit is contained in:
Aleksana 2024-07-06 19:28:40 +08:00 committed by GitHub
commit 2675fc3221
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,41 @@
{
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
darwin,
stu,
testers,
}:
let
version = "0.4.2";
in
rustPlatform.buildRustPackage {
pname = "stu";
inherit version;
src = fetchFromGitHub {
owner = "lusingander";
repo = "stu";
rev = "v${version}";
hash = "sha256-T5b3aCepUj8COrKReEaK4JeUbR7Sv7022xSCW8k8Iow=";
};
cargoHash = "sha256-DFG/9bnckqLezbitceLtM3CSnKAcQcZlv39VfbkyM/w=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.CoreGraphics
];
passthru.tests.version = testers.testVersion { package = stu; };
meta = {
description = "Terminal file explorer for S3 buckets";
changelog = "https://github.com/lusingander/stu/releases/tag/v${version}";
homepage = "https://lusingander.github.io/stu/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.Nebucatnetzer ];
mainProgram = "stu";
};
}