2021-03-08 15:56:57 +01:00
|
|
|
{ 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
|
|
|
|
'';
|
|
|
|
|
2021-10-19 11:26:01 +02:00
|
|
|
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-03-08 15:56:57 +01:00
|
|
|
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;
|
2023-11-23 03:51:17 +01:00
|
|
|
mainProgram = "hacpack";
|
2021-03-08 15:56:57 +01:00
|
|
|
};
|
|
|
|
}
|