Skip to content

Commit 6e6dc77

Browse files
megabasterd: init at 8.22 (#377541)
2 parents 92c0c88 + 2270367 commit 6e6dc77

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
}

0 commit comments

Comments
 (0)