summaryrefslogtreecommitdiffstats
path: root/makefu/5pkgs/nx_game_info
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2020-08-19 21:16:14 +0200
committerlassulus <lassulus@lassul.us>2020-08-19 21:16:14 +0200
commit6538131f91ce9dbedc8efaa6c1d6196ad5b0f3d6 (patch)
tree3ec0ff96e88b2d212e8e3c9566b66b23154fc03d /makefu/5pkgs/nx_game_info
parent03939b14e1d5820bee8c43d63b34c6e3e0e5eac4 (diff)
parent1d78ac0d6a78048903cc159b82ec6b405b7e16ab (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'makefu/5pkgs/nx_game_info')
-rw-r--r--makefu/5pkgs/nx_game_info/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/makefu/5pkgs/nx_game_info/default.nix b/makefu/5pkgs/nx_game_info/default.nix
new file mode 100644
index 000000000..89880d59c
--- /dev/null
+++ b/makefu/5pkgs/nx_game_info/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchurl , mono , unzip
+}:
+stdenv.mkDerivation rec {
+ pname = "NX_Game_Info";
+ name = "${pname}-${version}";
+ version = "0.7.1";
+
+ src = fetchurl {
+ url = "https://github.com/garoxas/NX_Game_Info/releases/download/v${version}/NX.Game.Info_${version}_cli.zip";
+ sha256 = "179hkgraydm5hg5fcs1xwh07cx7rbcfwklfak83f0sl1pbya542h";
+ };
+
+ sourceRoot = ".";
+ buildInputs = [ unzip ];
+ buildPhase = ":";
+ installPhase = ''
+ mkdir -p $out/{bin,lib}
+ cp * $out/lib/
+ cat > $out/bin/nxgameinfo_cli <<EOF
+ ${mono}/bin/mono $out/lib/nxgameinfo_cli.exe "\$@"
+ EOF
+ chmod +x $out/bin/nxgameinfo_cli
+ '';
+
+ meta = {
+ description = "Tool to read information from Nintendo Switch game files";
+ homepage = https://github.com/garoxas/NX_Game_Info;
+ license = stdenv.lib.licenses.gpl3;
+ platforms = stdenv.lib.platforms.linux;
+ maintainers = with stdenv.lib.maintainers; [ makefu ];
+ };
+}