Merge pull request #332076 from dit7ya/screen-pipe

screen-pipe: init at 0.1.48
This commit is contained in:
Marcus Ramberg 2024-08-04 18:23:19 +02:00 committed by GitHub
commit a08fa57c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6216 additions and 0 deletions

6128
pkgs/by-name/sc/screen-pipe/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,88 @@
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbus,
ffmpeg,
oniguruma,
openssl,
sqlite,
stdenv,
darwin,
alsa-lib,
xorg,
}:
rustPlatform.buildRustPackage rec {
pname = "screen-pipe";
version = "0.1.48";
src = fetchFromGitHub {
owner = "louis030195";
repo = "screen-pipe";
rev = "v${version}";
hash = "sha256-rWKRCqWFuPO84C52mMrrS4euD6XdJU8kqZsAz28+vWE=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"cpal-0.15.3" = "sha256-eKn3tS5QuqbMTwnRAEybvbPZOiKiid7ghGztAmrs9fw=";
"rusty-tesseract-1.1.10" = "sha256-XT74zGn+DetEBUujHm4Soe2iorQcIoUeZbscTv+64hw=";
};
};
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
nativeBuildInputs = [
pkg-config
rustPlatform.bindgenHook
];
buildInputs =
[
dbus
ffmpeg
oniguruma
openssl
sqlite
]
++ lib.optionals stdenv.isDarwin (
with darwin.apple_sdk_12_3.frameworks;
[
CoreAudio
AudioUnit
CoreFoundation
CoreGraphics
CoreMedia
IOKit
Metal
MetalPerformanceShaders
Security
ScreenCaptureKit
SystemConfiguration
]
)
++ lib.optionals stdenv.isLinux [
alsa-lib
xorg.libxcb
];
buildFeatures = lib.optional stdenv.isDarwin "metal";
env = {
RUSTONIG_SYSTEM_LIBONIG = true;
};
doCheck = false; # Tests fail to build
meta = with lib; {
description = "Personalized AI powered by what you've seen, said, or heard";
homepage = "https://github.com/louis030195/screen-pipe";
license = licenses.mit;
maintainers = with maintainers; [ dit7ya ];
mainProgram = "screen-pipe";
};
}