forked from
lass.pds.lassul.us/superconfig
This repository has no description
599 B
23 lines
1{ ... }:
2{
3 perSystem =
4 { pkgs, ... }:
5 let
6 ffmpeg-placebo = pkgs.ffmpeg.override { withPlacebo = true; };
7 in
8 {
9 packages.android-webcam =
10 (pkgs.writeShellApplication {
11 name = "android-webcam";
12 runtimeInputs = [
13 pkgs.scrcpy
14 ffmpeg-placebo
15 pkgs.gnused
16 ];
17 text = builtins.replaceStrings [ "@shaderPath@" ] [ "${./ascii.hook}" ] (
18 builtins.readFile ./android-webcam.sh
19 );
20 }).overrideAttrs
21 { passthru.usage = builtins.readFile ./usage.kdl; };
22 };
23}