summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/rpi/433Utils
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-09-12 12:56:39 +0200
committertv <tv@krebsco.de>2023-09-13 16:23:38 +0200
commitfbd485cd86c7e9984819357398f912a2d5510845 (patch)
treee1a9e2eedacfa25018d6b0eef3f4628a4d503ebc /tv/5pkgs/rpi/433Utils
parent5370e0485788224126861e076110ac705013d2de (diff)
tv: emigrate
Diffstat (limited to 'tv/5pkgs/rpi/433Utils')
-rw-r--r--tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch24
-rw-r--r--tv/5pkgs/rpi/433Utils/default.nix42
-rw-r--r--tv/5pkgs/rpi/433Utils/rc-switch.protocols.patch10
-rw-r--r--tv/5pkgs/rpi/433Utils/src.json7
4 files changed, 0 insertions, 83 deletions
diff --git a/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch b/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
deleted file mode 100644
index 447e42f1d..000000000
--- a/tv/5pkgs/rpi/433Utils/RPi_utils.codesend.codestring.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/RPi_utils/codesend.cpp
-+++ b/RPi_utils/codesend.cpp
-@@ -40,18 +40,18 @@ int main(int argc, char *argv[]) {
- }
-
- // Change protocol and pulse length accroding to parameters
-- int code = atoi(argv[1]);
-+ const char *code = argv[1];
- if (argc >= 3) protocol = atoi(argv[2]);
- if (argc >= 4) pulseLength = atoi(argv[3]);
-
- if (wiringPiSetup () == -1) return 1;
-- printf("sending code[%i]\n", code);
-+ printf("sending code[%s]\n", code);
- RCSwitch mySwitch = RCSwitch();
- if (protocol != 0) mySwitch.setProtocol(protocol);
- if (pulseLength != 0) mySwitch.setPulseLength(pulseLength);
- mySwitch.enableTransmit(PIN);
-
-- mySwitch.send(code, 24);
-+ mySwitch.send(code);
-
- return 0;
-
diff --git a/tv/5pkgs/rpi/433Utils/default.nix b/tv/5pkgs/rpi/433Utils/default.nix
deleted file mode 100644
index 136e3dbca..000000000
--- a/tv/5pkgs/rpi/433Utils/default.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-{ fetchFromGitHub, lib, stdenv
-, wiringPi ? WiringPi.wiringPi
-, wiringPiDev ? WiringPi.wiringPiDev
-, WiringPi ? rpiPackages.WiringPi
-, rpiPackages
-}:
-
-stdenv.mkDerivation {
- pname = "433Utils-RPi_utils";
- version = "2018-06-07";
-
- src = fetchFromGitHub (lib.importJSON ./src.json);
-
- patches = [
- ./rc-switch.protocols.patch
- ./RPi_utils.codesend.codestring.patch
- ];
-
- buildPhase = ''
- runHook postBuild
-
- make -C RPi_utils
-
- runHook preBuild
- '';
-
- buildInputs = [
- wiringPi
- wiringPiDev
- ];
-
- installPhase = ''
- runHook preInstall
-
- mkdir -p $out/bin
- for name in send codesend RFSniffer; do
- cp RPi_utils/$name $out/bin/
- done
-
- runHook postInstall
- '';
-}
diff --git a/tv/5pkgs/rpi/433Utils/rc-switch.protocols.patch b/tv/5pkgs/rpi/433Utils/rc-switch.protocols.patch
deleted file mode 100644
index 41304ef8e..000000000
--- a/tv/5pkgs/rpi/433Utils/rc-switch.protocols.patch
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/rc-switch/RCSwitch.cpp
-+++ b/rc-switch/RCSwitch.cpp
-@@ -78,6 +78,7 @@ static const RCSwitch::Protocol PROGMEM proto[] = {
- { 100, { 30, 71 }, { 4, 11 }, { 9, 6 } }, // protocol 3
- { 380, { 1, 6 }, { 1, 3 }, { 3, 1 } }, // protocol 4
- { 500, { 6, 14 }, { 1, 2 }, { 2, 1 } }, // protocol 5
-+ { 136, { 1, 31 }, { 1, 3 }, { 3, 1 } }, // protocol 6
- };
-
- enum {
diff --git a/tv/5pkgs/rpi/433Utils/src.json b/tv/5pkgs/rpi/433Utils/src.json
deleted file mode 100644
index 3cf232788..000000000
--- a/tv/5pkgs/rpi/433Utils/src.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "owner": "ninjablocks",
- "repo": "433Utils",
- "rev": "31c0ea4e158287595a6f6116b6151e72691e1839",
- "sha256": "04r2qlkdsz46qgpnbizrfccz1i0qlkb1iqz0jzyq4fzvksqp9dg1",
- "fetchSubmodules": true
-} \ No newline at end of file