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