netstick: init at unstable-2021-04-06

master
Simon Bruder 2021-10-24 17:52:08 +02:00
parent 41bf1e1cbf
commit 8dd0b5b818
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
3 changed files with 40 additions and 0 deletions

View File

@ -35,6 +35,8 @@ in
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
};
netstick = callPackage ./netstick { };
nsz = callPythonPackage ./nsz { };
oha = callPackage ./oha { };

View File

@ -54,6 +54,7 @@
gust_tools
hcloud_exporter
httpdirfs
netstick
nsz
oha
playgsf

37
netstick/default.nix Normal file
View File

@ -0,0 +1,37 @@
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "netstick";
version = "unstable-2021-04-06";
src = fetchFromGitHub {
owner = "moslevin";
repo = pname;
rev = "274d510f6b058f1eeec13c3c586a891e8c4b75a4";
sha256 = "sha256-+sI2jnkksrnoOzX621mLpLi19b3mmz3H63AIJSzuXOI=";
};
nativeBuildInputs = [ cmake ];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "-Werror" "-Werror -Wno-stringop-truncation"
'';
installPhase = ''
runHook preInstall
install -D netstick $out/bin/netstick
install -D netstickd $out/bin/netstickd
runHook postInstall
'';
meta = with lib; {
description = "Realtime Client/Server app allowing joystick (and other HID) data to be transferred over a local network";
homepage = "https://github.com/moslevin/netstick";
license = licenses.bsd3;
maintainers = with maintainers; [ sbruder ];
platforms = platforms.linux;
};
}