2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
rustPlatform,
|
|
|
|
stdenv,
|
|
|
|
darwin,
|
|
|
|
stu,
|
|
|
|
testers,
|
|
|
|
}:
|
|
|
|
let
|
2024-10-09 16:51:18 +00:00
|
|
|
version = "0.6.4";
|
2024-07-27 06:49:29 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "stu";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lusingander";
|
|
|
|
repo = "stu";
|
|
|
|
rev = "v${version}";
|
2024-10-09 16:51:18 +00:00
|
|
|
hash = "sha256-iLfUJXunQjS/dFB+sTtZRvsxHRMh5o6JYM3eCucEhQA=";
|
2024-07-27 06:49:29 +00:00
|
|
|
};
|
|
|
|
|
2024-10-09 16:51:18 +00:00
|
|
|
cargoHash = "sha256-eja2wE822IckT9pj6TqqKh3NUyUox+VlhGb+lTvCW1Y=";
|
2024-07-27 06:49:29 +00:00
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-07-27 06:49:29 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|