diff options
author | tv <tv@krebsco.de> | 2020-09-08 22:19:15 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2020-09-08 22:19:15 +0200 |
commit | f3aac671f823063f225096984ff8644190cf9b91 (patch) | |
tree | c33c4e9d8da1ba419541950f110f4b4dfbf8155b /makefu/5pkgs | |
parent | 6fbbf7e6170f6a1ba42c5dcecd11ca67c6bc5afd (diff) | |
parent | 549598bfd9cf6e94f8bb83ebbcc17400069f1198 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'makefu/5pkgs')
-rw-r--r-- | makefu/5pkgs/hactool/default.nix | 30 | ||||
-rw-r--r-- | makefu/5pkgs/nx_game_info/default.nix | 32 |
2 files changed, 62 insertions, 0 deletions
diff --git a/makefu/5pkgs/hactool/default.nix b/makefu/5pkgs/hactool/default.nix new file mode 100644 index 000000000..0bdaeb4be --- /dev/null +++ b/makefu/5pkgs/hactool/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub +}: +stdenv.mkDerivation rec { + pname = "hactool"; + name = "${pname}-${version}"; + version = "1.4.0"; + + src = fetchFromGitHub { + owner = "SciresM"; + repo = "hactool"; + rev = version; + sha256 = "0305ngsnwm8npzgyhyifasi4l802xnfz19r0kbzzniirmcn4082d"; + }; + preBuild = '' + cp config.mk.template config.mk + ''; + installPhase = '' + install -D hactool $out/bin/hactool + ''; + buildInputs = [ ]; + nativeBuildInputs = [ ]; + + meta = { + description = "tool to view information about, decrypt, and extract common file formats for the Nintendo Switch, especially Nintendo Content Archives"; + homepage = https://github.com/SciresM/hactool; + license = stdenv.lib.licenses.isc; + platforms = stdenv.lib.platforms.linux; + maintainers = with stdenv.lib.maintainers; [ makefu ]; + }; +} 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 ]; + }; +} |