This repo is now a flake!

This commit is contained in:
2026-04-27 09:30:14 -04:00
parent c93f1c1a05
commit 3e5d8ccc96
3 changed files with 218 additions and 0 deletions

30
flake.nix Normal file
View File

@@ -0,0 +1,30 @@
{
description = "A ffmpeg script to compress organic videos.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
outputs =
{ self, nixpkgs, nix, }:
let
systems = [ "x86_64-linux" ];
forEachSystem = nixpkgs.lib.genAttrs systems;
overlayList = [ self.overlays.default ];
pkgsBySystem = forEachSystem (
system:
import nixpkgs {
inherit system;
overlays = overlayList;
}
);
in
rec {
overlays.default = final: prev: { transcode-video = final.callPackage ./package.nix { }; };
packages = forEachSystem (system: {
transcode-video = pkgsBySystem.${system}.transcode-video;
default = pkgsBySystem.${system}.transcode-video;
});
};
}