9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
30 lines
780 B
Nix
30 lines
780 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, pycryptodome, enlighten, zstandard
|
|
, withGUI ? true
|
|
, kivy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nsz";
|
|
version = "4.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nicoboss";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-azmUJ3ofLdNwNeIQL/TuPYE98FZ8yXwbJx3wHCo8lw4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [pycryptodome enlighten zstandard ]
|
|
++ lib.optional withGUI kivy;
|
|
|
|
# do not check, as nsz requires producation keys
|
|
# dumped from a Nintendo Switch.
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/nicoboss/nsz";
|
|
description = "NSZ - Homebrew compatible NSP/XCI compressor/decompressor";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ eyjhb ];
|
|
};
|
|
}
|