diff options
Diffstat (limited to 'pkgs/by-name/sa/sanjuuni/package.nix')
-rw-r--r-- | pkgs/by-name/sa/sanjuuni/package.nix | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/by-name/sa/sanjuuni/package.nix b/pkgs/by-name/sa/sanjuuni/package.nix new file mode 100644 index 0000000000000..d448f5e07132f --- /dev/null +++ b/pkgs/by-name/sa/sanjuuni/package.nix @@ -0,0 +1,49 @@ +{ + lib, + stdenv, + fetchFromGitHub, + pkg-config, + ffmpeg, + poco, + ocl-icd, + opencl-clhpp, +}: + +stdenv.mkDerivation rec { + pname = "sanjuuni"; + version = "0.5"; + + src = fetchFromGitHub { + owner = "MCJack123"; + repo = "sanjuuni"; + rev = version; + sha256 = "sha256-wJRPD4OWOTPiyDr9dYseRA7BI942HPfHONVJGTc/+wU="; + }; + + nativeBuildInputs = [ pkg-config ]; + + buildInputs = [ + ffmpeg + poco + ocl-icd + opencl-clhpp + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 sanjuuni $out/bin/sanjuuni + + runHook postInstall + ''; + + meta = with lib; { + homepage = "https://github.com/MCJack123/sanjuuni"; + description = "Command-line tool that converts images and videos into a format that can be displayed in ComputerCraft"; + changelog = "https://github.com/MCJack123/sanjuuni/releases/tag/${version}"; + maintainers = [ maintainers.tomodachi94 ]; + license = licenses.gpl2Plus; + broken = stdenv.isDarwin; + mainProgram = "sanjuuni"; + }; +} |