-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathffmpeg.nix
More file actions
41 lines (38 loc) · 699 Bytes
/
Copy pathffmpeg.nix
File metadata and controls
41 lines (38 loc) · 699 Bytes
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
{ lib, pkgs, ... }:
let
twoPass = pkgs.writers.writeBashBin "two-pass" {
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ pkgs.ffmpeg ])
];
} ./ffmpeg/2pass.sh;
audioNorm = pkgs.writers.writeBashBin "audio-norm" {
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [
pkgs.ffmpeg
pkgs.jq
])
];
} ./ffmpeg/audioNorm.sh;
toMp3 = pkgs.writers.writeBashBin "to-mp3" {
makeWrapperArgs = [
"--prefix"
"PATH"
":"
(lib.makeBinPath [ pkgs.ffmpeg ])
];
} ./ffmpeg/2mp3.sh;
in
{
home.packages = [
pkgs.ffmpeg
twoPass
audioNorm
toMp3
];
}