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
49 lines
953 B
Nix
49 lines
953 B
Nix
{
|
|
lib,
|
|
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 ":" "${
|
|
lib.makeBinPath [
|
|
ffmpeg
|
|
imagemagick
|
|
mplayer
|
|
]
|
|
}"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with 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.unix;
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
mainProgram = "gopro";
|
|
};
|
|
}
|