initial commit
This commit is contained in:
commit
b15abdedcb
5 changed files with 272 additions and 0 deletions
44
flake.nix
Normal file
44
flake.nix
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
description = "A collection of FFmpeg wrapper scripts";
|
||||
nixConfig.bash-prompt = "\[\\e[1mffutils-dev\\e[0m:\\w\]$ ";
|
||||
inputs.flake-utils.url = "github:numtide/flake-utils";
|
||||
outputs = { self, nixpkgs, flake-utils }:
|
||||
flake-utils.lib.eachDefaultSystem
|
||||
(system:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
ffconv = pkgs.stdenv.mkDerivation {
|
||||
name = "ffconv";
|
||||
src = self;
|
||||
patchPhase = with pkgs; ''
|
||||
substituteInPlace bin/ffconv \
|
||||
--replace ffmpeg ${ffmpeg}/bin/ffmpeg
|
||||
'';
|
||||
installPhase = ''
|
||||
install -m 755 -D bin/ffconv $out/bin/ffconv
|
||||
'';
|
||||
};
|
||||
ffcut = pkgs.stdenv.mkDerivation {
|
||||
name = "ffcut";
|
||||
src = self;
|
||||
patchPhase = with pkgs; ''
|
||||
substituteInPlace bin/ffcut \
|
||||
--replace ffmpeg ${ffmpeg}/bin/ffmpeg
|
||||
'';
|
||||
installPhase = ''
|
||||
install -m 755 -D bin/ffcut $out/bin/ffcut
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
ffmpeg
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue