-
Notifications
You must be signed in to change notification settings - Fork 3
/
10mb-video.nix
43 lines (37 loc) · 974 Bytes
/
10mb-video.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# [10mb.video](https://github.com/ugjka/10mb.video) is a tool to help hyper-compress videos!
{ lib
, buildGoModule
, fetchFromGitHub
, ffmpeg
, fdk-aac-encoder
, makeWrapper
}:
let
runtimeDeps = lib.makeBinPath [
ffmpeg
fdk-aac-encoder
];
in
buildGoModule {
pname = "10mb-video";
version = "unstable-2024-11-19";
src = fetchFromGitHub {
owner = "ugjka";
repo = "10mb.video";
rev = "99b795adc14287632c40ddc48824a500d92e4cd9";
hash = "sha256-xqKuH3Sm+wF6PwKNOC/YPh9b786PxKDiFNR13SydgT8=";
};
nativeBuildInputs = [ makeWrapper ];
vendorHash = null;
ldflags = [ "-s" "-w" ];
postFixup = ''
wrapProgram $out/bin/10mb.video --prefix PATH : ${runtimeDeps}
'';
meta = {
description = "Fit a video into a 10mb file (Discord nitro pls?)";
homepage = "https://github.com/ugjka/10mb.video";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jpetrucciani ];
mainProgram = "10mb.video";
};
}