summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/ns-usbloader/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-06-07 15:46:12 +0200
committerlassulus <lassulus@lassul.us>2022-06-07 15:46:12 +0200
commitb3786c3a74fce6a742649c37ab2ad1255f5864bf (patch)
treea5453da91d868781b2339722a4e7bf588993ac09 /makefu/5pkgs/ns-usbloader/default.nix
parente6f67aa910f78ecf75f3a47a0794497148c60c2b (diff)
parent53855cd2d0dadb159215c5ed12e6d0be02dca98b (diff)
Merge remote-tracking branch 'gum/22.05'
Diffstat (limited to 'makefu/5pkgs/ns-usbloader/default.nix')
-rw-r--r--makefu/5pkgs/ns-usbloader/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/makefu/5pkgs/ns-usbloader/default.nix b/makefu/5pkgs/ns-usbloader/default.nix
new file mode 100644
index 000000000..b3890d11b
--- /dev/null
+++ b/makefu/5pkgs/ns-usbloader/default.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchurl, makeWrapper, wrapGAppsHook, glib , jre }:
+
+stdenv.mkDerivation rec {
+ name = "ns-usbloader-${version}";
+ version = "5.2";
+
+ src = fetchurl {
+ url = "https://github.com/developersu/ns-usbloader/releases/download/v${version}/ns-usbloader-${version}.jar";
+ sha256 = "06kzshlvqfwcjjddzqqgq13pqa5qjlajpyn6ksqxy5p5hgarj6i6";
+ };
+
+
+ buildInputs = [ jre ];
+
+ dontUnpack = true;
+
+ installPhase = ''
+ runHook preInstall
+ install -D $src $out/ns-usbloader/ns-usbloader.jar
+ makeWrapper ${jre}/bin/java $out/bin/ns-usbloader \
+ --add-flags "-jar $out/ns-usbloader/ns-usbloader.jar"
+ runHook postInstall
+ '';
+ nativeBuildInputs = [ glib wrapGAppsHook makeWrapper ];
+
+
+ meta = with lib; {
+ description = "Awoo Installer and GoldLeaf uploader of the NSPs (and other files), RCM payload injector, application for split/merge files";
+ homepage = https://github.com/developersu/ns-usbloader;
+ maintainers = [ maintainers.makefu ];
+ platforms = platforms.linux;
+ license = with licenses; [ gpl3 ];
+ };
+
+}