2024-07-27 06:49:29 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pkg-config,
|
|
|
|
ffmpeg,
|
|
|
|
poco,
|
|
|
|
ocl-icd,
|
|
|
|
opencl-clhpp,
|
2024-09-19 14:19:46 +00:00
|
|
|
gitUpdater,
|
|
|
|
callPackage,
|
2023-01-11 07:51:40 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "sanjuuni";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.5";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MCJack123";
|
|
|
|
repo = "sanjuuni";
|
|
|
|
rev = version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-wJRPD4OWOTPiyDr9dYseRA7BI942HPfHONVJGTc/+wU=";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2023-01-11 07:51:40 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
run-on-nixos-artwork = callPackage ./tests/run-on-nixos-artwork.nix { };
|
|
|
|
};
|
|
|
|
updateScript = gitUpdater { };
|
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/MCJack123/sanjuuni";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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;
|
2024-09-26 11:04:55 +00:00
|
|
|
broken = stdenv.hostPlatform.isDarwin;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "sanjuuni";
|
2023-01-11 07:51:40 +00:00
|
|
|
};
|
|
|
|
}
|