blob: 64fb82e1ea06993f09081fd596ee7e5bf184d203 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodome,
pythonOlder,
enlighten,
zstandard,
withGUI ? true,
kivy,
}:
buildPythonPackage rec {
pname = "nsz";
version = "4.6.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "nicoboss";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-ch4HzQFa95o3HMsi7R0LpPWmhN/Z9EYfrmCdUZLwPSE=";
};
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 = "Homebrew compatible NSP/XCI compressor/decompressor";
mainProgram = "nsz";
changelog = "https://github.com/nicoboss/nsz/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ eyjhb ];
};
}
|