2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, ffmpeg
|
|
|
|
, poco
|
2023-05-24 13:37:59 +00:00
|
|
|
, ocl-icd
|
|
|
|
, opencl-clhpp
|
2023-01-11 07:51:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sanjuuni";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "0.4";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MCJack123";
|
|
|
|
repo = "sanjuuni";
|
|
|
|
rev = version;
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-wgtyrik4Z5AXd8MHkiMuxMpGh/xcEtNqivyhvL68aac=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ffmpeg
|
|
|
|
poco
|
2023-05-24 13:37:59 +00:00
|
|
|
ocl-icd
|
|
|
|
opencl-clhpp
|
2023-01-11 07:51:40 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 sanjuuni $out/bin/sanjuuni
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/MCJack123/sanjuuni";
|
|
|
|
description = "A command-line tool that converts images and videos into a format that can be displayed in ComputerCraft";
|
2023-02-02 18:25:31 +00:00
|
|
|
changelog = "https://github.com/MCJack123/sanjuuni/releases/tag/${version}";
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = [ maintainers.tomodachi94 ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|