nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 cmake,
4 fetchFromGitHub,
5 lib,
6}:
7let
8 version = "0.2.0";
9in
10stdenv.mkDerivation {
11 name = "scope-lite-${version}";
12
13 src = fetchFromGitHub {
14 owner = "martinmoene";
15 repo = "scope-lite";
16 rev = "v${version}";
17 hash = "sha256-/Vu3blgyEOQRFqhQjuT/6ukV0iWA0TdPrLnt2Z/gd6E=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 meta = {
23 description = "Migration path to C++ library extensions scope_exit, scope_fail, scope_success, unique_resource";
24 license = lib.licenses.boost;
25 maintainers = [ lib.maintainers.shlevy ];
26 homepage = "https://github.com/martinmoene/scope-lite";
27 platforms = lib.platforms.all;
28 };
29}