diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2019-07-30 10:16:33 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2019-08-02 08:56:59 -0700 |
commit | 5b30a10a0c1bfb720fdf000cfe587ac54071b894 (patch) | |
tree | 9c9c861d86072a4ba0fd21772945b94f6fd2d983 | |
parent | dbb5044408347e3b69dfdea7ffe29f5f62a650fe (diff) |
gopro: init at 1.0
-rw-r--r-- | pkgs/tools/video/gopro/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/tools/video/gopro/default.nix b/pkgs/tools/video/gopro/default.nix new file mode 100644 index 000000000000..f783b086345a --- /dev/null +++ b/pkgs/tools/video/gopro/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub +, ffmpeg +, imagemagick +, makeWrapper +, mplayer +}: + +stdenv.mkDerivation rec { + pname = "gopro"; + version = "1.0"; + + src = fetchFromGitHub { + owner = "KonradIT"; + repo = "gopro-linux"; + rev = version; + sha256 = "0sb9vpiadrq8g4ag828h8mvq01fg0306j0wjwkxdmwfqync1128l"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + + install -Dm755 gopro -t $out/bin + wrapProgram $out/bin/gopro \ + --prefix PATH ":" "${stdenv.lib.makeBinPath [ ffmpeg imagemagick mplayer ]}" + + runHook postInstall + ''; + + meta = with stdenv.lib; { + description = "Command line interface for processing media filmed on GoPro HERO 3, 4, 5, 6, and 7 cameras"; + homepage = "https://github.com/KonradIT/gopro-linux"; + platforms = platforms.linux; + license = licenses.gpl3; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 110cc27e8467..fd0ef57e4d01 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3415,6 +3415,8 @@ in google-music-scripts = callPackage ../tools/audio/google-music-scripts { }; + gopro = callPackage ../tools/video/gopro { }; + gource = callPackage ../applications/version-management/gource { }; govc = callPackage ../tools/virtualization/govc { }; |