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