btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / st / stress / package.nix
blob1f66c26578db0b1606c219b7ccd1dabf2926735e
1 { lib, stdenv, fetchFromGitHub, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "stress";
5   version = "1.0.7";
7   src = fetchFromGitHub {
8     owner = "resurrecting-open-source-projects";
9     repo = pname;
10     rev = version;
11     hash = "sha256-1r0n/KE4RpO0txIViGxuc7G+I4Ds9AJYcuMx2/R97jg=";
12   };
14   nativeBuildInputs = [ autoreconfHook ];
16   meta = with lib; {
17     description = "Simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system";
18     license = licenses.gpl2Plus;
19     platforms = platforms.unix;
20     mainProgram = "stress";
21   };