diff --git a/flake.nix b/flake.nix index e9d7970..100ac8a 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,8 @@ pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { }; }; + nsz = callPythonPackage ./nsz { }; + oha = callPackage ./oha { }; snownews = callPackage ./snownews { }; @@ -79,6 +81,7 @@ cyanrip deemix face_morpher + nsz oha snownews textidote diff --git a/nsz/default.nix b/nsz/default.nix new file mode 100644 index 0000000..5248357 --- /dev/null +++ b/nsz/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pycryptodome +, zstandard +, enlighten +}: + +buildPythonPackage rec { + pname = "nsz"; + version = "4.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gckszvkjklrslidpfidbzcigpwwj4s0chrnrg16wvh3r93aiaci"; + }; + + propagatedBuildInputs = [ + pycryptodome + zstandard + enlighten + ]; + + doCheck = false; # requires keys + + meta = with lib; { + description = "A homebrew compatible NSP/XCI compressor/decompressor"; + homepage = "https://github.com/nicoboss/nsz"; + license = licenses.mit; + maintainers = with maintainers; [ sbruder ]; + platforms = platforms.all; + }; +}