From b3d4984938cd04075d5f0390a24e0531ddcc6cdb Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 5 Jan 2021 17:28:38 +0100 Subject: [PATCH] libsurvive: init at 0.3 --- .../libraries/libsurvive/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/libsurvive/default.nix diff --git a/pkgs/development/libraries/libsurvive/default.nix b/pkgs/development/libraries/libsurvive/default.nix new file mode 100644 index 000000000000..7f326112b2ff --- /dev/null +++ b/pkgs/development/libraries/libsurvive/default.nix @@ -0,0 +1,40 @@ +{ stdenv +, fetchFromGitHub +, cmake +, pkg-config +, freeglut +, liblapack +, libusb1 +, openblas +, zlib +}: + +stdenv.mkDerivation rec { + pname = "libsurvive"; + version = "0.3"; + + src = fetchFromGitHub { + owner = "cntools"; + repo = pname; + rev = "v${version}"; + sha256 = "0m21fnq8pfw2pcvqfgjws531zmalda423q9i65v4qzm8sdb54hl4"; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ + freeglut + liblapack + libusb1 + openblas + zlib + ]; + + meta = with stdenv.lib; { + description = "Open Source Lighthouse Tracking System"; + homepage = "https://github.com/cntools/libsurvive"; + license = licenses.mit; + maintainers = with maintainers; [ prusnak ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c11c82800f73..002fa8f2da82 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19051,6 +19051,8 @@ in libsmbios = callPackage ../os-specific/linux/libsmbios { }; + libsurvive = callPackage ../development/libraries/libsurvive { }; + lm_sensors = callPackage ../os-specific/linux/lm-sensors { }; lockdep = callPackage ../os-specific/linux/lockdep { };