nixos/packages/sbatch-tui/default.nix

14 lines
391 B
Nix
Raw Normal View History

{
stdenv, lib, sbatchConfig ? null, substituteAll, runCommand,
cmake, pkg-config, ftxui, biu
}:
2024-06-09 12:57:01 +08:00
stdenv.mkDerivation
2024-06-08 20:35:25 +08:00
{
name = "sbatch-tui";
src = ./.;
2024-06-09 12:57:01 +08:00
preConfigure = lib.optionalString (sbatchConfig != null)
"cp ${substituteAll ({ src = ./src/device.cpp.template; } // sbatchConfig)} src/device.cpp";
buildInputs = [ ftxui biu ];
2024-06-08 20:35:25 +08:00
nativeBuildInputs = [ cmake pkg-config ];
}