3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #50506 from c0bw3b/pkg/stressng

stress-ng: 0.06.14 -> 0.09.46
This commit is contained in:
Renaud 2018-11-17 19:36:48 +01:00 committed by GitHub
commit f98c31d0f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,21 @@
{ stdenv, fetchurl, attr, keyutils }:
{ stdenv, fetchurl
, attr, keyutils, libaio, libapparmor, libbsd, libcap, libgcrypt, lksctp-tools, zlib
}:
stdenv.mkDerivation rec {
name = "stress-ng-${version}";
version = "0.06.14";
version = "0.09.46";
src = fetchurl {
sha256 = "06kycxfwkdrm2vs9xk8cb6c1mki29ymrrqwwxxqx4icnwvq135hv";
url = "http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${name}.tar.gz";
url = "http://kernel.ubuntu.com/~cking/tarballs/stress-ng/${name}.tar.xz";
sha256 = "0m1f46vqixx2mgqdrjwkl8w9did7n99sy96rbcgkkn9g99y59qjm";
};
buildInputs = [ attr keyutils ];
# All platforms inputs then Linux-only ones
buildInputs = [ libbsd libgcrypt zlib ]
++ stdenv.lib.optionals stdenv.hostPlatform.isLinux [
attr keyutils libaio libapparmor libcap lksctp-tools
];
patchPhase = ''
substituteInPlace Makefile --replace "/usr" ""
@ -36,9 +42,10 @@ stdenv.mkDerivation rec {
hardware issues such as thermal overruns as well as operating system
bugs that only occur when a system is being thrashed hard.
'';
homepage = http://kernel.ubuntu.com/~cking/stress-ng;
homepage = http://kernel.ubuntu.com/~cking/stress-ng/;
downloadPage = http://kernel.ubuntu.com/~cking/tarballs/stress-ng/;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ c0bw3b ];
platforms = platforms.linux; # TODO: fix https://github.com/NixOS/nixpkgs/pull/50506#issuecomment-439635963
};
}