File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed
pkgs/by-name/si/siketyan-ghr Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ buildPackages ,
5+ fetchFromGitHub ,
6+ installShellFiles ,
7+ pkg-config ,
8+ libgit2 ,
9+ openssl ,
10+ stdenv ,
11+ zlib ,
12+ zstd ,
13+ } :
14+
15+ rustPlatform . buildRustPackage rec {
16+ pname = "ghr" ;
17+ version = "0.4.4" ;
18+
19+ src = fetchFromGitHub {
20+ owner = "siketyan" ;
21+ repo = "ghr" ;
22+ rev = "v${ version } " ;
23+ hash = "sha256-L9+rcdt+MGZSCOJyCE4t/TT6Fjtxvfr9LBJYyRrx208=" ;
24+ } ;
25+
26+ cargoHash = "sha256-HBVMDR+3UB+zWmvZXBph36bajTOAnvVGTGYooJtk9Zg=" ;
27+
28+ nativeBuildInputs = [
29+ installShellFiles
30+ pkg-config
31+ ] ;
32+
33+ buildInputs = [
34+ libgit2
35+ openssl
36+ zlib
37+ zstd
38+ ] ;
39+
40+ postInstall =
41+ let
42+ ghr = "${ stdenv . hostPlatform . emulator buildPackages } $out/bin/ghr" ;
43+ in
44+ lib . optionalString ( stdenv . hostPlatform . emulatorAvailable buildPackages ) ''
45+ installShellCompletion --cmd ghr \
46+ --bash <(${ ghr } shell --completion bash) \
47+ --fish <(${ ghr } shell --completion fish)
48+ '' ;
49+
50+ env = {
51+ OPENSSL_NO_VENDOR = true ;
52+ ZSTD_SYS_USE_PKG_CONFIG = true ;
53+ } ;
54+
55+ meta = with lib ; {
56+ description = "Yet another repository management with auto-attaching profiles" ;
57+ homepage = "https://github.com/siketyan/ghr" ;
58+ license = licenses . mit ;
59+ maintainers = with maintainers ; [ sei40kr ] ;
60+ mainProgram = "ghr" ;
61+ } ;
62+ }
You can’t perform that action at this time.
0 commit comments