34 lines
866 B
Nix
34 lines
866 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
|
inherit (pkgs) lib;
|
|
system = "x86_64-linux";
|
|
in rec {
|
|
formatter."${system}" = pkgs.nixfmt-rfc-style;
|
|
devShells."${system}".default = pkgs.mkShell {
|
|
packages = [
|
|
pkgs.mkvtoolnix-cli
|
|
];
|
|
};
|
|
|
|
overlays.default = final: prev: {
|
|
subtitle-merge = final.rustPlatform.buildRustPackage {
|
|
name = "subtitle-merge";
|
|
version = "1.0";
|
|
src = ./.;
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
buildInputs = [ final.mkvtoolnix-cli ];
|
|
};
|
|
};
|
|
|
|
packages."${system}" = rec {
|
|
subtitle-merge = (overlays.default pkgs pkgs).subtitle-merge;
|
|
default = subtitle-merge;
|
|
};
|
|
};
|
|
}
|