File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ fetchFromGitHub ,
4+ rustPlatform ,
5+ stdenv ,
6+ darwin ,
7+ stu ,
8+ testers ,
9+ } :
10+ let
11+ version = "0.4.2" ;
12+ in
13+ rustPlatform . buildRustPackage {
14+ pname = "stu" ;
15+ inherit version ;
16+
17+ src = fetchFromGitHub {
18+ owner = "lusingander" ;
19+ repo = "stu" ;
20+ rev = "v${ version } " ;
21+ hash = "sha256-T5b3aCepUj8COrKReEaK4JeUbR7Sv7022xSCW8k8Iow=" ;
22+ } ;
23+
24+ cargoHash = "sha256-DFG/9bnckqLezbitceLtM3CSnKAcQcZlv39VfbkyM/w=" ;
25+
26+ buildInputs = lib . optionals stdenv . isDarwin [
27+ darwin . apple_sdk . frameworks . AppKit
28+ darwin . apple_sdk . frameworks . CoreGraphics
29+ ] ;
30+
31+ passthru . tests . version = testers . testVersion { package = stu ; } ;
32+
33+ meta = {
34+ description = "Terminal file explorer for S3 buckets" ;
35+ changelog = "https://github.com/lusingander/stu/releases/tag/v${ version } " ;
36+ homepage = "https://lusingander.github.io/stu/" ;
37+ license = lib . licenses . mit ;
38+ maintainers = [ lib . maintainers . Nebucatnetzer ] ;
39+ mainProgram = "stu" ;
40+ } ;
41+ }
You can’t perform that action at this time.
0 commit comments