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
+1 -1
View File
@@ -16,6 +16,7 @@
ffmpeg
gnucash
gopls
handbrake
jdk11
libtheora
synology-drive-client
@@ -26,7 +27,6 @@
libreoffice-bin
] else
[
handbrake
jellyfin-media-player
nextcloud-client
onlyoffice-bin
+1
View File
@@ -66,4 +66,5 @@ in rec {
bitwarden = macOver ./mac/bitwarden.nix "bitwarden";
gnucash = macOver ./mac/gnucash.nix "gnucash";
handbrake = macOver ./mac/handbrake.nix "handbrake";
}
+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/";
};
}