depot/third_party/nixpkgs/pkgs/by-name/st/stu/package.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

41 lines
945 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
stdenv,
darwin,
stu,
testers,
}:
let
version = "0.5.1";
in
rustPlatform.buildRustPackage {
pname = "stu";
inherit version;
src = fetchFromGitHub {
owner = "lusingander";
repo = "stu";
rev = "v${version}";
hash = "sha256-JLsUMZDXK89QmHLlGG9i5L+1e/redjk5ff6NiZdNsYo=";
};
cargoHash = "sha256-1sAK+F0Wghz2X78OzYJ3QN+5sdpNQw/pxHof0IoJPQo=";
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";
};
}