Unverified Commit aa934e49 authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

webcamize: init at 2.0.1 (#462028)

parents d6f18ee6 77b23f01
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  ffmpeg,
  libgphoto2,
  kmod,
}:
stdenv.mkDerivation (finalAttrs: {
  pname = "webcamize";
  version = "2.0.1";

  src = fetchFromGitHub {
    owner = "cowtoolz";
    repo = "webcamize";
    tag = "v${finalAttrs.version}";
    hash = "sha256-rmATEcAcngCHidMFXNocrhP06LKNLEb+9jfFMGL4AKU=";
  };

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
    ffmpeg
    libgphoto2
    kmod
  ];

  installPhase = ''
    mkdir -p $out/bin
    install -Dm755 -t $out/bin bin/webcamize
  '';

  meta = {
    description = "Use (almost) any camera as a webcam";
    homepage = "https://github.com/cowtoolz/webcamize";
    changelog = "https://github.com/cowtoolz/webcamize/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.bsd2;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ imurx ];
    mainProgram = "webcamize";
  };
})