summary refs log tree commit diff
diff options
context:
space:
mode:
authorRudolf Vesely <i@rudolfvesely.com>2023-09-24 12:34:41 +0000
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-10-01 12:55:18 +0200
commit9d3b77c43d7085734ef9ce34ea7501288cea063f (patch)
tree9f89d735451724ec3fcf701bf1925cbe12bb8195
parent7e6f09d0c5067518074289ebd226d5897af3eb63 (diff)
downloadnixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar.gz
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar.bz2
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar.lz
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar.xz
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.tar.zst
nixpkgs-9d3b77c43d7085734ef9ce34ea7501288cea063f.zip
serial-unit-testing: init at 0.2.4
-rw-r--r--pkgs/by-name/se/serial-unit-testing/package.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/by-name/se/serial-unit-testing/package.nix b/pkgs/by-name/se/serial-unit-testing/package.nix
new file mode 100644
index 00000000000..dd45dc760cf
--- /dev/null
+++ b/pkgs/by-name/se/serial-unit-testing/package.nix
@@ -0,0 +1,40 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+, pkg-config
+, udev
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "serial-unit-testing";
+  version = "0.2.4";
+
+  src = fetchFromGitHub {
+    owner = "markatk";
+    repo = "serial-unit-testing";
+    rev = "v${version}";
+    hash = "sha256-SLwTwEQdwbus9RFskFjU8m4fS9Pnp8HsgnKkBvTqmSI=";
+  };
+
+  cargoHash = "sha256-PoV2v0p0L3CTtC9VMAx2Z/ZsSAIFi2gh2TtOp64S6ZQ=";
+
+  nativeBuildInputs = [
+    pkg-config
+  ];
+
+  buildInputs = [
+    udev
+  ];
+
+  # tests require a serial port
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Automate testing of serial communication with any serial port device";
+    homepage = "https://github.com/markatk/serial-unit-testing";
+    changelog = "https://github.com/markatk/serial-unit-testing/blob/v${version}/CHANGELOG.md";
+    license = licenses.mit;
+    maintainers = with maintainers; [ rudolfvesely ];
+    mainProgram = "sut";
+  };
+}