Merge pull request #281242 from arthsmn/ff2mpv-rust

ff2mpv-rust: init at 1.1.1

authored by

Franz Pletz and committed by
GitHub
9ac9df5a 02158048

+149
+112
pkgs/by-name/ff/ff2mpv-rust/Cargo.lock
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 3 4 + 5 + [[package]] 6 + name = "equivalent" 7 + version = "1.0.1" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 10 + 11 + [[package]] 12 + name = "ff2mpv-rust" 13 + version = "1.1.0" 14 + dependencies = [ 15 + "serde", 16 + "serde_json", 17 + ] 18 + 19 + [[package]] 20 + name = "hashbrown" 21 + version = "0.14.3" 22 + source = "registry+https://github.com/rust-lang/crates.io-index" 23 + checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" 24 + 25 + [[package]] 26 + name = "indexmap" 27 + version = "2.1.0" 28 + source = "registry+https://github.com/rust-lang/crates.io-index" 29 + checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" 30 + dependencies = [ 31 + "equivalent", 32 + "hashbrown", 33 + ] 34 + 35 + [[package]] 36 + name = "itoa" 37 + version = "1.0.10" 38 + source = "registry+https://github.com/rust-lang/crates.io-index" 39 + checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" 40 + 41 + [[package]] 42 + name = "proc-macro2" 43 + version = "1.0.76" 44 + source = "registry+https://github.com/rust-lang/crates.io-index" 45 + checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" 46 + dependencies = [ 47 + "unicode-ident", 48 + ] 49 + 50 + [[package]] 51 + name = "quote" 52 + version = "1.0.35" 53 + source = "registry+https://github.com/rust-lang/crates.io-index" 54 + checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" 55 + dependencies = [ 56 + "proc-macro2", 57 + ] 58 + 59 + [[package]] 60 + name = "ryu" 61 + version = "1.0.16" 62 + source = "registry+https://github.com/rust-lang/crates.io-index" 63 + checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" 64 + 65 + [[package]] 66 + name = "serde" 67 + version = "1.0.195" 68 + source = "registry+https://github.com/rust-lang/crates.io-index" 69 + checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" 70 + dependencies = [ 71 + "serde_derive", 72 + ] 73 + 74 + [[package]] 75 + name = "serde_derive" 76 + version = "1.0.195" 77 + source = "registry+https://github.com/rust-lang/crates.io-index" 78 + checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" 79 + dependencies = [ 80 + "proc-macro2", 81 + "quote", 82 + "syn", 83 + ] 84 + 85 + [[package]] 86 + name = "serde_json" 87 + version = "1.0.111" 88 + source = "registry+https://github.com/rust-lang/crates.io-index" 89 + checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" 90 + dependencies = [ 91 + "indexmap", 92 + "itoa", 93 + "ryu", 94 + "serde", 95 + ] 96 + 97 + [[package]] 98 + name = "syn" 99 + version = "2.0.48" 100 + source = "registry+https://github.com/rust-lang/crates.io-index" 101 + checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" 102 + dependencies = [ 103 + "proc-macro2", 104 + "quote", 105 + "unicode-ident", 106 + ] 107 + 108 + [[package]] 109 + name = "unicode-ident" 110 + version = "1.0.12" 111 + source = "registry+https://github.com/rust-lang/crates.io-index" 112 + checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
+37
pkgs/by-name/ff/ff2mpv-rust/package.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + }: 5 + 6 + rustPlatform.buildRustPackage rec { 7 + pname = "ff2mpv-rust"; 8 + version = "1.1.1"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "ryze312"; 12 + repo = "ff2mpv-rust"; 13 + rev = version; 14 + hash = "sha256-sofv5uRLNbMT+w+ZDGjtKqBjYJk+UDzUDQrOiWvl5Hs="; 15 + }; 16 + 17 + cargoLock = { 18 + lockFile = ./Cargo.lock; 19 + }; 20 + 21 + postPatch = '' 22 + ln -s ${./Cargo.lock} Cargo.lock 23 + ''; 24 + 25 + postInstall = '' 26 + mkdir -p $out/lib/mozilla/native-messaging-hosts/ 27 + $out/bin/ff2mpv-rust manifest > $out/lib/mozilla/native-messaging-hosts/ff2mpv.json 28 + ''; 29 + 30 + meta = with lib; { 31 + description = "Native messaging host for ff2mpv written in Rust"; 32 + homepage = "https://github.com/ryze312/ff2mpv-rust"; 33 + license = licenses.gpl3Only; 34 + maintainers = with maintainers; [ arthsmn ]; 35 + mainProgram = "ff2mpv-rust"; 36 + }; 37 + }