2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ffmpeg_4, libui, unstableGitUpdater, wrapGAppsHook3 }:
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "untrunc-anthwlock";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2021-11-21";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anthwlock";
|
|
|
|
repo = "untrunc";
|
2024-02-29 20:09:43 +00:00
|
|
|
rev = "d72ec324fbc29eb00b53c7dafeef09f92308962b";
|
|
|
|
hash = "sha256-h+aFPhlbEM6EfCKbsJPelBY5ys7kv5K4rbK/HTHeEcw=";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
buildInputs = [ ffmpeg_4 libui ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
make IS_RELEASE=1 untrunc
|
|
|
|
make IS_RELEASE=1 untrunc-gui
|
|
|
|
runHook postBuild
|
2020-08-20 17:08:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D -t $out/bin untrunc untrunc-gui
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
# Only stale "latest" tag
|
|
|
|
hardcodeZeroVersion = true;
|
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00:00
|
|
|
description = "Restore a truncated mp4/mov (improved version of ponchio/untrunc)";
|
|
|
|
homepage = "https://github.com/anthwlock/untrunc";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|