mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 04:38:44 +08:00
14 lines
391 B
Nix
14 lines
391 B
Nix
{
|
|
stdenv, lib, sbatchConfig ? null, substituteAll, runCommand,
|
|
cmake, pkg-config, ftxui, biu
|
|
}:
|
|
stdenv.mkDerivation
|
|
{
|
|
name = "sbatch-tui";
|
|
src = ./.;
|
|
preConfigure = lib.optionalString (sbatchConfig != null)
|
|
"cp ${substituteAll ({ src = ./src/device.cpp.template; } // sbatchConfig)} src/device.cpp";
|
|
buildInputs = [ ftxui biu ];
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
}
|