Unverified Commit ffc5c458 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

[Backport release-25.11] octavePackages.video: Fix build & install (#465277)

parents ca327614 468942df
Loading
Loading
Loading
Loading
+17 −3
Original line number Diff line number Diff line
@@ -4,7 +4,9 @@
  lib,
  fetchFromGitHub,
  pkg-config,
  ffmpeg,
  autoconf,
  automake,
  ffmpeg_7,
}:

buildOctavePackage rec {
@@ -14,16 +16,28 @@ buildOctavePackage rec {
  src = fetchFromGitHub {
    owner = "Andy1978";
    repo = "octave-video";
    rev = "refs/tags/${version}";
    tag = version;
    hash = "sha256-fn9LNfuS9dSStBfzBjRRkvP50JJ5K+Em02J9+cHqt6w=";
  };

  preBuild = ''
    pushd src
    patchShebangs bootstrap configure
    ./bootstrap
    ./configure
    popd

    tar --transform 's,^,video-${version}/,' -cz * -f video-${version}.tar.gz
  '';

  nativeBuildInputs = [
    pkg-config
    autoconf
    automake
  ];

  propagatedBuildInputs = [
    ffmpeg
    ffmpeg_7
  ];

  meta = {