2022-12-31 19:04:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, ffmpeg
|
|
|
|
, poco
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sanjuuni";
|
2023-02-02 00:03:05 +00:00
|
|
|
version = "0.3";
|
2022-12-31 19:04:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MCJack123";
|
|
|
|
repo = "sanjuuni";
|
|
|
|
rev = version;
|
2023-02-02 00:03:05 +00:00
|
|
|
sha256 = "sha256-8IbdLXWUtT2VN6Eu1b8x4DnyI8JOd/12t0XDa6o3N+A=";
|
2022-12-31 19:04:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
ffmpeg
|
|
|
|
poco
|
|
|
|
];
|
|
|
|
|
|
|
|
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";
|
|
|
|
maintainers = [ maintainers.tomodachi94 ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
broken = stdenv.isDarwin;
|
|
|
|
};
|
|
|
|
}
|