Add Handbrake

This commit is contained in:
greg-compass
2022-11-10 13:04:04 -06:00
parent 4ba5211b49
commit 3846d860f6
3 changed files with 34 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
{ stdenv, fetchurl,
undmg,
}:
stdenv.mkDerivation rec {
version = "1.5.1";
pname = "HandBrake";
buildInputs = [
undmg
];
sourceRoot = ".";
phases = [
"unpackPhase"
"installPhase"
];
installPhase = ''
mkdir -p "$out/Applications"
cp -r ${pname}*.app "$out/Applications"
'';
src = fetchurl {
name = "${pname}-${version}.dmg";
url = "https://github.com/HandBrake/HandBrake/releases/download/${version}/${pname}-${version}.dmg";
sha256 = "sha256-dnyxYxTjhpxCz/eNuSvK16f6qGHHD5exMm/jaGxith8=";
};
meta = {
description = "HandBrake is an open source video transcoder";
homepage = "https://handbrake.fr/";
};
}