netstick: init at unstable-2021-04-06

This commit is contained in:
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 { }; pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
}; };
netstick = callPackage ./netstick { };
nsz = callPythonPackage ./nsz { }; nsz = callPythonPackage ./nsz { };
oha = callPackage ./oha { }; oha = callPackage ./oha { };

View file

@ -54,6 +54,7 @@
gust_tools gust_tools
hcloud_exporter hcloud_exporter
httpdirfs httpdirfs
netstick
nsz nsz
oha oha
playgsf 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;
};
}