blob: 54cce0e82ea53ae0e48a9c7355aa9cf88b649465 (
plain)
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
|
{
lib,
stdenv,
fetchFromGitHub,
cmake,
ninja,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "string-view-lite";
version = "1.8.1";
src = fetchFromGitHub {
owner = "nonstd-lite";
repo = "string-view-lite";
tag = "v${finalAttrs.version}";
hash = "sha256-WMWTrzkAex8gR1juvYdUhq1y6qSdxHowJK3EpjAlYbI=";
};
nativeBuildInputs = [
cmake
ninja
];
doCheck = true;
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = {
description = "C++17-like string_view for C++98, C++11 and later in a single-file header-only library";
homepage = "https://github.com/nonstd-lite/string-view-lite";
changelog = "https://github.com/nonstd-lite/string-view-lite/releases/tag/v${finalAttrs.version}";
license = lib.licenses.boost;
maintainers = with lib.maintainers; [ titaniumtown ];
};
})
|