forked from mirrors/nixpkgs
Merge pull request #66294 from astro/firestarter
firestarter: init at 1.7.3
This commit is contained in:
commit
2240c5c858
39
pkgs/applications/misc/firestarter/default.nix
Normal file
39
pkgs/applications/misc/firestarter/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
|||
{ stdenv, fetchFromGitHub, python3, cudatoolkit,
|
||||
withCuda ? true
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "firestarter";
|
||||
version = "1.7.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tud-zih-energy";
|
||||
repo = "FIRESTARTER";
|
||||
rev = "v${version}";
|
||||
sha256 = "1gc7kmzx9nw22lyfmpyz72p974jf1hvw5nvszcaq7x6h8cz9ip15";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ python3 ];
|
||||
buildInputs = optionals withCuda [ cudatoolkit ];
|
||||
preBuild = ''
|
||||
mkdir -p build
|
||||
cd build
|
||||
python ../code-generator.py ${optionalString withCuda "--enable-cuda"}
|
||||
'';
|
||||
makeFlags = optionals withCuda [ "LINUX_CUDA_PATH=${cudatoolkit}" ];
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp FIRESTARTER $out/bin/firestarter
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://tu-dresden.de/zih/forschung/projekte/firestarter;
|
||||
description = "Processor Stress Test Utility";
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ astro ];
|
||||
license = licenses.gpl3;
|
||||
};
|
||||
}
|
|
@ -1596,6 +1596,8 @@ in
|
|||
|
||||
firecracker = callPackage ../applications/virtualization/firecracker { };
|
||||
|
||||
firestarter = callPackage ../applications/misc/firestarter { };
|
||||
|
||||
fsmon = callPackage ../tools/misc/fsmon { };
|
||||
|
||||
fsql = callPackage ../tools/misc/fsql { };
|
||||
|
|
Loading…
Reference in a new issue