{ stdenv , lib , withCFlags , fetchFromGitHub , automake , autoconf , libtool , gnumake , autoreconfHook , boost , useGit ? false , gitUrl ? "git@gitlab-internal.bsc.es:task-awareness/tacuda/tacuda.git" , gitBranch ? "main" , gitCommit ? "" }: let release = rec { version = "2.1.0"; src = fetchFromGitHub { owner = "bsc-pm"; repo = "tacuda"; rev = version; hash = ""; }; }; git = rec { version = src.shortRev; src = builtins.fetchGit { url = gitUrl; ref = gitBranch; rev = gitCommit; }; }; source = if (useGit) then git else release; in stdenv.mkDerivation { pname = "tacuda"; inherit (source) src version; enableParallelBuilding = true; separateDebugInfo = true; nativeBuildInputs = [ autoreconfHook automake autoconf libtool gnumake ]; buildInputs = [ boost ]; }