555cd8a8f9
GitOrigin-RevId: 5633bcff0c6162b9e4b5f1264264611e950c8ec7
41 lines
958 B
Nix
41 lines
958 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
stdenv,
|
|
darwin,
|
|
stu,
|
|
testers,
|
|
}:
|
|
let
|
|
version = "0.6.4";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "stu";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lusingander";
|
|
repo = "stu";
|
|
rev = "v${version}";
|
|
hash = "sha256-iLfUJXunQjS/dFB+sTtZRvsxHRMh5o6JYM3eCucEhQA=";
|
|
};
|
|
|
|
cargoHash = "sha256-eja2wE822IckT9pj6TqqKh3NUyUox+VlhGb+lTvCW1Y=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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";
|
|
};
|
|
}
|