diff --git a/pkgs/tacuda/default.nix b/pkgs/tacuda/default.nix new file mode 100644 index 0000000..9298253 --- /dev/null +++ b/pkgs/tacuda/default.nix @@ -0,0 +1,61 @@ +{ 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 + ]; + +}