tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nanobench: init at 4.3.11
Matthew T. Pham (NixOS)
1 year ago
e356d318
d0db877f
+53
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
na
nanobench
package.nix
+53
pkgs/by-name/na/nanobench/package.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
stdenv,
4
4
+
fetchFromGitHub,
5
5
+
fetchpatch,
6
6
+
cmake,
7
7
+
nix-update-script,
8
8
+
}:
9
9
+
10
10
+
stdenv.mkDerivation rec {
11
11
+
pname = "nanobench";
12
12
+
version = "4.3.11";
13
13
+
14
14
+
src = fetchFromGitHub {
15
15
+
owner = "martinus";
16
16
+
repo = "nanobench";
17
17
+
tag = "v${version}";
18
18
+
hash = "sha256-6OoVU31cNY0pIYpK/PdB9Qej+9IJo7+fHFQCTymBVrk=";
19
19
+
};
20
20
+
21
21
+
patches = [
22
22
+
# Missing header from a test file. Required for compiling as of gcc13. Patched in commit from master branch.
23
23
+
# Remove on next release.
24
24
+
(fetchpatch {
25
25
+
url = "https://github.com/martinus/nanobench/commit/e4327893194f06928012eb81cabc606c4e4791ac.patch";
26
26
+
hash = "sha256-vmpohg9TbIxT+p4JerWh/QBcZ3/+1gPSNf15sqW6leM=";
27
27
+
})
28
28
+
29
29
+
# Change cmake install directories to conventional locations. Patches from unmerged pull request.
30
30
+
# Remove when merged upstream.
31
31
+
(fetchpatch {
32
32
+
url = "https://github.com/martinus/nanobench/pull/98/commits/92c6995ccaebbda87fed13de8eaf3d135d1af0c0.patch";
33
33
+
hash = "sha256-JwCpwSRzV1qnwwcJIGEJWxthT4Vj12TXhAGG0bc8KGM=";
34
34
+
})
35
35
+
(fetchpatch {
36
36
+
url = "https://github.com/martinus/nanobench/pull/98/commits/17a1f0b598a09d399dd492c72bca5b48ad76c794.patch";
37
37
+
hash = "sha256-2lOD63qN7gywUQxrdSRVyddpzcQjjeWOrA3hqu7x+CY=";
38
38
+
})
39
39
+
];
40
40
+
41
41
+
nativeBuildInputs = [ cmake ];
42
42
+
43
43
+
passthru.updateScript = nix-update-script { };
44
44
+
45
45
+
meta = {
46
46
+
description = "Simple, fast, accurate single-header microbenchmarking functionality for C++11/14/17/20";
47
47
+
homepage = "https://nanobench.ankerl.com/";
48
48
+
changelog = "https://github.com/martinus/nanobench/releases/tag/v${version}";
49
49
+
platforms = lib.platforms.all;
50
50
+
license = lib.licenses.mit;
51
51
+
maintainers = with lib.maintainers; [ mtpham99 ];
52
52
+
};
53
53
+
}