mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
41 lines
945 B
Nix
41 lines
945 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
stdenv,
|
|
darwin,
|
|
stu,
|
|
testers,
|
|
}:
|
|
let
|
|
version = "0.6.2";
|
|
in
|
|
rustPlatform.buildRustPackage {
|
|
pname = "stu";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lusingander";
|
|
repo = "stu";
|
|
rev = "v${version}";
|
|
hash = "sha256-fxVnOftYkl4G6H+jMSy6r/YQgmK15EjKAjdf8MdoaS0=";
|
|
};
|
|
|
|
cargoHash = "sha256-/a91ONvKG6aRFAnHDkpOQQFtfGlO1WahWM9LdPs75iw=";
|
|
|
|
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";
|
|
};
|
|
}
|