-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (44 loc) · 1.27 KB
/
flake.nix
File metadata and controls
49 lines (44 loc) · 1.27 KB
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
44
45
46
47
48
49
{
description = "Add Vivaldi's Spring to the Decode Unicode movie";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flakeutils = {
url = "github:numtide/flake-utils";
};
};
outputs = { self, nixpkgs, flakeutils }:
flakeutils.lib.eachSystem ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" "i686-linux"] (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
apps.default = {
type = "app";
program = "${self.defaultPackage.${system}}/bin/decodevivaldi";
};
defaultPackage = pkgs.stdenv.mkDerivation {
name = "decodevivaldi";
src = ./.;
buildInputs = with pkgs; [
bash
ffmpeg
yt-dlp
];
nativeBuildInputs = with pkgs; [
makeWrapper
];
installPhase = ''
mkdir -p $out/bin
cp makevideo.sh $out/bin/decodevivaldi
wrapProgram $out/bin/decodevivaldi \
--prefix PATH : "${pkgs.lib.makeBinPath [ pkgs.ffmpeg pkgs.yt-dlp]}"
'';
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
bash
ffmpeg
yt-dlp
];
};
}
);
}