File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
pkgs/by-name/me/megabasterd Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ fetchFromGitHub ,
4+ jre ,
5+ makeWrapper ,
6+ maven ,
7+ } :
8+ let
9+ version = "8.22" ;
10+ in
11+ maven . buildMavenPackage {
12+ pname = "megabasterd" ;
13+ inherit version ;
14+
15+ src = fetchFromGitHub {
16+ owner = "tonikelope" ;
17+ repo = "megabasterd" ;
18+ tag = "v${ version } " ;
19+ hash = "sha256-dkxIbQCnOnZ3tbqijqlRhEtEJ4q1ksot5n0gJ7HvsgI=" ;
20+ } ;
21+
22+ mvnHash = "sha256-b7+17CXmBB65fMG472FPjOvr+9nAsUurdBC/7esalCE=" ;
23+
24+ nativeBuildInputs = [ makeWrapper ] ;
25+
26+ installPhase = ''
27+ runHook preInstall
28+
29+ jar_filename=MegaBasterd-${ version } -jar-with-dependencies.jar
30+
31+ mkdir -p $out/bin $out/share/megabasterd
32+ install -Dm644 target/$jar_filename $out/share/megabasterd
33+
34+ makeWrapper ${ jre } /bin/java $out/bin/megabasterd \
35+ --add-flags "-jar $out/share/megabasterd/$jar_filename"
36+
37+ runHook postInstall
38+ '' ;
39+
40+ meta = {
41+ description = "Yet another unofficial (and ugly) cross-platform MEGA downloader/uploader/streaming suite" ;
42+ homepage = "https://github.com/tonikelope/megabasterd" ;
43+ changelog = "https://github.com/tonikelope/megabasterd/releases" ;
44+ license = lib . licenses . gpl3Plus ;
45+ maintainers = with lib . maintainers ; [ theobori ] ;
46+ mainProgram = "megabasterd" ;
47+ } ;
48+ }
You can’t perform that action at this time.
0 commit comments