Files
nixpkgs/pkgs/by-name/sc/screen-pipe/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

75 lines
1.4 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
dbus,
ffmpeg,
oniguruma,
openssl,
sqlite,
stdenv,
alsa-lib,
xorg,
apple-sdk_12,
}:
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.hostPlatform.isDarwin [
apple-sdk_12
]
++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
xorg.libxcb
];
buildFeatures = lib.optional stdenv.hostPlatform.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";
};
}