depot/pkgs/by-name/cr/crow/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

41 lines
759 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
asio,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "crow";
version = "1.2";
src = fetchFromGitHub {
owner = "crowcpp";
repo = "crow";
rev = "v${finalAttrs.version}";
sha256 = "sha256-fokj+KiS6frPVOoOvETxW3ue95kCcYhdhOlN3efzBd4=";
};
propagatedBuildInputs = [ asio ];
nativeBuildInputs = [
asio
cmake
python3
];
cmakeFlags = [
(lib.cmakeBool "CROW_BUILD_EXAMPLES" false)
];
doCheck = true;
meta = {
description = "A Fast and Easy to use microframework for the web";
homepage = "https://crowcpp.org/";
maintainers = with lib.maintainers; [ l33tname ];
platforms = lib.platforms.all;
license = lib.licenses.bsd3;
};
})