nixpkgs/pkgs/by-name/ns/nstool/package.nix
2024-08-21 20:13:06 +00:00

37 lines
765 B
Nix

{
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nstool";
version = "1.9.1";
src = fetchFromGitHub {
owner = "jakcron";
repo = "nstool";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-FF+USFL5Y6MkAKvfR05D/+L/XJSmkiSp9WLbF7Gg2V8=";
fetchSubmodules = true;
};
preBuild = ''
make deps
'';
installPhase = ''
mkdir -p $out/bin
cp -v bin/nstool $out/bin
'';
meta = {
description = "General purpose reading/extraction tool for Nintendo Switch file formats";
homepage = "https://github.com/jakcron/nstool";
license = lib.licenses.mit;
mainProgram = "nstool";
maintainers = with lib.maintainers; [ diadatp ];
platforms = lib.platforms.unix;
};
})