diff --git a/default.nix b/default.nix index bad3096..1d92882 100644 --- a/default.nix +++ b/default.nix @@ -20,6 +20,8 @@ rank_photos = pkgs.callPackage ./pkgs/rank_photos { }; JAVMovieScraper = pkgs.callPackage ./pkgs/JAVMovieScraper { }; + av1an = pkgs.callPackage ./pkgs/av1an { }; + janus = pkgs.libsForQt5.callPackage ./pkgs/JanusVR/client { }; radical-native = pkgs.callPackage ./pkgs/radical-native { }; diff --git a/pkgs/av1an/default.nix b/pkgs/av1an/default.nix new file mode 100644 index 0000000..cb527b7 --- /dev/null +++ b/pkgs/av1an/default.nix @@ -0,0 +1,48 @@ +{lib, fetchFromGitHub, python3, python3Packages, ffmpeg-full, libaom }: + +let + scenedetect = python3Packages.buildPythonPackage rec { + pname = "scenedetect"; + version = "0.5.1.1"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "097y3v7rjq75rpzysxksqjhbk8m3g7wn46spc380zjhy3if6nlhn"; + }; + }; + + opencv-python = python3Packages.buildPythonPackage rec { + pname = "opencv-python"; + version = "4.2.0.32"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "19xm24vgfqis0bqrg5fc5jxf5yr1md5y49kb7q3792gihykl6yz2"; + }; + }; + + pythonEnv = python3.withPackages (pythonPackages: [ + pythonPackages.numpy + scenedetect + opencv-python + pythonPackages.tqdm + pythonPackages.psutil + ]); + +in + python3Packages.buildPythonApplication rec { + pname = "av1an"; + version = "1.6"; + + src = fetchFromGitHub { + owner = "master-of-zen"; + repo = "AV1an"; + rev = "${version}"; + sha256 = "19xm24vgfqis0bqrg5fc5jxf5yr1md5y49kb7q3792gihykl6yz3"; + }; + + buildInputs = [ pythonEnv ffmpeg-full libaom ]; + + meta.broken = true; + + }