mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
4591fc2d38
This commit bumps Sanjuuni's version. It also adds OpenCL as a new dependency. Changelog: https://github.com/MCJack123/sanjuuni/releases/tag/0.4
50 lines
967 B
Nix
50 lines
967 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, ffmpeg
|
|
, poco
|
|
, ocl-icd
|
|
, opencl-clhpp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sanjuuni";
|
|
version = "0.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MCJack123";
|
|
repo = "sanjuuni";
|
|
rev = version;
|
|
sha256 = "sha256-wgtyrik4Z5AXd8MHkiMuxMpGh/xcEtNqivyhvL68aac=";
|
|
};
|
|
|
|
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 = "A 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;
|
|
};
|
|
}
|