depot/third_party/nixpkgs/pkgs/by-name/st/stu/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

41 lines
958 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
darwin,
stu,
testers,
}:
let
version = "0.6.3";
in
rustPlatform.buildRustPackage {
pname = "stu";
inherit version;
src = fetchFromGitHub {
owner = "lusingander";
repo = "stu";
rev = "v${version}";
hash = "sha256-+hncQQSCYpVuRBQSHMNsfD89K+vL1LUJrCqrBIaRW1E=";
};
cargoHash = "sha256-tWgUVe8VLmEfroF4O3YfzU9yPerpKizuICWeSzsbV38=";
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";
};
}