File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ buildGoModule ,
4+ fetchFromGitHub ,
5+ versionCheckHook ,
6+ } :
7+
8+ buildGoModule ( finalAttrs : {
9+ pname = "mkbrr" ;
10+ version = "1.11.0" ;
11+
12+ src = fetchFromGitHub {
13+ owner = "autobrr" ;
14+ repo = "mkbrr" ;
15+ tag = "v${ finalAttrs . version } " ;
16+ hash = "sha256-NTkZKGoJqy7+f8dIIgLVRUQziD8QkcmoV2jEukXCqmM=" ;
17+ } ;
18+
19+ vendorHash = "sha256-iczdGnJS70Ze5eZ2gnL511Ecy6Qjp+i4I749eIroRCM=" ;
20+
21+ ldflags = [
22+ "-s"
23+ "-w"
24+ "-X main.version=v${ finalAttrs . version } "
25+ "-X main.buildTime=unknown"
26+ ] ;
27+
28+ doCheck = true ;
29+
30+ doInstallCheck = true ;
31+
32+ nativeInstallCheckInputs = [
33+ versionCheckHook
34+ ] ;
35+
36+ versionCheckProgramArg = "version" ;
37+
38+ meta = {
39+ description = "Tool to create, modify and inspect torrent files" ;
40+ homepage = "https://github.com/autobrr/mkbrr" ;
41+ license = lib . licenses . gpl2Plus ;
42+ maintainers = with lib . maintainers ; [ ambroisie ] ;
43+ mainProgram = "mkbrr" ;
44+ } ;
45+ } )
You can’t perform that action at this time.
0 commit comments