Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 22 lines 645 B view raw
1{ stdenv, cmake, fetchFromGitHub, lib }: let 2 version = "0.2.0"; 3in stdenv.mkDerivation { 4 name = "scope-lite-${version}"; 5 6 src = fetchFromGitHub { 7 owner = "martinmoene"; 8 repo = "scope-lite"; 9 rev = "v${version}"; 10 hash = "sha256-/Vu3blgyEOQRFqhQjuT/6ukV0iWA0TdPrLnt2Z/gd6E="; 11 }; 12 13 nativeBuildInputs = [ cmake ]; 14 15 meta = { 16 description = "Migration path to C++ library extensions scope_exit, scope_fail, scope_success, unique_resource"; 17 license = lib.licenses.boost; 18 maintainers = [ lib.maintainers.shlevy ]; 19 homepage = "https://github.com/martinmoene/scope-lite"; 20 platforms = lib.platforms.all; 21 }; 22}