From 170715254bbb419496670b560957ba5f5ad7354e Mon Sep 17 00:00:00 2001 From: Erik Rybakken Date: Wed, 3 Feb 2016 18:18:31 +0100 Subject: [PATCH] miniball: init at 3.0 --- .../libraries/miniball/default.nix | 25 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/libraries/miniball/default.nix diff --git a/pkgs/development/libraries/miniball/default.nix b/pkgs/development/libraries/miniball/default.nix new file mode 100644 index 000000000000..57fb2cef35ea --- /dev/null +++ b/pkgs/development/libraries/miniball/default.nix @@ -0,0 +1,25 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "miniball-${version}"; + version = "3.0"; + + src = fetchurl { + url = "https://www.inf.ethz.ch/personal/gaertner/miniball/Miniball.hpp"; + sha256 = "1piap5v8wqq0aachrq6j50qkr01gzpyndl6vf661vyykrfq0nnd2"; + }; + + phases = [ "installPhase" ]; + + installPhase = '' + mkdir -p $out/include + cp $src $out/include/miniball.hpp + ''; + + meta = { + description = "Smallest Enclosing Balls of Points"; + homepage = https://www.inf.ethz.ch/personal/gaertner/miniball.html; + license = stdenv.lib.licenses.gpl3; + maintainers = [ stdenv.lib.maintainers.erikryb ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99a17e9b3451..b42442d42b85 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2321,6 +2321,8 @@ let miniupnpd = callPackage ../tools/networking/miniupnpd { }; + miniball = callPackage ../development/libraries/miniball { }; + minixml = callPackage ../development/libraries/minixml { }; mjpegtools = callPackage ../tools/video/mjpegtools { };