mirror of
https://github.com/NotAShelf/air-quality-monitor.git
synced 2024-11-22 13:20:48 +00:00
31 lines
565 B
Nix
31 lines
565 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
...
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "dummy-serial";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "notashelf";
|
|
repo = "dummy-serial";
|
|
rev = "v0.1.0";
|
|
hash = "sha256-+zXA5Ko8ikgkmkm1eyx2VMQQjp61osSpq4K+d9WEqq8=";
|
|
};
|
|
|
|
makeFlags = ["TARGET=main"];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp -rvf main $out/bin/dummy-serial
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Create dummy serial ports through PseudoTTYs";
|
|
mainProgram = "dummy-serial";
|
|
};
|
|
}
|