nixpkgs/pkgs/by-name/ns/nstool/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
765 B
Nix
Raw Normal View History

2024-07-28 18:47:24 +00:00
{
fetchFromGitHub,
lib,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "nstool";
2024-08-21 20:13:06 +00:00
version = "1.9.1";
2024-07-28 18:47:24 +00:00
src = fetchFromGitHub {
owner = "jakcron";
repo = "nstool";
rev = "refs/tags/v${finalAttrs.version}";
2024-08-21 20:13:06 +00:00
hash = "sha256-FF+USFL5Y6MkAKvfR05D/+L/XJSmkiSp9WLbF7Gg2V8=";
2024-07-28 18:47:24 +00:00
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;
};
})