untrunc.scm 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. (define-module (staging untrunc)
  2. #:use-module ((guix licenses) #:prefix license:)
  3. #:use-module (guix packages)
  4. #:use-module (guix build-system gnu)
  5. #:use-module (guix build-system trivial)
  6. #:use-module (guix git-download)
  7. #:use-module (gnu packages video)
  8. #:use-module (guix utils))
  9. (define-public untrunc
  10. (let ((commit "45f310f1f3c9a9449b46a74594d1dcbf4bd6b1fb")
  11. (revision "1"))
  12. (package
  13. (name "untrunc")
  14. (version (git-version "0.0.0" revision commit))
  15. (source (origin
  16. (method git-fetch)
  17. (uri (git-reference
  18. (url "https://github.com/anthwlock/untrunc.git")
  19. (commit commit)))
  20. (sha256
  21. (base32
  22. "1cmimpamxaydwd6m7f86sms7nbzzyq7aywmjf24ijhpwgrvzibrh"))))
  23. (build-system gnu-build-system)
  24. (arguments
  25. `(#:tests? #f
  26. #:phases (modify-phases %standard-phases
  27. (delete 'configure)
  28. (replace 'install
  29. (lambda* (#:key outputs #:allow-other-keys)
  30. (let* ((out (assoc-ref outputs "out"))
  31. (bin-dir (string-append out "/bin")))
  32. (mkdir-p bin-dir)
  33. (install-file "untrunc" bin-dir)
  34. #t))))))
  35. (inputs
  36. `(("ffmpeg" ,ffmpeg)))
  37. (home-page "https://github.com/anthwlock/untrunc")
  38. (synopsis "Restore a truncated mp4/mov file")
  39. (description "Restore a damaged (truncated) mp4, m4v, mov, 3gp
  40. video. Provided you have a similar not broken video. And some luck.")
  41. (license license:gpl2))))
  42. untrunc