14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 hash = "sha256-wJRPD4OWOTPiyDr9dYseRA7BI942HPfHONVJGTc/+wU=";
25 nativeBuildInputs = [ pkg-config ];
35 # TODO: Remove when https://github.com/MCJack123/sanjuuni/commit/778644b164c8877e56f9f5512480dde857133815 is released
36 substituteInPlace configure \
37 --replace-fail "swr_alloc_set_opts" "swr_alloc_set_opts2"
43 install -Dm755 sanjuuni $out/bin/sanjuuni
50 run-on-nixos-artwork = callPackage ./tests/run-on-nixos-artwork.nix { };
52 updateScript = gitUpdater { };
56 homepage = "https://github.com/MCJack123/sanjuuni";
57 description = "Command-line tool that converts images and videos into a format that can be displayed in ComputerCraft";
58 changelog = "https://github.com/MCJack123/sanjuuni/releases/tag/${version}";
59 maintainers = [ maintainers.tomodachi94 ];
60 license = licenses.gpl2Plus;
61 broken = stdenv.hostPlatform.isDarwin;
62 mainProgram = "sanjuuni";