nixpkgs/pkgs/by-name/zu/zug/package.nix
Jeremy Stucki 81e3acd7c4
zug: fix build on darwin
The bazel configuration file `BUILD` conflicts with the build folder
that should be created. Its fine to just remove it since we are not
using bazel to build this package.
2024-11-23 12:40:49 +01:00

37 lines
680 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
}:
stdenv.mkDerivation rec {
pname = "zug";
version = "0.1.0";
src = fetchFromGitHub {
owner = "arximboldi";
repo = "zug";
rev = "v${version}";
hash = "sha256-7xTMDhPIx1I1PiYNanGUsK8pdrWuemMWM7BW+NQs2BQ=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
boost
];
cmakeFlags = [
"-Dzug_BUILD_EXAMPLES=OFF"
];
preConfigure = ''
rm BUILD
'';
meta = with lib; {
homepage = "https://github.com/arximboldi/zug";
description = "library for functional interactive c++ programs";
maintainers = with maintainers; [ nek0 ];
license = licenses.boost;
};
}