Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ffmpeg,
|
|
libui,
|
|
unstableGitUpdater,
|
|
wrapGAppsHook3,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "untrunc-anthwlock";
|
|
version = "0-unstable-2024-08-14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anthwlock";
|
|
repo = "untrunc";
|
|
rev = "13cafedf59369db478af537fb909f0d7fd0eb85f";
|
|
hash = "sha256-4GIPj8so7POEwxKZzFBoJTu76XKbGHYmXC/ILeo0dVE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 ];
|
|
|
|
buildInputs = [
|
|
ffmpeg
|
|
libui
|
|
];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
make IS_RELEASE=1 untrunc
|
|
make IS_RELEASE=1 untrunc-gui
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -D -t $out/bin untrunc untrunc-gui
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
# Only stale "latest" tag
|
|
hardcodeZeroVersion = true;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Restore a truncated mp4/mov (improved version of ponchio/untrunc)";
|
|
homepage = "https://github.com/anthwlock/untrunc";
|
|
license = licenses.gpl2Only;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|