about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/lcm
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/lcm')
-rw-r--r--nixpkgs/pkgs/development/libraries/lcm/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/lcm/default.nix b/nixpkgs/pkgs/development/libraries/lcm/default.nix
new file mode 100644
index 000000000000..64d22f4c7dcd
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/lcm/default.nix
@@ -0,0 +1,32 @@
+{ lib, stdenv, fetchFromGitHub, cmake, glib, pkg-config }:
+
+stdenv.mkDerivation rec {
+  pname = "lcm";
+  version = "1.4.0";
+
+  src = fetchFromGitHub {
+    owner = "lcm-proj";
+    repo = "lcm";
+    rev = "v${version}";
+    hash = "sha256-ujz52m7JuE5DYGM9QHLwVWVVBcny4w05J6Eu6DI2HBI=";
+  };
+
+  outputs = [ "out" "dev" "man" ];
+
+  nativeBuildInputs = [
+    pkg-config
+    cmake
+  ];
+
+  buildInputs = [
+    glib
+  ];
+
+  meta = with lib; {
+    description = "Lightweight Communications and Marshalling (LCM)";
+    homepage = "https://github.com/lcm-proj/lcm";
+    license = licenses.lgpl21;
+    maintainers = with maintainers; [ kjeremy ];
+    platforms = lib.platforms.unix;
+  };
+}