mirror of
https://github.com/NotAShelf/mpvrc.git
synced 2026-04-15 15:33:47 +00:00
mrc is taken :( Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I2cf0cab8dce04cd04981177d43b9b9b76a6a6964
43 lines
930 B
Nix
43 lines
930 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
pkg-config,
|
|
openssl,
|
|
}: let
|
|
fs = lib.fileset;
|
|
s = ../.;
|
|
in
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "mpvrc";
|
|
version = (lib.importTOML (s + /Cargo.toml)).package.version;
|
|
|
|
src = fs.toSource {
|
|
root = s;
|
|
fileset = fs.unions [
|
|
(fs.fileFilter (file: builtins.any file.hasExt ["rs"]) (s + /src))
|
|
(s + /Cargo.lock)
|
|
(s + /Cargo.toml)
|
|
];
|
|
};
|
|
|
|
strictDeps = true;
|
|
enableParallelBuilding = true;
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
];
|
|
|
|
cargoLock.lockFile = "${finalAttrs.src}/Cargo.lock";
|
|
|
|
meta = {
|
|
description = "IPC wrapper & command-line controller for MPV, the video player";
|
|
homePage = "https://github.com/notashelf/mpvrc";
|
|
mainProgram = "mpvrc";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = [lib.maintainers.NotAShelf];
|
|
};
|
|
})
|