depot/third_party/nixpkgs/pkgs/tools/compression/hacpack/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

34 lines
775 B
Nix

{ 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
'';
makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
enableParallelBuilding = true;
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;
mainProgram = "hacpack";
};
}