From 3e616e08748209cea5eadc15e3ec6ba8d40af1fb Mon Sep 17 00:00:00 2001 From: Ivar <41924494+IvarWithoutBones@users.noreply.github.com> Date: Mon, 8 Mar 2021 15:56:57 +0100 Subject: [PATCH] hacpack: init at 1.36 (#115357) --- pkgs/tools/compression/hacpack/default.nix | 30 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/tools/compression/hacpack/default.nix diff --git a/pkgs/tools/compression/hacpack/default.nix b/pkgs/tools/compression/hacpack/default.nix new file mode 100644 index 000000000000..e60d483574bd --- /dev/null +++ b/pkgs/tools/compression/hacpack/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "hacpack"; + version = "1.36"; + + src = fetchFromGitHub { + owner = "The-4n"; + repo = "hacpack"; + rev = "v${version}"; + sha256 = "0d846l36w1n9rxv79fbyhl2zdbqhlgrvk21b9vzr9x77yki89ygs"; + }; + + preConfigure = '' + mv config.mk.template config.mk + ''; + + installPhase = '' + mkdir -p $out/bin + cp ./hacpack $out/bin + ''; + + meta = with lib; { + homepage = "https://github.com/The-4n/hacPack"; + description = "Make and repack Nintendo Switch NCAs/NSPs"; + license = licenses.gpl2Only; + maintainers = [ maintainers.ivar ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ccf6eefa0fe..e46dd575db8c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22915,6 +22915,8 @@ in hamster = callPackage ../applications/misc/hamster { }; + hacpack = callPackage ../tools/compression/hacpack { }; + hashit = callPackage ../tools/misc/hashit { }; hactool = callPackage ../tools/compression/hactool { };