depot/third_party/nixpkgs/pkgs/by-name/sa/sanjuuni/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

58 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
pkg-config,
ffmpeg,
poco,
ocl-icd,
opencl-clhpp,
gitUpdater,
callPackage,
}:
stdenv.mkDerivation rec {
pname = "sanjuuni";
version = "0.5";
src = fetchFromGitHub {
owner = "MCJack123";
repo = "sanjuuni";
rev = version;
hash = "sha256-wJRPD4OWOTPiyDr9dYseRA7BI942HPfHONVJGTc/+wU=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
ffmpeg
poco
ocl-icd
opencl-clhpp
];
installPhase = ''
runHook preInstall
install -Dm755 sanjuuni $out/bin/sanjuuni
runHook postInstall
'';
passthru = {
tests = {
run-on-nixos-artwork = callPackage ./tests/run-on-nixos-artwork.nix { };
};
updateScript = gitUpdater { };
};
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";
};
}