2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-06-07 14:39:09 +02:00
|
|
|
, ffmpeg_3
|
2019-07-30 19:16:33 +02:00
|
|
|
, 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 \
|
2021-01-15 10:19:50 +01:00
|
|
|
--prefix PATH ":" "${lib.makeBinPath [ ffmpeg_3 imagemagick mplayer ]}"
|
2019-07-30 19:16:33 +02:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-07-30 19:16:33 +02:00
|
|
|
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";
|
2021-03-22 08:22:32 +01:00
|
|
|
platforms = platforms.unix;
|
2019-07-30 19:16:33 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ jonringer ];
|
|
|
|
};
|
|
|
|
}
|