subtitle-merge/flake.nix

34 lines
866 B
Nix
Raw Normal View History

2024-11-13 20:35:07 +00:00
{
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;
};
};
}