Files
nixpkgs/pkgs/by-name/sc/scope-lite/package.nix

29 lines
663 B
Nix

{
stdenv,
cmake,
fetchFromGitHub,
lib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scope-lite";
version = "0.3.0";
src = fetchFromGitHub {
owner = "nonstd-lite";
repo = "scope-lite";
tag = "v${finalAttrs.version}";
hash = "sha256-EZ+bBnMPpgATANa+al5SnVEfUFYc0TkaPTLNHD6zcWU=";
};
nativeBuildInputs = [ cmake ];
meta = {
description = "Migration path to C++ library extensions scope_exit, scope_fail, scope_success, unique_resource";
license = lib.licenses.boost;
maintainers = [ lib.maintainers.shlevy ];
homepage = "https://github.com/nonstd-lite/scope-lite";
platforms = lib.platforms.all;
};
})