mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-19 20:23:02 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
34 lines
765 B
Nix
34 lines
765 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, makeWrapper
|
|
, ffmpeg
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "alass";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kaegi";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-q1IV9TtmznpR7RO75iN0p16nmTja5ADWqFj58EOPWvU=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-6swIoVp1B4CMvaGvq868LTKkzpI6zFKJNgUVqjdyH20=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram "$out/bin/alass-cli" --prefix PATH : "${lib.makeBinPath [ ffmpeg ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Automatic Language-Agnostic Subtitle Synchronization";
|
|
homepage = "https://github.com/kaegi/alass";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ erictapen ];
|
|
};
|
|
}
|