Merge pull request #332076 from dit7ya/screen-pipe
screen-pipe: init at 0.1.48
This commit is contained in:
commit
a08fa57c12
6128
pkgs/by-name/sc/screen-pipe/Cargo.lock
generated
Normal file
6128
pkgs/by-name/sc/screen-pipe/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
88
pkgs/by-name/sc/screen-pipe/package.nix
Normal file
88
pkgs/by-name/sc/screen-pipe/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user