netstick: init at unstable-2021-04-06
This commit is contained in:
parent
41bf1e1cbf
commit
8dd0b5b818
|
@ -35,6 +35,8 @@ in
|
|||
pitchcontrol = callPackage ./mpv-scripts/pitchcontrol { };
|
||||
};
|
||||
|
||||
netstick = callPackage ./netstick { };
|
||||
|
||||
nsz = callPythonPackage ./nsz { };
|
||||
|
||||
oha = callPackage ./oha { };
|
||||
|
|
|
@ -54,6 +54,7 @@
|
|||
gust_tools
|
||||
hcloud_exporter
|
||||
httpdirfs
|
||||
netstick
|
||||
nsz
|
||||
oha
|
||||
playgsf
|
||||
|
|
37
netstick/default.nix
Normal file
37
netstick/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue