depot/third_party/nixpkgs/pkgs/tools/graphics/sanjuuni/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

45 lines
913 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, ffmpeg
, poco
}:
stdenv.mkDerivation rec {
pname = "sanjuuni";
version = "0.3";
src = fetchFromGitHub {
owner = "MCJack123";
repo = "sanjuuni";
rev = version;
sha256 = "sha256-8IbdLXWUtT2VN6Eu1b8x4DnyI8JOd/12t0XDa6o3N+A=";
};
nativeBuildInputs = [
pkg-config
];
buildInputs = [
ffmpeg
poco
];
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;
};
}