summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/catch
diff options
context:
space:
mode:
authorEdward Tjörnhammar <ed@cflags.cc>2015-05-25 10:38:42 +0200
committerEdward Tjörnhammar <ed@cflags.cc>2015-05-25 10:39:13 +0200
commit0e9464478d0e3ae52f79e94db700b9dd39e4cec5 (patch)
treef8627de936d4701c043ec142db454cda37b6ae03 /pkgs/development/libraries/catch
parent0f6f4004f3c912eb7b633de33211ed6bb61ef628 (diff)
catch: add version 1.1-3
Diffstat (limited to 'pkgs/development/libraries/catch')
-rw-r--r--pkgs/development/libraries/catch/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/libraries/catch/default.nix b/pkgs/development/libraries/catch/default.nix
new file mode 100644
index 000000000000..49376b74c172
--- /dev/null
+++ b/pkgs/development/libraries/catch/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, lib, cmake, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+
+ name = "catch-${version}";
+ version = "1.1-3";
+
+ src = fetchFromGitHub {
+ owner = "philsquared";
+ repo = "Catch";
+ rev = "c51e86819dc993d590e5d0adaf1952f4b53e5355";
+ sha256 = "0kgi7wxxysgjbpisqfj4dj0k19cyyai92f001zi8gzkybd4fkgv5";
+ };
+
+ buildInputs = [ cmake ];
+ dontUseCmakeConfigure = true;
+
+ buildPhase = ''
+ cmake -Hprojects/CMake -BBuild -DCMAKE_BUILD_TYPE=Release
+ cd Build
+ make
+ cd ..
+ '';
+
+ installPhase = ''
+ mkdir -p $out
+ mv include $out/.
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A multi-paradigm automated test framework for C++ and Objective-C (and, maybe, C)";
+ homepage = "http://catch-lib.net";
+ license = licenses.boost;
+ maintainers = with maintainers; [ edwtjo ];
+ };
+}