We need to set the `Access-Control-Allow-Origin` header in order to upload gcode with XHR
18 lines
253 B
Nix
18 lines
253 B
Nix
{ lib, stdenvNoCC }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "laser-upload";
|
|
|
|
src = ./src;
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
mkdir $out
|
|
cp * $out
|
|
'';
|
|
|
|
meta = with lib; {
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|