Files
nixpkgs/pkgs/by-name/sa/sanjuuni/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

65 lines
1.4 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
];
postPatch = ''
# TODO: Remove when https://github.com/MCJack123/sanjuuni/commit/778644b164c8877e56f9f5512480dde857133815 is released
substituteInPlace configure \
--replace-fail "swr_alloc_set_opts" "swr_alloc_set_opts2"
'';
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 = {
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 = [ lib.maintainers.tomodachi94 ];
license = lib.licenses.gpl2Plus;
broken = stdenv.hostPlatform.isDarwin;
mainProgram = "sanjuuni";
};
}