-
Notifications
You must be signed in to change notification settings - Fork 389
Expand file tree
/
Copy pathdefault.nix
More file actions
39 lines (34 loc) · 893 Bytes
/
default.nix
File metadata and controls
39 lines (34 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
pkgs,
stdenv
}:
let
self = stdenv.mkDerivation rec {
pname = "lest";
version = "1.36.0";
meta = {
description = "A tiny C++11 test framework – lest errors escape testing.";
homepage = "https://github.com/martinmoene/lest";
license = pkgs.lib.licenses.boost;
};
src = fetchGit {
url = "https://github.com/martinmoene/lest.git";
ref = "refs/tags/v${version}";
rev = "57197f32f2c7d3f3d3664a9010d3ff181a40f6ca";
};
cmakeBuildType = "Debug";
postBuild = ''
mkdir -p "$out/include"
cp -r include "$out/"
'';
};
dev = pkgs.lib.getDev self;
lib = pkgs.lib.getLib self;
in
self.overrideAttrs (prev: {
passthru = (prev.passthru or {}) // {
include_root = "${dev}/include";
include = "${dev}/include/lest";
# lib = "${self}"; # TODO: consider precompiling
};
})