summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2022-03-28 18:04:33 +0200
committermakefu <github@syntax-fehler.de>2022-03-28 18:05:35 +0200
commit4156d2ed156f1b8304aba7888337173c53998499 (patch)
tree6212a599da84972234280d98eff3557b01ccf637 /makefu/5pkgs
parent581245ed35bde63a8691c5f5a059cc647b2e88ec (diff)
ma pkgs.ns-usbloader: init
Diffstat (limited to 'makefu/5pkgs')
-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..42e12e38e
--- /dev/null
+++ b/makefu/5pkgs/ns-usbloader/default.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchurl, makeWrapper, 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";
+ };
+
+
+ nativeBuildInputs = [ makeWrapper ];
+ 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
+ '';
+
+
+ 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 ];
+ };
+
+}