Add TACUDA package

This commit is contained in:
Aleix Boné 2025-08-05 15:27:51 +02:00
parent 2c8d7ed855
commit 4cc102dcc1
No known key found for this signature in database

61
pkgs/tacuda/default.nix Normal file
View File

@ -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
];
}