about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMax Haland <maximilian.haland@serco-na.com>2024-01-18 22:35:27 -0500
committerMax Haland <max@haland.org>2024-01-18 22:35:27 -0500
commit55961341e39ec4e46b09eb2db491448f2c0105c3 (patch)
tree1034ac991f5cd21ab16a4297494d0cd2f770009c
parent43dfca3054a273392b58681c1bd8ce222657e11b (diff)
downloadnixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar.gz
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar.bz2
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar.lz
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar.xz
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.tar.zst
nixlib-55961341e39ec4e46b09eb2db491448f2c0105c3.zip
kplex: init at 1.4
-rw-r--r--pkgs/by-name/kp/kplex/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/kp/kplex/package.nix b/pkgs/by-name/kp/kplex/package.nix
new file mode 100644
index 000000000000..78eb35f1e193
--- /dev/null
+++ b/pkgs/by-name/kp/kplex/package.nix
@@ -0,0 +1,32 @@
+{
+  stdenv,
+  fetchFromGitHub,
+  lib,
+}:
+stdenv.mkDerivation (finalAttrs: {
+  pname = "kplex";
+  version = "1.4";
+  src = fetchFromGitHub {
+    owner = "stripydog";
+    repo =  "kplex";
+    rev = "v${finalAttrs.version}";
+    hash = "sha256-sps9l238hGLJ673kewFH8fOJw0HphEkZbJ+VUIzxC+o=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
+    install -D -m 0555 kplex $out/bin/kplex
+
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "A multiplexer for various nmea 0183 interfaces";
+    homepage = "https://www.stripydog.com/kplex/";
+    changelog = "https://www.stripydog.com/kplex/changes.html";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ mabster314 ];
+    mainProgram = "kplex";
+  };
+})