mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
38 lines
842 B
Nix
38 lines
842 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "ff2mpv-rust";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ryze312";
|
|
repo = "ff2mpv-rust";
|
|
rev = version;
|
|
hash = "sha256-sofv5uRLNbMT+w+ZDGjtKqBjYJk+UDzUDQrOiWvl5Hs=";
|
|
};
|
|
|
|
cargoLock = {
|
|
lockFile = ./Cargo.lock;
|
|
};
|
|
|
|
postPatch = ''
|
|
ln -s ${./Cargo.lock} Cargo.lock
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/lib/mozilla/native-messaging-hosts/
|
|
$out/bin/ff2mpv-rust manifest > $out/lib/mozilla/native-messaging-hosts/ff2mpv.json
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Native messaging host for ff2mpv written in Rust";
|
|
homepage = "https://github.com/ryze312/ff2mpv-rust";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ arthsmn ];
|
|
mainProgram = "ff2mpv-rust";
|
|
};
|
|
}
|