nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 ninja,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "expected-lite";
11 version = "0.10.0";
12
13 src = fetchFromGitHub {
14 owner = "martinmoene";
15 repo = "expected-lite";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-nxwdymBNbd+RuL8rKi2Fx2gC68TnJe7WnoN0O01lecQ=";
18 };
19
20 nativeBuildInputs = [
21 cmake
22 ninja
23 ];
24
25 doCheck = true;
26
27 meta = {
28 description = ''
29 Expected objects in C++11 and later in a single-file header-only library
30 '';
31 homepage = "https://github.com/martinmoene/expected-lite";
32 changelog = "https://github.com/martinmoene/expected-lite/blob/${finalAttrs.src.rev}/CHANGES.txt";
33 license = lib.licenses.boost;
34 maintainers = with lib.maintainers; [ azahi ];
35 };
36})