diff options
author | Robert Schütz <dev@schuetz-co.de> | 2021-02-01 13:52:16 +0100 |
---|---|---|
committer | Robert Schütz <dev@schuetz-co.de> | 2021-02-02 17:26:36 +0100 |
commit | a4db89997b96b094f6011ab056bdd45491397db7 (patch) | |
tree | a4141520a3e0370722a5e8a2b7b5826e19070a83 | |
parent | cc92cabcb47975236e56ea6e202e11c81ccaad02 (diff) | |
download | nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar.gz nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar.bz2 nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar.lz nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar.xz nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.tar.zst nixpkgs-a4db89997b96b094f6011ab056bdd45491397db7.zip |
untrunc: make alias of untrunc-anthwlock
The latter has more features and doesn't depend on an outdated version of libav.
-rw-r--r-- | pkgs/tools/video/untrunc/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/aliases.nix | 1 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
3 files changed, 1 insertions, 41 deletions
diff --git a/pkgs/tools/video/untrunc/default.nix b/pkgs/tools/video/untrunc/default.nix deleted file mode 100644 index 3ef025f5875..00000000000 --- a/pkgs/tools/video/untrunc/default.nix +++ /dev/null @@ -1,39 +0,0 @@ -{ lib, stdenv, gcc, libav_12, fetchFromGitHub }: - -stdenv.mkDerivation { - pname = "untrunc"; - version = "2020.02.09"; - - src = fetchFromGitHub { - owner = "ponchio"; - repo = "untrunc"; - rev = "4eed44283168c727ace839ff7590092fda2e0848"; - sha256 = "0nfj67drc6bxqlkf8a1iazqhi0w38a7rjrb2bpa74gwq6xzygvbr"; - }; - - buildInputs = [ gcc libav_12 ]; - - # Untrunc uses the internal libav headers 'h264dec.h' and 'config.h'. - # The latter must be created through 'configure'. - libavConfiguredSrc = libav_12.overrideAttrs (oldAttrs: { - name = "libav-configured-src"; - outputs = [ "out" ]; - phases = [ "unpackPhase" "patchPhase" "configurePhase" "installPhase" ]; - installPhase = "cp -r . $out"; - }); - - buildCommand = '' - mkdir -p $out/bin - g++ -o $out/bin/untrunc \ - -Wno-deprecated-declarations \ - $src/file.cpp $src/main.cpp $src/track.cpp $src/atom.cpp $src/mp4.cpp \ - -I$libavConfiguredSrc -lavformat -lavcodec -lavutil - ''; - - meta = with lib; { - description = "Restore a damaged (truncated) mp4, m4v, mov, 3gp video from a similar, undamaged video"; - license = licenses.gpl2; - homepage = "https://github.com/ponchio/untrunc"; - maintainers = [ maintainers.earvstedt ]; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index bb2fb36bb5b..e4ac34b0782 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -709,6 +709,7 @@ mapAliases ({ ultrastardx-beta = ultrastardx; # added 2017-08-12 unicorn-emu = unicorn; # added 2020-10-29 unifiStable = unifi6; # added 2020-12-28 + untrunc = untrunc-anthwlock; # added 2021-02-01 usb_modeswitch = usb-modeswitch; # added 2016-05-10 usbguard-nox = usbguard; # added 2019-09-04 utillinux = util-linux; # added 2020-11-24 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5a1fedf9f53..1b8e681f7c5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8527,8 +8527,6 @@ in untex = callPackage ../tools/text/untex { }; - untrunc = callPackage ../tools/video/untrunc { }; - untrunc-anthwlock = callPackage ../tools/video/untrunc-anthwlock { }; up = callPackage ../tools/misc/up { }; |