This repo is now a flake!
This commit is contained in:
30
flake.nix
Normal file
30
flake.nix
Normal 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;
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user