diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2019-08-17 14:47:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-17 14:47:30 +0100 |
commit | 2240c5c858857990908bc246902fac71f4a08923 (patch) | |
tree | 906da75a16f96fb761afd85d2c73c3f0c6d65262 /pkgs/applications/misc | |
parent | ff5e66b74504bd8710c66d37aea583ebf2a54869 (diff) | |
parent | c5eaef0ab9da11533ac844c3ded3d7518ff88904 (diff) | |
download | nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar.gz nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar.bz2 nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar.lz nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar.xz nixpkgs-2240c5c858857990908bc246902fac71f4a08923.tar.zst nixpkgs-2240c5c858857990908bc246902fac71f4a08923.zip |
Merge pull request #66294 from astro/firestarter
firestarter: init at 1.7.3
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/firestarter/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/applications/misc/firestarter/default.nix b/pkgs/applications/misc/firestarter/default.nix new file mode 100644 index 00000000000..e93d0ab69a7 --- /dev/null +++ b/pkgs/applications/misc/firestarter/default.nix @@ -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; + }; +} |